Chris Siebenmann <[email protected]> writes:
>  Yes, this is definitely possible. What you probably want to do is
> make the 'employer' router conditional on the From: header value.
> This is going to take delving into Exim's string expansions because
> you'll likely need to use the full 'condition =' router option.

For posterity, this seemed to do the trick:

employer:
  debug_print = "R: employer for $local_part@$domain"
  condition = ${if match { $h_from } { .*<.*@employer\\.com>.* }}
  driver = manualroute
  transport = remote_smtp_employer
  route_list = *employer.com localhost
  self = send

Mail from my corporate identity goes through localhost, through
DavMail, through OWS, and under whatever rock you find Exchange
beneath.

>  Of course, if you wanted to you could extend this even further so
> that *all* email From: your work address was routed through work,
> no matter what its destination.

Yes. I can see that. But I don't care.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <[email protected]> | Life does not cease to be funny when
http://nwalsh.com/            | people die anymore than it ceases to be
                              | serious when people laugh.--George
                              | Bernard Shaw

Attachment: signature.asc
Description: PGP signature

-- 
## 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/

Reply via email to