[exim] rewrite aliases

Top Page
Delete this message
Reply to this message
Author: SCHUH Karl, BFI-Bgld
Date:  
To: exim-users
Subject: [exim] rewrite aliases
Hi,
I have a installation with Zimbra as the main-mailserver. It runs LDAP and knows all users (by e-mail-address) and all aliases. I also have a mail-relay with exim4, which cares for spam and viruses. This exim achecks the incoming e-mails, if the recipient exist, by asking the LDAP-server on my Zimbra. This works OK so far.

For some reasons I want to resolve the aliases to the primary e-mail-adress of my users. Any mail to one of the aliases, should be rewritten to the primary-address of the user. I thought, that a redirect-router would do this, so I tried

ldap_alias:
driver = redirect
one_time = true
domains = +forward_domains
data = ${lookup ldap \
{user="cn=abc" pass=xyz ldap:///ou=people,dc=bfi-burgenland,dc=at?mail?sub?(mail=$local_part@$domain)} }
forbid_file = true
forbid_pipe = true

But since all adresses (primary and all aliases) have the argument "mail", it looks like having a loop. When I try:

exim4 -d -bt -C /etc/exim4/exim-test.conf k.schuh@???

I get all 5 mail-adresses and an endless list (it stops after some 30 pages) of:

k.schuh@??? [duplicate, would not be delivered]
<-- postmaster@???
<-- postmaster@???
<-- cisco@???
<-- k.schuh@???
router = ldap_verteiler_bfi_burgenland, transport = remote_smtp
host 192.168.100.15 [192.168.100.15]
postmaster@??? [duplicate, would not be delivered]
<-- postmaster@???
<-- cisco@???
<-- k.schuh@???
router = ldap_verteiler_bfi_burgenland, transport = remote_smtp
host 192.168.100.15 [192.168.100.15]
cisco@??? [duplicate, would not be delivered]
<-- postmaster@???
<-- cisco@???
<-- k.schuh@???
router = ldap_verteiler_bfi_burgenland, transport = remote_smtp
host 192.168.100.15 [192.168.100.15]

Why does the "one_time"-option not prevent this. Can anyone help?

Best regards
Karl

mit freundlichen Grüßen

Ing. Karl SCHUH
CISO, Übungsfirmenleiter, QM-Auditor



Grazerstrasse 86
A-7400 Oberwart
Tel. +43(3352)38980-2125
Fax +43(3352)38980-2204
Mob. +43(664)3806107 0664-80045225
web www.bfi-burgenland.at
DVR: 0668044
UID: ATU 39163301
ZVR: 02 44 86 285
Vereinsregister-Nr.: 294/90 SiD Bgld., 11/01-530 (BH Oberwart)
Diese Nachricht und allfällige angehängte Dokumente sind vertraulich und nur für den/die Adressaten bestimmt. Sollten Sie nicht der beabsichtigte Adressat sein, ist jede Offenlegung, Weiterleitung oder sonstige Verwendung dieser Informationen nicht gestattet. In diesem Fall bitten wir, den Absender zu verständigen und die Information zu vernichten. Für Übermittlungsfehler oder sonstige Irrtümer bei Übermittlung besteht keine Haftung.