Sebastian Lohmeier wrote:

> I think it is possible for Exim to route e-mails to smart hosts - SMTP 
> servers it authenticates to with username and password (like if it was a 
>   client).
> 
> When I create a special route for these to-be-routed e-mails, is it 
> possible to create the route based on the FROM address of the e-mail 
> messages rather than based on the recipients addresses?
> 
> Thanks in advance for your help!

Yes. The following router would route any mail with 
postmas...@example.com in the From header to 192.168.0.1

the_router:
   driver      = manualroute
   condition   = ${if eq{${address:$h_From:}}{postmas...@example.com}}
   transport   = remote_smtp
   route_data  = 192.168.0.1

-- 
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/

-- 
## List details at http://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