0

I have a server with CentOS 5.6 installed on it. It has working mail server of exim + dovecot + mysql + roundcube.

My log file /var/log/exim/main.log is already of 3 Gb and continues to grow. It consists of such entries:

2013-03-12 18:09:42 1UEaWr-0003VI-Ts == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UEIcr-0005k3-Mc == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UE8ro-00011h-8S == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:42 1UEtDl-0006jP-8h == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEipX-0001Ub-5z == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UESyw-0003mv-E0 == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEA9c-0005gO-71 == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UE7rt-00074q-2G == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEkev-0004od-HA == [email protected] R=dnslookup defer (-1): host lookup did not complete
2013-03-12 18:09:43 1UEsBj-0002dM-Mt == [email protected] R=dnslookup defer (-1): host lookup did not complete

I understand that it's because of mail.mydomain.com is not FQDN or real domain name at all. But where it takes from? I've checked /etc/exim/exim.conf and every file in /etc/ but couldn't find this domain string. Besides, I've checked vexim database's tables - no results. How can I change it?

Then, when I try to send mail, I'm getting this error in log (I've replaced real mail and ip addresses):

2013-03-12 18:13:30 1UFJGl-0004c9-2X == [email protected] R=dnslookup T=remote_smtp defer (-45): SMTP error from remote mail server after MAIL FROM:<[email protected]> SIZE=1406: host mail2.to.com [x1x.x1x.x1x.x1x]: 451 4.1.8 Sender address <[email protected]> domain does not resolve
2013-03-12 18:14:34 1UFJGl-0004c9-2X SMTP error from remote mail server after RCPT TO:<[email protected]>: host mail.to.com [x1x.x1x.x1x.x1x]: 450 4.7.1 Client host rejected: cannot find your hostname, [x2x.x2x.x2x.x2x]

I suppose the source of this problem is the same. But can't find the solution. I assume my problem is to replace default FROM field for exim ([email protected]) with something like [email protected]

Any help? Thanks.

1
  • 1
    Yes, making sure your dns is functional, and your mailserver has a valid address is a good idea.
    – NickW
    Mar 12, 2013 at 12:18

1 Answer 1

2

You didn't set reverse DNS (PTR record) for your IP address correctly.

Set a PTR record for your IP address which resolves to a valid hostname, whose A record resolves to the same IP address.

2
  • My mail began to transfer correctly but the messages like "2013-03-12 18:09:43 1UEsBj-0002dM-Mt == [email protected] R=dnslookup defer (-1): host lookup did not complete" are still logging constantly.
    – Korben
    Mar 15, 2013 at 10:59
  • Check your /etc/resolv.conf and make sure the nameservers listed are valid. Mar 15, 2013 at 11:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .