|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
mailForwarding from ldap (why doesn't it work?)
From: Jeroen Vriesman (jeroen.vriesman
experian.nl)
Date: Mon Jun 02 2003 - 07:15:30 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
I have a postfix 2.0.7 server, and in my ldap database I have an attribute mail, and an attribute mailForwardingAddress.
In my main.cf I have:
virtual_maps = ldap:aliasall
.
.
.
aliasall_result_attribute = mail,mailForwardingAddress
With one smtp daemon it works fine, if someone has a mailForwardingAddress, the mail gets duplicated to that address, which is what I want.
I've added a virus scanner (amavis), running two smtpd's, in master.cf:
smtp inet n - n - - smtpd
localhost:10025 inet n - n - - smtpd -o content_filter=
Ofcourse, that doesn't really work, because of the mailForwardingAddress, the first smtpd makes two messages out of one, delivers it to amavis, and then the second smtpd makes (again) two messages out of the first one.
So the mailForwardingAddress gets the message twice.
I tried to fix that the following way:
add another ldap lookup in main.cf, with:
alias_result_attribute = mail
And then I've changed the first smtp in master.cf:
smtp inet n - n - - smtpd -o virtual_maps=ldap:ldapalias
The result is that the message still gets delivered twice to the mailForwardingAddress, so the 'virtual_maps=ldap:ldapalias' options seems to be ignored.
I've posted this problem before on this list, and someone told me to upgrade to 2.0.10, but would that realy help?
Or is there a complete different way to arrange the mailforwarding with virtual users from ldap?
Cheers,
Jeroen.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]