LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-15-2011, 07:36 PM   #1
bryan641
Member
 
Registered: Mar 2011
Location: Ohio, USA
Distribution: Debian Stretch
Posts: 43

Rep: Reputation: 14
Copied exim config to new server. Now I get rejected RCTP errors


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
 
Old 03-16-2011, 04:23 AM   #2
adymcc
Member
 
Registered: Dec 2006
Posts: 31

Rep: Reputation: 17
What is MAIL_RELAY_NETS set to and can that be looked up?

Quote:
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
 
Old 03-16-2011, 08:21 AM   #3
bryan641
Member
 
Registered: Mar 2011
Location: Ohio, USA
Distribution: Debian Stretch
Posts: 43

Original Poster
Rep: Reputation: 14
That's part of my problem trying to figure out Exim... I don't see where that's set. When I ran "dpkg-reconfigure exim4-config" I selected a single config file. I only see the following references:
Code:
# grep "MAIN_RELAY_NETS" exim4.conf
hostlist relay_from_hosts = MAIN_RELAY_NETS
There are other ALL_CAPS settings like this and I can't see where they're being set to anything.

--Bryan

P.S. Looking at other files I see exim4.conf.template has MAIN_RELAY_NETS=DEBCONFrelay_netsDEBCONF within an "if" block. The same lines appear in conf.d/main/01_exim4-config_listmacrosdefs.

P.P.S. I believe I have the conf.d folder & such because when I was first getting Exim working on the old server I thought it'd be easier to use, but then I reconfigured selecting only a single .conf file setup.

Last edited by bryan641; 03-16-2011 at 09:07 AM.
 
Old 03-17-2011, 03:48 AM   #4
adymcc
Member
 
Registered: Dec 2006
Posts: 31

Rep: Reputation: 17
Now I'm not sure but I thought that whether Exim uses a single file or the conf.d depends on options set at compile time?

Are you sure that the new exim binary supports the modular config files?

Can anyone correct me?
 
Old 03-17-2011, 07:32 AM   #5
bryan641
Member
 
Registered: Mar 2011
Location: Ohio, USA
Distribution: Debian Stretch
Posts: 43

Original Poster
Rep: Reputation: 14
[SOLVED] Copied exim config to new server. Now I get rejected RCTP errors

When I tried "dpkg-reconfigure exim4-config" it asks me which way I want to do it. Maybe on Debian it always uses a single config, but if you maintain the modular ones and run update-exim4 it combines them using exim4.conf.template? Just wondering.

...

Ok, I think I got it fixed. In /etc/exim4/exim4.conf I changed:
[code]
hostlist relay_from_hosts = MAIN_RELAY_NETS
domainlist relay_to_domains = MAIN_RELAY_TO_DOMAINS
[code]
to
Code:
hostlist relay_from_hosts = inleamansterms.com
domainlist relay_to_domains = inleamansterms.com
Based on the log, I expect I only needed to change relay_from_hosts, but I changed both.

--Bryan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rejected errors in mail server Exim. jimmyjiang Linux - Software 0 09-24-2007 11:29 AM
regarding exim errors gimmereeson Linux - Server 0 02-07-2007 08:59 AM
How can I config an email client to connect to my local exim server HGeneAnthony Linux - General 1 07-13-2006 03:01 PM
Exim: temporarily rejected RCPT bulliver Linux - General 3 05-02-2004 05:08 AM
Config problem: "Authorization failed: server rejected access" -- help please! womble_timsk Linux - Networking 0 05-22-2003 04:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration