Szerző: Mathieu CATTIN Dátum: Címzett: exim-users Tárgy: [exim] (no subject)
I think subject is self-explanatory,
Really often machines behind an ADSL line with dinamically assigned IP
address have issues sending mail to some mail servers (RBL blocked for
having Dynamic IP address or popular ISP).
We have some hosts in a datacenter that have no problem sending mail but
traffic cost us money...
I want to have on this datacenter some host that acts as an smarthost for
hosts behind ADSL lines but only when it is necessary, so I can save traffic
on the datacenter
The question is: can I try to deliver directly and if I get a permanent error
(probably relaying denied) send this message to my smarthost? How can I
configure this in exim.conf? I'm now using exim3 but I woundn't mind
upgrading to exim4.
Well to route mails via your ISP you need to add as first router in the router section of your configure file :
For version 3.x :
#
# route via ISP mail server
#
store_and_forward:
driver = domainlist
transport = remote_smtp
route_list = * smtp.your.isp
Where smtp.your.isp must be replaced with the full qualified domain name of the SMTP server of your ISP.
and for v4.x
#
# route via ISP mail server
#
store_and_forward:
driver = manualroute
transport = remote_smtp
route_list = * smtp.your.isp