I'm decommissioning my old Pentium II class server (AMD K6) and replacing it with an AMD Athlon. It had its own install of Debian Linux (Lenny). Everything ported over well except Exim. It was working on the old machine, but now I get "temporarily rejected RCPT" when mail comes in from outside. It works if I send a message using mail:
Code:
bryan@Netvista:~$ mail -s "Testing as myself" bryan@inleamansterms.com
This is a test message.
.
Cc:
bryan@Netvista:~$
bryan@Netvista:~$ mail
Mail version 8.1.2 01/15/2001. Type ? for help.
"/var/mail/bryan": 1 message 1 new
>N 1 bryan@ETC_MAILNAM Tue Mar 15 20:28 16/585 Testing as myself
& q
But sending from outside gives me errors:
Code:
tail /var/log/exim4/mainlog
2011-03-15 20:01:24 exim 4.69 daemon started: pid=8574, no queue runs, listening for SMTP on port 25 (IPv6 and IPv4)
2011-03-15 20:01:56 H=imr-ma04.mx.aol.com [64.12.206.42] F=<blleaman@aol.com> temporarily rejected RCPT <bryan@inleamansterms.com>
Netvista:/home/bryan#
When I run exim interactively (exim -bd -d) I get the following:
Code:
Netvista:/home/bryan# exim -bd -d
Exim version 4.69 uid=0 gid=0 pid=8574 D=fbb95cfd
Berkeley DB: Berkeley DB 4.6.21: (September 27, 2007)
Support for: crypteq iconv() IPv6 GnuTLS move_frozen_messages
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch nis nis0 passwd
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
changed uid/gid: forcing real = effective
uid=0 gid=0 pid=8574
auxiliary group list: <none>
seeking password data for user "uucp": cache not available
getpwnam() succeeded uid=10 gid=10
configuration file is /etc/exim4/exim4.conf
log selectors = 00000ffc 00612001
cwd=/home/bryan 3 args: exim -bd -d
trusted user
admin user
seeking password data for user "mail": cache not available
getpwnam() succeeded uid=8 gid=8
user name "root" extracted from gecos field "root"
originator: uid=0 gid=0 login=root name=root
8574 listening on all interfaces (IPv6) port 25
8574 listening on all interfaces (IPv4) port 25
8574 pid written to /var/run/exim4/exim.pid
8574 changed uid/gid: running as a daemon
8574 uid=102 gid=105 pid=8574
8574 auxiliary group list: 105
8574 LOG: MAIN
8574 exim 4.69 daemon started: pid=8574, no queue runs, listening for SMTP on port 25 (IPv6 and IPv4)
8574 set_process_info: 8574 daemon: no queue runs, listening for SMTP on port 25 (IPv6 and IPv4)
8574 daemon running with uid=102 gid=105 euid=102 egid=105
8574 Listening...
8574 Connection request from 64.12.206.42 port 53445
8574 search_tidyup called
8575 host in rfc1413_hosts? yes (matched "*")
8575 doing ident callback
8574 1 SMTP accept process running
8574 Listening...
8575 ident connection to 64.12.206.42 failed: Connection refused
8575 sender_fullhost = [64.12.206.42]
8575 sender_rcvhost = [64.12.206.42]
8575 Process 8575 is handling incoming connection from [64.12.206.42]
8575 host in host_lookup? yes (matched "*")
8575 looking up host name for 64.12.206.42
8575 DNS lookup of 42.206.12.64.in-addr.arpa (PTR) succeeded
8575 IP address lookup yielded imr-ma04.mx.aol.com
8575 gethostbyname2(af=inet6) returned 3 (NO_RECOVERY)
8575 gethostbyname2 looked up these IP addresses:
8575 name=imr-ma04.mx.aol.com address=64.12.206.42
8575 checking addresses for imr-ma04.mx.aol.com
8575 64.12.206.42 OK
8575 sender_fullhost = imr-ma04.mx.aol.com [64.12.206.42]
8575 sender_rcvhost = imr-ma04.mx.aol.com ([64.12.206.42])
8575 set_process_info: 8575 handling incoming connection from imr-ma04.mx.aol.com [64.12.206.42]
8575 host in host_reject_connection? no (option unset)
8575 host in sender_unqualified_hosts? no (option unset)
8575 host in recipient_unqualified_hosts? no (option unset)
8575 host in helo_verify_hosts? no (option unset)
8575 host in helo_try_verify_hosts? no (option unset)
8575 host in helo_accept_junk_hosts? no (option unset)
8575 SMTP>> 220 Netvista.inleamansterms.com ESMTP Exim 4.69 Tue, 15 Mar 2011 20:01:55 -0400
8575 Process 8575 is ready for new message
8575 smtp_setup_msg entered
8575 SMTP<< EHLO imr-ma04.mx.aol.com
8575 sender_fullhost = imr-ma04.mx.aol.com [64.12.206.42]
8575 sender_rcvhost = imr-ma04.mx.aol.com ([64.12.206.42])
8575 set_process_info: 8575 handling incoming connection from imr-ma04.mx.aol.com [64.12.206.42]
8575 host in pipelining_advertise_hosts? yes (matched "*")
8575 host in auth_advertise_hosts? yes (matched "*")
8575 host in tls_advertise_hosts? no (option unset)
8575 SMTP>> 250-Netvista.inleamansterms.com Hello imr-ma04.mx.aol.com [64.12.206.42]
8575 250-SIZE 52428800
8575 250-PIPELINING
8575 250 HELP
8575 SMTP<< MAIL From:<blleaman@aol.com> SIZE=1969
8575 spool directory space = 16181776K inodes = 1697567 check_space = 0K inodes = 0 msg_size = 6969
8575 using ACL "acl_check_mail"
8575 processing "accept"
8575 accept: condition test succeeded
8575 SMTP>> 250 OK
8575 SMTP<< RCPT To:<bryan@inleamansterms.com>
8575 using ACL "acl_check_rcpt"
8575 processing "accept"
8575 check hosts = :
8575 host in ":"? no (end of list)
8575 accept: condition test failed
8575 processing "deny"
8575 check domains = +local_domains
8575 inleamansterms.com in "inleamansterms.com"? yes (matched "inleamansterms.com")
8575 inleamansterms.com in "+local_domains"? yes (matched "+local_domains")
8575 check local_parts = ^[.] : ^.*[@%!/|`#&?]
8575 bryan in "^[.] : ^.*[@%!/|`#&?]"? no (end of list)
8575 deny: condition test failed
8575 processing "deny"
8575 check domains = !+local_domains
8575 cached yes match for +local_domains
8575 cached lookup data = NULL
8575 inleamansterms.com in "!+local_domains"? no (matched "!+local_domains" - cached)
8575 deny: condition test failed
8575 processing "accept"
8575 check local_parts = postmaster
8575 bryan in "postmaster"? no (end of list)
8575 accept: condition test failed
8575 processing "deny"
8575 check !acl = acl_local_deny_exceptions
8575 using ACL "acl_local_deny_exceptions"
8575 processing "accept"
8575 check hosts = ${if exists{/etc/exim4/host_local_deny_exceptions}{/etc/exim4/host_local_deny_exceptions}{}}
8575 gethostbyname2(af=inet6) returned 3 (NO_RECOVERY)
8575 gethostbyname2 looked up these IP addresses:
8575 name=aol.com address=207.200.74.38
8575 name=aol.com address=64.12.79.57
8575 name=aol.com address=205.188.100.58
8575 host in "/etc/exim4/host_local_deny_exceptions"? no (end of list)
8575 accept: condition test failed
8575 processing "accept"
8575 check senders = ${if exists{/etc/exim4/sender_local_deny_exceptions}{/etc/exim4/sender_local_deny_exceptions}{}}
8575 address match: subject=blleaman@aol.com pattern=aol.com
8575 aol.com in "aol.com"? yes (matched "aol.com")
8575 blleaman@aol.com in "/etc/exim4/sender_local_deny_exceptions"? yes (matched "aol.com" in /etc/exim4/sender_local_deny_exceptions)
8575 accept: condition test succeeded
8575 deny: condition test failed
8575 processing "accept"
8575 check hosts = +relay_from_hosts
8575 gethostbyname2(af=inet6) returned 3 (NO_RECOVERY)
8575 gethostbyname2(af=inet) returned 1 (HOST_NOT_FOUND)
8575 no IP address found for host MAIN_RELAY_NETS (during SMTP connection from imr-ma04.mx.aol.com [64.12.206.42])
8575 MAIN_RELAY_NETS in dns_again_means_nonexist? no (option unset)
8575 host in "MAIN_RELAY_NETS"? list match deferred for MAIN_RELAY_NETS
8575 host in "+relay_from_hosts"? list match deferred for +relay_from_hosts
8575 accept: condition test deferred
8575 SMTP>> 451 Temporary local problem - please try later
8575 LOG: MAIN REJECT
8575 H=imr-ma04.mx.aol.com [64.12.206.42] F=<blleaman@aol.com> temporarily rejected RCPT <bryan@inleamansterms.com>
8575 SMTP<< DATA
8575 SMTP>> 503-All RCPT commands were rejected with this error:
8575 SMTP>> 503-Temporary local problem - please try later
8575 SMTP>> 503 Valid RCPT command must precede DATA
8575 SMTP<< RSET
8575 SMTP>> 250 Reset OK
8575 SMTP<< QUIT
8575 SMTP>> 221 Netvista.inleamansterms.com closing connection
8575 LOG: smtp_connection MAIN
8575 SMTP connection from imr-ma04.mx.aol.com [64.12.206.42] closed by QUIT
8575 search_tidyup called
8574 child 8575 ended: status=0x0
8574 0 SMTP accept processes now running
8574 Listening...
Any ideas?
After restoring the configuration from the other machine the only thing I changed was the IP address to listen on and the owner of /etc/exim4/exim4.conf. For some reason the previous machine liked it owned by Debian-exim and the new one reports an error if it's not owned by root.
--Bryan