[exim] To gateway of network...

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Silmar A. Marca
Datum:  
To: exim-users
Betreff: [exim] To gateway of network...
Helo. I have multiple servers in different networks. I need to a special route
to "Network/Mask" of MX of domain destination, not for a domain destination.

Example (running and ok) to domains:
<...>
MYSQL_GATEWAY1         = SELECT DISTINCT gateway.domain_name FROM gateway WHERE
gateway.domain_name='${quote_mysql:$domain}' AND gateway.ativo='1' LIMIT 1
MYSQL_GATEWAY2         = SELECT gateway.domain_host FROM gateway WHERE
gateway.domain_name='${quote_mysql:$domain}' AND gateway.ativo='1' ORDER BY
RAND( ) LIMIT 1
<...>
send_gateway:
  driver                = manualroute
  transport             = remote_delivery
  domains               = ${sg{${lookup
mysql{MYSQL_GATEWAY1}{$value}}}{(.*)}{\$1 :}}
  route_data            = ${lookup mysql {MYSQL_GATEWAY2}{$value}fail}
<...>



I need to replace the "domains=*.domain.com" to "target_mx_domain=200.0.0.0/8"
for example...

Cordialmente, Silmar A. Marca
------------------------------------------------------------
Se algo nao lhe faz mal (fisico, moral ou psicologicamente),
experimente! O maximo e voce perder tempo! E tempo, e
o que voce tem a vida toda pra perder.....
Mais vale um instante de prazer que uma eternidade futil!
------------------------------------------------------------