Re: [exim] Rewriting sender based on recipient?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Mike Brudenell
Ημερομηνία:  
Προς: Exim Users
Αντικείμενο: Re: [exim] Rewriting sender based on recipient?
Hi, Marco -

I'm not too sure what you're asking… Is it about the *errors_to* option for
routers in Exim? If so, the documentation for errors_to in the
*Specification* shows it is expanded when it is used. That is, you can use
a string expansion expression with the option to choose what value you
should assign it based on other things.

So you can write a string expansion that does whatever you need — for
example, test the domain of the recipient address to see whether they are
one of your local users or not, then do either a file- or LDAP-lookup to
see if there is a value to be sued for them.

If you're instead asking about rewriting the RFC5321.MailFrom,
RFC5322.{From, Reply-to, Sender} headers using the Address Rewriting
section then you can also use string expansions in the replacement value of
rules there so can do the same thing there.

Cheers,
Mike B-)

On 17 March 2017 at 11:45, Marco Gaiarin <gaio@???> wrote:

>
> Supposing to have aliases (strictling speaking: a LDAP query, but also a
> file, is irrilevant) that have as destination local and remote addresses
> (clearly, not only one of them: mixed up).
>
> There's some way to rewrite sender, setting 'errors_to = ', based on the
> recipient address, eg only for nonlocal recipient?
>
>
> Thanks.
>
> --
>   Vendere no, non passa tra i miei rischi,
>   non comprate i miei dischi e sputatemi addosso.       (F. Guccini)

>
>
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>




--
Systems Administrator & Change Manager
IT Services, University of York, Heslington, York YO10 5DD, UK
Tel: +44-(0)1904-323811

Web: www.york.ac.uk/it-services
Disclaimer: www.york.ac.uk/docs/disclaimer/email.htm