Bug#309514: Re: Bug#309514: tag in update-exim4.conf.conf ignored

Marc Haber Marc Haber <mh+debian-packages@zugschlus.de>, 309514-maintonly@bugs.debian.org
Fri, 27 May 2005 13:28:52 +0200


Hi,

On Fri, May 27, 2005 at 12:00:47PM +0100, Marcos D. Marado Torres wrote:
> >"exim -d -bh some-ip" and a faked SMTP session on the console will
> >probably give clues why first-host.com and secondhost.biz are treated
> >differently.
> 
> I did it:
> 82.154.251.90 is the external IP for first-host.com and secondhost.biz:
> 
>  exim4 -d -bh 82.154.251.90
> Exim version 4.50 uid=0 gid=0 pid=12502 D=fbb95cfd
> Berkeley DB: Sleepycat Software: Berkeley DB 4.2.52: (December  3, 2003)
> Support for: iconv() IPv6 GnuTLS
> Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz 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
> changed uid/gid: forcing real = effective
>   uid=0 gid=0 pid=12502
>   auxiliary group list: <none>
> configuration file is /var/lib/exim4/config.autogenerated
> log selectors = 00000ffc 00020800
> trusted user
> admin user
> changed uid/gid: privilege not needed
>   uid=102 gid=102 pid=12502
>   auxiliary group list: <none>
> user name "root" extracted from gecos field "root"
> originator: uid=0 gid=0 login=root name=root
> sender address = root@dis-hab.com
> sender_fullhost = [82.154.251.90]
> sender_rcvhost = [82.154.251.90]
> 
> **** SMTP testing session as if from host 82.154.251.90
> **** but without any ident (RFC 1413) callback.
> **** This is not for real!
> 
> host in hosts_connection_nolog? no (option unset)
> LOG: smtp_connection MAIN
>   SMTP connection from [82.154.251.90]
> host in host_lookup? yes (matched "*")
> looking up host name for 82.154.251.90
> DNS lookup of 90.251.154.82.in-addr.arpa (PTR) succeeded
> IP address lookup yielded adslemp-b5-251-90.telepac.pt
> gethostbyname2(af=inet6) returned 4 (NO_DATA)
> gethostbyname2 looked up these IP addresses:
>   name=adslemp-b5-251-90.telepac.pt address=82.154.251.90
> checking addresses for adslemp-b5-251-90.telepac.pt
>   82.154.251.90 OK
> sender_fullhost = adslemp-b5-251-90.telepac.pt [82.154.251.90]
> sender_rcvhost = adslemp-b5-251-90.telepac.pt ([82.154.251.90])
> set_process_info: 12502 handling incoming connection from 
> adslemp-b5-251-90.telepac.pt [82.154.251.90]
> host in host_reject_connection? no (option unset)
> host in sender_unqualified_hosts? no (option unset)
> host in recipient_unqualified_hosts? no (option unset)
> host in helo_verify_hosts? no (option unset)
> host in helo_try_verify_hosts? no (option unset)
> host in helo_accept_junk_hosts? no (option unset)
> SMTP>> 220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
> 220 dis-hab.com ESMTP Exim 4.50 Fri, 27 May 2005 11:32:37 +0100^M
> smtp_setup_msg entered
> QUIT
> SMTP<< QUIT
> SMTP>> 221 dis-hab.com closing connection^M
> 221 dis-hab.com closing connection^M
> LOG: smtp_connection MAIN
>   SMTP connection from adslemp-b5-251-90.telepac.pt [82.154.251.90] closed 
>   by QUIT
> search_tidyup called
> >>>>>>>>>>>>>>>>Exim pid=12502 terminating with rc=0 >>>>>>>>>>>>>>>>
> ~#
> 
> I guess that this is what you wanted, if not please tell me what more do you
> want me to do...

You need to try to deliver one messages for first-host.com then one for
secondhost.biz down that faked session by talking SMTP. Hopefully, the
different treatment will be seen in the debug output. Maybe you can
help yourself.

> >Unfortunately, you didn't use reportbug to report your bug, and thus
> >no information about your configuration is available which could aid
> >in remote debugging.
> 
> Do you want me to do that now, or do you want me to give more info? If so, 
> tell me what.

/usr/sbin/exim4 -bV 
cat /etc/exim4/update-exim4.conf.conf
cat /etc/mailname

> >If the OP quoted his config accurately, I'm betting it's the commas that 
> >are breaking things.  Exim uses : (without spaces) for list separation.
> 
> I've tried that. The result:
> 2005-05-27 11:53:16 H=smtp.dei.uc.pt [193.137.203.228] 
> F=<marado@student.dei.uc.pt> rejected RCPT <magicbrain@secondhost.biz>: 
> relay not permitted
> 
> If I send locally the mail arrives as expected:
> 
> 2005-05-27 11:57:02 1DbcWU-0003NI-9j <= root@first-host.com U=root P=local 
> S=295
> 2005-05-27 11:57:02 1DbcWU-0003NI-9j => magicbrain 
> <magicbrain@secondhost.biz> R=local_user T=maildir_home
> 2005-05-27 11:57:02 1DbcWU-0003NI-9j Completed
> 
> Problem is that external mails to secondhost.biz should be treated knowing 
> that
> secondhost.biz is a final destination and not a host to relay to...

Probably, yes. Maybe the output from update-exim4.conf.conf will give
a clue, and maybe the faked SMTP session.

What does /usr/sbin/exim4 -d -bt magicbrain@secondhost.biz say?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835