Bug#305569: cannot get exim4-config to generate a config that uses /etc/email-addresses

Wim De Smet Wim De Smet <fragmeat@yucom.be>, 305569@bugs.debian.org
Mon, 25 Apr 2005 20:51:09 +0200


This is a multi-part message in MIME format.
--------------050608020907020607000907
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Marc Haber wrote:

>Hi,
>
>On Sun, Apr 24, 2005 at 07:37:57PM +0200, Wim De Smet wrote:
>  
>
>>>On Thu, Apr 21, 2005 at 10:39:02PM +0200, Wim De Smet wrote:
>>>      
>>>
>>>>I'm confused to what is happening. I changed some things:
>>>>dc_other_hostnames='Orion'
>>>>        
>>>>
>>>I'd put in the FQDN.
>>>      
>>>
>>It's just the local hostname as returned by hostname --fqdn. I dunno 
>>what else I should write.
>>    
>>
>
>hostname --fqdn should return the fully qualified host name (FQDN),
>not the unqualified hostname. There is something wrong on your box.
>  
>
Hmm it's a local box on a local network. I guess I never needed a dns 
domainname. Maybe adding one in /etc/hosts would help? (mydomain.org or 
something then?)

>  
>
>>>Is debugging output (add -d) helpful?
>>>      
>>>
>>Not quite sure how I would go about setting that with the deamon. I 
>>included the output I get when trying the rewriting rules in debug mode.
>>    
>>
>
>That's what I meant.
>
>However, this output is not conclusive since rewriting seems to work
>ok, but not when sending an actual e-mail.
>
>Can you please send the output of
>
>echo -e "From: kromagg@localhost\nTo: kromagg@gmail.com\nSubject: test\n\ntest" | exim -d -f kromagg@localhost kromagg@gmail.com
>  
>
I attached it.

greets,
Wim

P.S.: is there supposed to be an /usr/sbin/exim link? I don't have one

--------------050608020907020607000907
Content-Type: text/plain;
 name="output.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="output.txt"

Exim version 4.50 uid=0 gid=0 pid=6575 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=6575
  auxiliary group list: <none>
configuration file is /var/lib/exim4/config.autogenerated
log selectors = ffffffff 7fffffff
LOG: MAIN
  cwd=/root 5 args: exim4 -d -f kromagg@localhost kromagg@gmail.com
trusted user
admin user
changed uid/gid: privilege not needed
  uid=108 gid=108 pid=6575
  auxiliary group list: <none>
originator: uid=0 gid=0 login=root name=
sender address = kromagg@localhost
set_process_info:  6575 accepting a local non-SMTP message from <kromagg@localhost>
Sender: kromagg@localhost
Recipients:
  kromagg@gmail.com
search_tidyup called
>>Headers received:
From: kromagg@localhost
To: kromagg@gmail.com
Subject: test

address match: subject=kromagg@localhost pattern=*@+local_domains
localhost in "@:localhost:Orion"? yes (matched "localhost")
localhost in "+local_domains"? yes (matched "+local_domains")
kromagg@localhost in "*@+local_domains"? yes (matched "*@+local_domains")
search_open: lsearch "/etc/email-addresses"
search_find: file="/etc/email-addresses"
  key="kromagg" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/email-addresses
  End
internal_search_find: file="/etc/email-addresses"
  type=lsearch key="kromagg"
file lookup required for kromagg
  in /etc/email-addresses
lookup yielded: wdesmet@yucom.be
LOG: address_rewrite MAIN
  "kromagg@localhost" from env-from rewritten as "wdesmet@yucom.be" by rule 1
address match: subject=wdesmet@yucom.be pattern=*@Orion
yucom.be in "Orion"? no (end of list)
wdesmet@yucom.be in "*@Orion"? no (end of list)
rewritten sender = wdesmet@yucom.be
rewrite_one_header: type=F:
  From: kromagg@localhost
address match: subject=kromagg@localhost pattern=*@+local_domains
localhost in "@:localhost:Orion"? yes (matched "localhost")
localhost in "+local_domains"? yes (matched "+local_domains")
kromagg@localhost in "*@+local_domains"? yes (matched "*@+local_domains")
search_open: lsearch "/etc/email-addresses"
  cached open
search_find: file="/etc/email-addresses"
  key="kromagg" partial=-1 affix=NULL starflags=0
LRU list:
  :/etc/email-addresses
  End
internal_search_find: file="/etc/email-addresses"
  type=lsearch key="kromagg"
cached data used for lookup of kromagg
  in /etc/email-addresses
lookup yielded: wdesmet@yucom.be
LOG: address_rewrite MAIN
  "kromagg@localhost" from from: rewritten as "wdesmet@yucom.be" by rule 1
