Re: [exim] Private Aliaes

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Heiko Schlittermann
Datum:  
To: exim-users
Betreff: Re: [exim] Private Aliaes
Heiko Schlittermann <hs@???> (Fr 22 Okt 2010 21:52:09 CEST):
> Exim <exim@???> (Fr 22 Okt 2010 21:38:49 CEST):
> > I have a customer asking me to set up a separate alias file, but one that
> > can only be used when the email comes from a local(trusted) machine.
>
>     private_aliases:
>         driver = redirect
>         hosts = +trusted_hosts
>         data = …

>
> It's not tested, but should work.


It does not work. I confused it with the ACL rules.
For the router you have a precondition "senders = …", but this expects a
list of sender mail addresses!

Thus you need to use the generic

        condition = …


option to conditionally enable/disable the router. The condition should
lookup the $sender_host_address in some list.

Alternativly you could use some ACL to set some of the acl variables and
let the router check for this variable.

--
Heiko