Bug#244724: Seems to work these days, at least partially

Marcin Owsiany porridge at debian.org
Mon Apr 13 10:49:56 UTC 2009


Hi,

According to exim4_passwd_client(5), my configuration should not work, but it
does (which is nice). I have the following router:

| xxlweb:
|   debug_print = "R: xxlweb for $local_part@$domain"
|   driver = manualroute
|   senders = xxlweb.owsiany.pl
|   domains = ! +local_domains
|   transport = remote_smtp_smarthost
|   route_list = * mail.xxlweb.owsiany.pl byname
|   host_find_failed = defer
|   same_domain_copy_routing = no
|   no_more

And the following data in passwd.client:

| mail.xxlweb.owsiany.pl:porridge at xxlweb.owsiany.pl:my-secret-password

Where mail.xxlweb.owsiany.pl is an A record:

| ; <<>> DiG 9.4.1-P1.1 <<>> mail.xxlweb.owsiany.pl
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22706
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
| 
| ;; QUESTION SECTION:
| ;mail.xxlweb.owsiany.pl.		IN	A
| 
| ;; ANSWER SECTION:
| mail.xxlweb.owsiany.pl.	24582	IN	A	81.169.178.178
| 
| ;; AUTHORITY SECTION:
| xxlweb.owsiany.pl.	24582	IN	NS	ns1.xxl-dns.de.
| xxlweb.owsiany.pl.	24582	IN	NS	ns2.xxl-dns.de.
| 
| ;; ADDITIONAL SECTION:
| ns1.xxl-dns.de.		9492	IN	A	81.169.167.222
| ns2.xxl-dns.de.		9492	IN	A	85.214.120.249
| 
| ;; Query time: 27 msec
| ;; SERVER: 212.17.32.1#53(212.17.32.1)
| ;; WHEN: Mon Apr 13 11:35:55 2009
| ;; MSG SIZE  rcvd: 134


But this IP addresses' reverse record is something else:

| ; <<>> DiG 9.4.1-P1.1 <<>> -x 81.169.178.178
| ;; global options:  printcmd
| ;; Got answer:
| ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 64868
| ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 7, ADDITIONAL: 11
| 
| ;; QUESTION SECTION:
| ;178.178.169.81.in-addr.arpa.	IN	PTR
| 
| ;; ANSWER SECTION:
| 178.178.169.81.in-addr.arpa. 412 IN	PTR	alpha349.server4rent.eu.
| 
| ;; AUTHORITY SECTION:
[..snip..]
| ;; Query time: 47 msec
| ;; SERVER: 212.17.32.1#53(212.17.32.1)
| ;; WHEN: Mon Apr 13 11:37:19 2009
| ;; MSG SIZE  rcvd: 485

The manpage says this will make the /etc/exim4/passwd.client lookup fail,
because it will look for alpha349.server4rent.eu, which is not there. But it
does work, and it seems exim looks for the name specified in the router.

This is with exim4 4.67-5build1 (ubuntu gutsy).

Is this just a "lucky" corner case? Or has something been changed recently, and
the bug can be closed?