address match: subject=wdesmet@yucom.be pattern=*@Orion
yucom.be in "Orion"? no (end of list)
wdesmet@yucom.be in "*@Orion"? no (end of list)
newlen=23 newtype=F newtext:
From: wdesmet@yucom.be
remainder: 
rewrite_one_header: type=T:
  To: kromagg@gmail.com
search_tidyup called
>>Headers after rewriting and local additions:
* From: kromagg@localhost
F From: wdesmet@yucom.be
T To: kromagg@gmail.com
  Subject: test
I Message-Id: <E1DQ8ZK-0001i3-PW@Orion>
* X-rewrote-sender: kromagg@localhost
  Date: Mon, 25 Apr 2005 20:44:30 +0200

Data file written for message 1DQ8ZK-0001i3-PW
>>Generated Received: header line
P Received: from root by Orion with local (Exim 4.50)
	id 1DQ8ZK-0001i3-PW
	for kromagg@gmail.com; Mon, 25 Apr 2005 20:44:30 +0200
calling local_scan(); timeout=300
local_scan() returned 0 NULL
Writing spool header file
Size of headers = 264
LOG: MAIN
  <= wdesmet@yucom.be U=root P=local S=270 T="test"
search_tidyup called
exec /usr/sbin/exim4 -d=0xfbb95cfd -Mc 1DQ8ZK-0001i3-PW
Exim version 4.50 uid=108 gid=108 pid=6576 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=108 pid=6576
  auxiliary group list: <none>
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=6575 terminating with rc=0 >>>>>>>>>>>>>>>>
configuration file is /var/lib/exim4/config.autogenerated
log selectors = ffffffff 7fffffff
LOG: MAIN
  cwd=/var/spool/exim4 4 args: /usr/sbin/exim4 -d=0xfbb95cfd -Mc 1DQ8ZK-0001i3-PW
trusted user
admin user
skipping ACL configuration - not needed
set_process_info:  6576 delivering specified messages
set_process_info:  6576 delivering 1DQ8ZK-0001i3-PW
reading spool file 1DQ8ZK-0001i3-PW-H
user=root uid=0 gid=0 sender=wdesmet@yucom.be
sender_local=0 ident=root
Non-recipients:
Empty Tree
---- End of tree ----
recipients_count=1
body_linecount=1 message_linecount=8
Delivery address list:
  kromagg@gmail.com 
locking /var/spool/exim4/db/retry.lockfile
locked /var/spool/exim4/db/retry.lockfile
no retry data available
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Considering: kromagg@gmail.com
unique = kromagg@gmail.com
no domain retry record
no address retry record
kromagg@gmail.com: queued for routing
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
routing kromagg@gmail.com
--------> hubbed_hosts router <--------
local_part=kromagg domain=gmail.com
checking domains
expansion of "${if exists{/etc/exim4/hubbed_hosts}{partial-lsearch;/etc/exim4/hubbed_hosts}fail}" forced failure: assume not in this list
hubbed_hosts router skipped: domains mismatch
--------> smarthost router <--------
local_part=kromagg domain=gmail.com
checking domains
gmail.com in "@:localhost:Orion"? no (end of list)
gmail.com in "! +local_domains"? yes (end of list)
R: smarthost for kromagg@gmail.com
calling smarthost router
smarthost router called for kromagg@gmail.com
  domain = gmail.com
route_item = * mail.tiscali.be byname
gmail.com in "*"? yes (matched "*")
original list of hosts = "mail.tiscali.be" options = byname
expanded list of hosts = "mail.tiscali.be" options = byname
set transport remote_smtp_smarthost
finding IP address for mail.tiscali.be
calling host_find_byname
gethostbyname2(af=inet6) returned 4 (NO_DATA)
fully qualified name = mail.tiscali.be
gethostbyname2 looked up these IP addresses:
  name=mail.tiscali.be address=62.235.13.171
queued for remote_smtp_smarthost transport: local_part = kromagg
domain = gmail.com
  errors_to=NULL
  domain_data=NULL localpart_data=NULL
routed by smarthost router
  envelope to: kromagg@gmail.com
  transport: remote_smtp_smarthost
  host mail.tiscali.be [62.235.13.171]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
After routing:
  Local deliveries:
  Remote deliveries:
    kromagg@gmail.com
  Failed addresses:
  Deferred addresses:
search_tidyup called
>>>>>>>>>>>>>>>> Remote deliveries >>>>>>>>>>>>>>>>
--------> kromagg@gmail.com <--------
search_tidyup called
changed uid/gid: remote delivery to kromagg@gmail.com with transport=remote_smtp_smarthost
  uid=108 gid=108 pid=6577
  auxiliary group list: <none>
