[exim] Send mail to specific domains via smart host

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Rory Campbell-Lange
Date:  
À: exim-users
Sujet: [exim] Send mail to specific domains via smart host
Hi

Apologies for the naive question, but my Exim skills are now very rusty.

We've been unexpectedly jumped onto a new ip address for our domain and
we have a problem with the address being cold. Consequently we've got
about 1000 yahoo and aol emails backed up over the last day or so.

Our service provider has provided us with a backup relay which we can
use, but we'd prefer to only send aol and yahoo emails through them.

We're using a simple setup using Debian's packaged configurations which
I guess we will need to tweak.

The Debian routers for our config (dc_eximconfig_configtype='internet') are as
follows:

    dnslookup_relay_to_domains:
      debug_print = "R: dnslookup_relay_to_domains for $local_part@$domain"
      driver = dnslookup
      domains = ! +local_domains : +relay_to_domains
      transport = remote_smtp
      same_domain_copy_routing = yes
      no_more


    dnslookup:
      debug_print = "R: dnslookup for $local_part@$domain"
      driver = dnslookup
      domains = ! +local_domains
      transport = remote_smtp
      same_domain_copy_routing = yes
      ignore_target_hosts = 0.0.0.0 : 0000::0000/0 : 127.0.0.0/8 : 192.168.0.0/16 :\
                            172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\
                255.255.255.255
      no_more


What I believe I need to add is a block like this:

    dns_yahoo_aol:
      debug_print = "R: dnslookup_yahoo_aol for $local_part@$domain"
      driver = dnslookup
      domains = aol.com : yahoo.com
      transport = remote_smtp_smarthost
      route_list = mx.localrelay.com byname
      same_domain_copy_routing = yes
      no_more


The normal Debian exim4 config has

    route_list = * DCsmarthost byname
    and
    host_find_failed = ignore


but I don't know if those are worth retaining.

Comments gratefully received.

Rory