Autor: Alexey Promokhov Data: Para: kza CC: exim-users Asunto: Re: [Exim] different smarthosts depending on SENDER domain
Hello kza!
kza wrote:
k> Hi, I would normally want my localhost smtp server running exim, to
k> send all messages directly to their destination. However, since I am on
k> a dialup account, many destination smtp servers refuse to accept mail
k> from my address as an over zealous anti-spam measure. k> I solved this for myself, my normal email address, @gmx.de, by using the
k> smtp server at gmx.net as a smarthost, but of course all my other users
k> can't use this, some are using our dynamic dns address as their email
k> domain, and some use email addresses provided by our isp, t-online.de. k> How can I write exim rules, that specify mail.gmx.net as the smarthost
k> ONLY when the From address is gmx.de, and specify smtp.t-online.com,
k> only when the senders address is t-online.de, and for the local exim to
k> deliver directly for all other cases?
lookuphost:
driver = lookuphost
transport = remote_smtp
=== Cut ===
There is probable some syntax errors, but you should understand how to
do it.
But why you cannot use smtp.t-online.com each time when you are using
their dialup? They should relay from each ip from their network,
regardless of mail from address. If they don't, then it's incorrect.