[exim] Wrong 'envelope-to'-handling (possible bug?)

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Thomas
Datum:  
To: exim-users
Betreff: [exim] Wrong 'envelope-to'-handling (possible bug?)
Hi all,

i found a problem in exim's 'envelope-to'-handling. (look at
below-mentioned informations about my system too)

The local domains of exim are "mydomain.com, localhost, mail.mydomain.com".
I send a local email to 'admin@localhost'.

alias-file:
===========
---cut---
admin:    test1@???
---cut---


The alias-expansion seems fine and I got this mail:

---cut---
Return-path: <send@???>
Envelope-to: admin@localhost
Delivery-date: Tue, 01 Feb 2005 21:06:59 +0100
Received: from exim by mail.mydomain.com with spam-scanned (Exim 4.44)
        id 1Cw4Ic-0002tb-Or
        for admin@localhost; Tue, 01 Feb 2005 21:06:59 +0100
Received: from localhost ([127.0.0.1] helo=test.com)
        by mail.mydomain.com with smtp (Exim 4.44)
        id 1Cw4IW-0002tG-R2
        for admin@localhost; 2005-02-01 21:06:58
subject: test
Message-Id: <E1Cw4Ic-0002tb-Or@???>
From: send@???
To: admin@localhost
Date: Tue, 01 Feb 2005 21:06:59 +0100


test
---cut---

My problem: Normaly the Envelope-to-Header should contain
"test1@???" and not "admin@localhost" (for further use with
fetchmail). I found no way to configure exim to write the correct
'envelope-to'-header.

I created a debug-log for more informations:

---cut---
21:06:46 11114 internal_search_find: file="/etc/exim/alias"
21:06:46 11114   type=lsearch key="admin"
21:06:46 11114 file lookup required for admin
21:06:46 11114   in /etc/exim/alias
21:06:46 11114 ---2 Get 0x9d6acb0   104      lsearch.c  249
21:06:46 11114 ---2 Rst 0x9d6acc2    **      lsearch.c  289 32800
21:06:46 11114 ---2 Get 0x9d6acc8    24       search.c  519
21:06:46 11114 lookup yielded: test1@???
21:06:46 11114 ---0 Get 0x9d66918    24       string.c  347
21:06:46 11114 ---0 Rst 0x9d668a2    **       expand.c 4409 32800
21:06:46 11114 expanding: ${lookup{$local_part}lsearch{/etc/exim/alias}}
21:06:46 11114    result: test1@???
21:06:46 11114 expanded: test1@???
21:06:46 11114 file is not a filter file
21:06:46 11114 parse_forward_list: test1@???
21:06:46 11114 extract item: test1@???
21:06:46 11114 ---0 Get 0x9d668a8    24        parse.c  625
21:06:46 11114 ---0 Get 0x9d668c0   200      deliver.c  102
21:06:46 11114 ---0 Get 0x9d66988    24       string.c  347
21:06:46 11114 ---0 Get 0x9d669a0    24       string.c  347
21:06:46 11114 system_aliases router generated test1@???
21:06:46 11114   errors_to=NULL transport=NULL
21:06:46 11114   uid=unset gid=unset home=NULL
21:06:46 11114 routed by system_aliases router
21:06:46 11114   envelope to: admin@localhost
21:06:46 11114   transport: <none>
---cut---


Is this a misconfiguration or a possible bug - who can help me. :-)

Many thanks in advance,

Thomas K. M.


Informations about my system:
=============================

System: Red Hat Linux, Kernel 2.4

Exim version 4.44 #1 built 01-Feb-2005 19:52:57
Copyright (c) University of Cambridge 2004
Berkeley DB: Sleepycat Software: Berkeley DB 4.0.14: (November 18, 2001)
Support for: iconv() PAM Perl OpenSSL
Lookups: lsearch wildlsearch nwildlsearch iplsearch dbm dbmnz dsearch mysql
Authenticators: cram_md5 plaintext
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir autoreply pipe smtp
Fixed never_users: 0


parts of my exim-config for alias-handling:
========================
---cut (router)---
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/exim/alias}}
file_transport = address_file
pipe_transport = address_pipe
---cut---


---cut (transport)---
address_pipe:
driver = pipe
return_output

address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
---cut---

parts of my exim-config for local-domain-handling:
========================
---cut (router)---
domain_delivery:
driver = accept
transport = domain_maildir_delivery
domains = +local_domains
---cut---


---cut (transport)---
domain_maildir_delivery:
driver = appendfile
directory = /var/spool/mail/mydomain.com
current_directory = /var/spool/mail
maildir_format
delivery_date_add
envelope_to_add
return_path_add
create_directory
maildir_tag = ,S=$message_size
quota_size_regex = S=(\d+)
group = mail
mode = 0660
headers_remove = ${if eq{$sender_host_address}{}{Sender}}
---cut---