OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
mailForwarding, which processes are using virtual_alias_maps

From: Jeroen Vriesman (jeroen.vriesmanexperian.nl)
Date: Mon Jun 02 2003 - 08:35:55 CDT


Well, I tried it with the cleanup option, but it seems that the cleanup process is NOT doing the ldaplookup-expansion.

master.cf:

firstcln unix n - n - 0 cleanup -o virtual_alias_maps=ldap:onlyalias
cleanup unix n - n - 0 cleanup -o virtual_alias_maps=ldap:fwdalias

With onlyalias being an ldap lookup with only the 'mail' result, and fwdalias having 'mail,mailForwardAddress' as a result.

And then, the firts smtp having cleanup_service_name=firstcln, the second one having normal cleanup.
But the parameter virtual_alias_maps is still the only one which makes the mailForwarding happen (twice), or not at all.

When I remove the virtual_alias_maps parameter from the main.cf, but give the option to both cleanup processes, I get 'status deferred (temporary failure)' in mt log.

So my conclusion is that the cleanup process is not doing the ldap alias expansion, or, it's not the only process which uses the virtual_alias_maps parameter.

Does anyone know which processes are using the alias_maps_parameter ?

cheers,
Jeroen.

On Mon, 02 Jun 2003 14:40:46 +0200
Pascal Gienger <Pascal.Giengeruni-konstanz.de> wrote:

> Jeroen Vriesman <jeroen.vriesmanexperian.nl> wrote:
>
>
> > The result is that the message still gets delivered twice to the
> > mailForwardingAddress, so the 'virtual_maps=ldap:ldapalias' options seems
> > to be ignored.
>
> Correct me if I am wrong, but:
> Virtual expansion gets done by cleanup(8). So your smtpd will ignore that
> option and pass your mail which he got from your amavis again to cleanup,
> using the standard options.
>
> Try this:
>
> Use "-o cleanup_service_name=my_other_cleanup" as option for your
> amavis-smtpd(8) and define an additional transport "my_other_cleanup" in
> master.cf, which invokes cleanup with your appropriate option ("-o
> virtual_alias_maps=").
>
> Pascal
> --
> Pascal Gienger, Kanzleistrasse 14, D-78462 Konstanz
> Postfix+SASL-AUTH+LDAP Solaris 8: http://pgienger.de/postfix/