[exim] Does not properly expand host name in verification

Top Page
Delete this message
Reply to this message
Author: Marc Haber
Date:  
To: exim-users
Subject: [exim] Does not properly expand host name in verification
Hi,

When I have a bare host name like "torres" as a smarthost,
verification fails ("lookup of host "torres" failed in smarthost
router"). I can, however, deliver e-mail through the router, since
zugschlus.de is listed as search domain in /etc/resolv.conf and
torres.zugschlus.de exists.

See:
mh@nechayev[chroot sid]:~$ cat /etc/resolv.conf
search zugschlus.de
nameserver 217.160.109.251
nameserver 195.20.224.99
nameserver 195.20.224.234
mh@nechayev[chroot sid]:~$ cat /etc/exim4/exim4.conf
domainlist local_domains = nechayev.zugschlus.de

acl_smtp_rcpt = acl_check_rcpt


begin acl

acl_check_rcpt:

#  require
#    verify = recipient


accept

begin routers

smarthost:
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_list = * torres byname
host_find_failed = defer
same_domain_copy_routing = yes
no_more

begin transports

remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
driver = smtp
tls_tempfail_tryclear = false

begin retry

begin rewrite

begin authenticators

mh@nechayev[chroot sid]:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 nechayev.zugschlus.de ESMTP Exim 4.63 Thu, 21 Sep 2006 12:23:57 +0000
EHLO nechayev.zugschlus.de
250-nechayev.zugschlus.de Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250 HELP
mail from:<mh+exim-users@???>
250 OK
rcpt to:<mh+exim-users@???>
250 Accepted
data
354 Enter message, ending with "." on a line by itself
foo
.
250 OK id=1GQNbF-0007bK-Ss
quit
221 nechayev.zugschlus.de closing connection
Connection closed by foreign host.
mh@nechayev[chroot sid]:~$ tail -n 3 /var/log/exim4/mainlog
2006-09-21 12:24:19 1GQNbF-0007bK-Ss <= mh+exim-users@??? H=localhost (nechayev.zugschlus.de) [127.0.0.1] P=esmtp S=252
2006-09-21 12:24:19 1GQNbF-0007bK-Ss => mh+exim-users@??? R=smarthost T=remote_smtp_smarthost H=torres.zugschlus.de [217.160.172.125] X=TLS-1.0:RSA_AES_256_CBC_SHA1:32
2006-09-21 12:24:19 1GQNbF-0007bK-Ss Completed

When I now enable the verify = recipient clause in the acl_check_rcpt
ACL, recipient verification fails temporarily:
mh@nechayev[chroot sid]:~$ cat /etc/exim4/exim4.conf
domainlist local_domains = nechayev.zugschlus.de

acl_smtp_rcpt = acl_check_rcpt


begin acl

acl_check_rcpt:

  require
    verify = recipient


accept

begin routers

smarthost:
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_list = * torres byname
host_find_failed = defer
same_domain_copy_routing = yes
no_more

begin transports

remote_smtp_smarthost:
debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
driver = smtp
tls_tempfail_tryclear = false

begin retry

begin rewrite

begin authenticators

mh@nechayev[chroot sid]:~$ sudo /etc/init.d/exim4 reload
Reloading exim4 configuration files: exim4.
mh@nechayev[chroot sid]:~$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 nechayev.zugschlus.de ESMTP Exim 4.63 Thu, 21 Sep 2006 12:24:50 +0000
EHLO nechayev.zugschlus.de
250-nechayev.zugschlus.de Hello localhost [127.0.0.1]
250-SIZE 52428800
250-PIPELINING
250 HELP
mail from:<mh+exim-users@???>
250 OK
rcpt to:<mh+exim-users@???>
451 Temporary local problem - please try later
quit
221 nechayev.zugschlus.de closing connection
Connection closed by foreign host.
mh@nechayev[chroot sid]:~$ tail -n 2 /var/log/exim4/mainlog
2006-09-21 12:25:00 no IP address found for host torres (during SMTP connection from localhost (nechayev.zugschlus.de) [127.0.0.1])
2006-09-21 12:25:00 H=localhost (nechayev.zugschlus.de) [127.0.0.1] F=<mh+exim-users@???> temporarily rejected RCPT <mh+exim-users@???>: lookup of host "torres" failed in smarthost router
mh@nechayev[chroot sid]:~$ sudo exim4 -bt mh+exim-users@???
R: smarthost for mh+exim-users@???
mh+exim-users@???
router = smarthost, transport = remote_smtp_smarthost
host torres.zugschlus.de [217.160.172.125]

Looks like exim is not properly honoring the search domains when doing
verification, but it is doing fine when actually routing.

Is this an exim bug, or am I doing something wrong?

Greetings
Marc

P.S. I am using exim 4.63 on Debian unstable

-- 
-----------------------------------------------------------------------------
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