| >>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
| --------> marcin at owsiany.pl <--------
| search_tidyup called
| changed uid/gid: remote delivery to marcin at owsiany.pl with transport=remote_smtp_smarthost
|   uid=109 gid=121 pid=21851
|   auxiliary group list: <none>
| set_process_info: 21851 delivering 1LtJLS-0005gM-DE using remote_smtp_smarthost
| T: remote_smtp_smarthost for marcin at owsiany.pl
| set_process_info: 21850 delivering 1LtJLS-0005gM-DE: waiting for a remote delivery subprocess to finish
| selecting on subprocess pipes
| remote_smtp_smarthost transport entered
|   marcin at owsiany.pl
| owsiany.pl in queue_smtp_domains? no (option unset)
| checking status of mail.xxlweb.owsiany.pl
| locking /var/spool/exim4/db/retry.lockfile
| locked /var/spool/exim4/db/retry.lockfile
| EXIM_DBOPEN(/var/spool/exim4/db/retry)
| returned from EXIM_DBOPEN
| opened hints database /var/spool/exim4/db/retry: flags=O_RDONLY
| dbfn_read: key=T:mail.xxlweb.owsiany.pl:81.169.178.178
| dbfn_read: key=T:mail.xxlweb.owsiany.pl:81.169.178.178:1LtJLS-0005gM-DE
| no host retry record
| no message retry record
| mail.xxlweb.owsiany.pl [81.169.178.178] status = usable
| 81.169.178.178 in serialize_hosts? no (option unset)
| delivering 1LtJLS-0005gM-DE to mail.xxlweb.owsiany.pl [81.169.178.178] (marcin at owsiany.pl)
| set_process_info: 21851 delivering 1LtJLS-0005gM-DE to mail.xxlweb.owsiany.pl [81.169.178.178] (marcin at owsiany.pl)
| Connecting to mail.xxlweb.owsiany.pl [81.169.178.178]:25 ... connected
| waiting for data on socket
| read response data: size=35
|   SMTP<< 220 alpha349.server4rent.eu ESMTP
| 81.169.178.178 in hosts_avoid_esmtp? no (option unset)
|   SMTP>> EHLO localhost
| waiting for data on socket
| read response data: size=135
|   SMTP<< 250-alpha349.server4rent.eu
|          250-AUTH=LOGIN CRAM-MD5 PLAIN
|          250-AUTH LOGIN CRAM-MD5 PLAIN
|          250-STARTTLS
|          250-PIPELINING
|          250 8BITMIME
| 81.169.178.178 in hosts_avoid_tls? no (option unset)
|   SMTP>> STARTTLS
| waiting for data on socket
| read response data: size=19
|   SMTP<< 220 ready for tls
| initializing GnuTLS as a client
| read D-H parameters from file
| initialized D-H parameters
| no TLS client certificate is specified
| initialized certificate stuff
| initialized GnuTLS session
| cipher: TLS-1.0:RSA_AES_256_CBC_SHA1:32
|   SMTP>> EHLO localhost
| tls_do_write(bff40227, 16)
| gnutls_record_send(SSL, bff40227, 16)
| outbytes=16
| waiting for data on socket
| Calling gnutls_record_recv(8145b58, bff3e227, 4096)
| read response data: size=121
|   SMTP<< 250-alpha349.server4rent.eu
|          250-AUTH=LOGIN CRAM-MD5 PLAIN
|          250-AUTH LOGIN CRAM-MD5 PLAIN
|          250-PIPELINING
|          250 8BITMIME
| 81.169.178.178 in hosts_avoid_pipelining? no (option unset)
| using PIPELINING
| 81.169.178.178 in hosts_require_auth? no (option unset)
| search_open: nwildlsearch "/etc/exim4/passwd.client"
| search_find: file="/etc/exim4/passwd.client"
|   key="mail.xxlweb.owsiany.pl" partial=-1 affix=NULL starflags=0
| LRU list:
|   ?/etc/exim4/passwd.client
|   End
| internal_search_find: file="/etc/exim4/passwd.client"
|   type=nwildlsearch key="mail.xxlweb.owsiany.pl"
| file lookup required for mail.xxlweb.owsiany.pl
|   in /etc/exim4/passwd.client
| mail.xxlweb.owsiany.pl in "mail0.vicoop.com"? no (end of list)
| mail.xxlweb.owsiany.pl in "mail.xxlweb.owsiany.pl"? yes (matched "mail.xxlweb.owsiany.pl")
| lookup yielded: porridge at xxlweb.owsiany.pl:my-secret-password


-- 
Marcin Owsiany <porridge at debian.org>             http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216





More information about the Pkg-exim4-maintainers mailing list