Page 1 of 1

Few smarthosts simultaneously

Posted: Thu Jan 18, 2018 2:10 pm
by Messiah
Hello,

Does somebody know how to configure exim4 to use few smarthost configurations simultaneously?
For example, if one server has few web domains and mail domains hosted, how to setup all mail from @domain1 to be sent using smarthost1, all mail from @domain2 to be sent through smarthost2, and all from boxes in @domain3 to be sent directly?
OR
routing mail from all domains hosted at the same server to choose smarthost based on the recepients' address, i.e. all recepients @gmail.com to be sent using one route, all other using second route.

Probably this task is not common, I see various tutorials how to setup smarthost but I see npthing about few smarthosts.

Thanks