Re[2]: [Exim] Mail routing and backup question.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Alexei V. Alexandrov
Datum:  
To: exim-users
Betreff: Re[2]: [Exim] Mail routing and backup question.
Hello everyone,

As i have posted a question about running MXes on the list i think i
got a solution to solve my problem:

for example domain foo.com has the following MXes listed:
foo.com      IN MX 100 mx-1.domain.com
foo.com      IN MX 200 mx-2.domain.com
foo.com      IN MX 300 mx-3.domain.com
mail.foo.com IN A  a.b.c.d


on every mail host i define a router rule like this:

SQL_MX_LIST = SELECT DISTINCT DOMAIN FROM Domains WHERE \
              DOMAIN='$domain' AND HOST_SERVER<>'this.mx.hostname'


DOMAIN_OTHER_MXES  =  "mx-2.domain.com:mx-3.domain.com" # exclude this
                      mx address.


mx_router:
        driver = domainlist
        transport = remote_smtp
        host_find_failed = fail_soft
        domains = mysql;SQL_MX_LIST
        route_list = "* mail.$domain:DOMAIN_OTHER_MXES bydns_a"


This work fine, but when the sql has gone awy or connection is not
available i get "user@??? cannot be resolved at this time:"

i execute exim with the following command:

exim -d 9 -C ./exim.conf.mx -bt user@???

How can i arrange this router not to fail if it is not able to process
sql query?

Best regards,
Alexei V. Alexandrov | @ ElcomSoft Ltd. | Phone: +7 095 974-11-62
System Administrator | www.elcomsoft.com | Mail: ava@???
---------------------+-------------------+-------------------------
*** It`s always a long day, 86400 doesn`t fit into a short. ***