set_process_info:  6577 delivering 1DQ8ZK-0001i3-PW using remote_smtp_smarthost
T: remote_smtp_smarthost for kromagg@gmail.com
remote_smtp_smarthost transport entered
  kromagg@gmail.com
gmail.com in queue_smtp_domains? no (option unset)
checking status of mail.tiscali.be
locking /var/spool/exim4/db/retry.lockfile
locked /var/spool/exim4/db/retry.lockfile
no retry data available
mail.tiscali.be [62.235.13.171] status = usable
62.235.13.171 in serialize_hosts? no (option unset)
delivering 1DQ8ZK-0001i3-PW to mail.tiscali.be [62.235.13.171] (kromagg@gmail.com)
set_process_info:  6577 delivering 1DQ8ZK-0001i3-PW to mail.tiscali.be [62.235.13.171] (kromagg@gmail.com)
set_process_info:  6576 delivering 1DQ8ZK-0001i3-PW: waiting for a remote delivery subprocess to finish
selecting on subprocess pipes
Connecting to mail.tiscali.be [62.235.13.171]:25 ... connected
waiting for data on socket
read response data: size=31
  SMTP<< 220 ESMTP smtp-out.tiscali.be
62.235.13.171 in hosts_avoid_esmtp? no (option unset)
  SMTP>> EHLO Orion
waiting for data on socket
read response data: size=97
  SMTP<< 250-spoolo3.tiscali.be Hello Orion [83.134.74.101]
         250-SIZE 10485760
         250-PIPELINING
         250 HELP
62.235.13.171 in hosts_require_tls? no (option unset)
using PIPELINING
62.235.13.171 in hosts_require_auth? no (option unset)
  SMTP>> MAIL FROM:<wdesmet@yucom.be> SIZE=1303
  SMTP>> RCPT TO:<kromagg@gmail.com>
  SMTP>> DATA
waiting for data on socket
read response data: size=78
  SMTP<< 250 OK
  SMTP<< 250 Accepted
  SMTP<< 354 Enter message, ending with "." on a line by itself
  SMTP>> writing message and terminating "."
writing data block fd=7 size=283 timeout=300
waiting for data on socket
read response data: size=28
  SMTP<< 250 OK id=1DQ8ZK-0005pf-U3
journalling kromagg@gmail.com
ok=1 send_quit=1 send_rset=0 continue_more=0 yield=0 first_address is NULL
transport_check_waiting entered
  sequence=1 local_max=500 global_max=-1
locking /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
locked /var/spool/exim4/db/wait-remote_smtp_smarthost.lockfile
opened hints database /var/spool/exim4/db/wait-remote_smtp_smarthost: flags=2
dbfn_read: key=mail.tiscali.be
no messages waiting for mail.tiscali.be
  SMTP>> QUIT
set_process_info:  6577 delivering 1DQ8ZK-0001i3-PW: just tried mail.tiscali.be [62.235.13.171] for kromagg@gmail.com: result OK
Leaving remote_smtp_smarthost transport
set_process_info:  6577 delivering 1DQ8ZK-0001i3-PW (just run remote_smtp_smarthost for kromagg@gmail.com in subprocess)
search_tidyup called
reading pipe for subprocess 6577 (not ended)
read() yielded 5
selecting on subprocess pipes
reading pipe for subprocess 6577 (not ended)
read() yielded 75
selecting on subprocess pipes
reading pipe for subprocess 6577 (not ended)
read() yielded 2
Z0 item read
remote delivery process 6577 ended
set_process_info:  6576 delivering 1DQ8ZK-0001i3-PW
post-process kromagg@gmail.com (0)
kromagg@gmail.com delivered
LOG: MAIN
  => kromagg@gmail.com F=<wdesmet@yucom.be> P=<wdesmet@yucom.be> R=smarthost T=remote_smtp_smarthost S=283 H=mail.tiscali.be [62.235.13.171]:25 C="250 OK id=1DQ8ZK-0005pf-U3" QT=1s DT=1s
>>>>>>>>>>>>>>>> deliveries are done >>>>>>>>>>>>>>>>
changed uid/gid: post-delivery tidying
  uid=108 gid=108 pid=6576
  auxiliary group list: <none>
set_process_info:  6576 tidying up after delivering 1DQ8ZK-0001i3-PW
Processing retry items
Succeeded addresses:
kromagg@gmail.com: no retry items
Failed addresses:
Deferred addresses:
end of retry processing
LOG: MAIN
  Completed QT=1s
end delivery of 1DQ8ZK-0001i3-PW
search_tidyup called
search_tidyup called
>>>>>>>>>>>>>>>> Exim pid=6576 terminating with rc=0 >>>>>>>>>>>>>>>>

--------------050608020907020607000907--