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:
[EMAIL PROTECTED] sid]:~$ cat /etc/resolv.conf
search zugschlus.de
nameserver 217.160.109.251
nameserver 195.20.224.99
nameserver 195.20.224.234
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]"
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 [EMAIL PROTECTED]"
driver = smtp
tls_tempfail_tryclear = false
begin retry
begin rewrite
begin authenticators
[EMAIL PROTECTED] 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:<[EMAIL PROTECTED]>
250 OK
rcpt to:<[EMAIL PROTECTED]>
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.
[EMAIL PROTECTED] sid]:~$ tail -n 3 /var/log/exim4/mainlog
2006-09-21 12:24:19 1GQNbF-0007bK-Ss <= [EMAIL PROTECTED] H=localhost
(nechayev.zugschlus.de) [127.0.0.1] P=esmtp S=252
2006-09-21 12:24:19 1GQNbF-0007bK-Ss => [EMAIL PROTECTED] 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:
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]"
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 [EMAIL PROTECTED]"
driver = smtp
tls_tempfail_tryclear = false
begin retry
begin rewrite
begin authenticators
[EMAIL PROTECTED] sid]:~$ sudo /etc/init.d/exim4 reload
Reloading exim4 configuration files: exim4.
[EMAIL PROTECTED] 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:<[EMAIL PROTECTED]>
250 OK
rcpt to:<[EMAIL PROTECTED]>
451 Temporary local problem - please try later
quit
221 nechayev.zugschlus.de closing connection
Connection closed by foreign host.
[EMAIL PROTECTED] 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=<[EMAIL
PROTECTED]> temporarily rejected RCPT <[EMAIL PROTECTED]>: lookup of host
"torres" failed in smarthost router
[EMAIL PROTECTED] sid]:~$ sudo exim4 -bt [EMAIL PROTECTED]
R: smarthost for [EMAIL PROTECTED]
[EMAIL PROTECTED]
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
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/