Re: [exim] Setting up exim to relay through ISP's email serv…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Phil Pennock
Dátum:  
Címzett: Eli C, exim-users
Tárgy: Re: [exim] Setting up exim to relay through ISP's email server
On 2008-06-20 at 20:46 -0700, Phil Pennock wrote:
> On 2008-06-20 at 00:07 -0400, Eli C wrote:
> > Do you have an example of this?
>
> I have a rather complex setup for my laptop. It does this and more.


For the specific example of 'this' cited, yes, it does that and more.
It doesn't switch based on From: header though.

Switching on the From: header instead of the SMTP Envelope Sender is
slightly complicated because From: can contain multiple addresses, so
you want something like:

${sg{${addresses:$h_From:}}{:.*}{}}

to get the first one. If you're sure there will only ever be one
address in From:, then just ${address:$h_From:} will do.

Amending the example I gave to do dispatch based on sender, not
recipient, left as an exercise to the reader. Which will probably be me
soonish, since I really should be switching based on From: instead of
being lazy and just doing it based on recipient.

-Phil