[exim] route_list

Top Pagina
Delete this message
Reply to this message
Auteur: Chris Knipe
Datum:  
Aan: exim-users
Onderwerp: [exim] route_list
Hi all,

Can someone help me out with this router?? I'm having a bit of trouble...

virtual_gateway:
  driver = manualroute
  domains = ${lookup mysql{SELECT Zonename FROM SMTPZones WHERE 
ZoneState='Local' AND ForwardTo IS NOT NULL;}}
  transport = remote_smtp
  ignore_target_hosts = 
0.0.0.0/8:10.0.0.0/8:172.16.0.0/12:192.168.0.0/16:127.0.0.0/8: \
                        169.254.0.0/16:192.0.2.0/24:192.88.99.0/24:224.0.0.0/4:240.0.0.0/4
  route_data = ${lookup mysql{SELECT ForwardTo FROM SMTPZones WHERE 
ZoneState='Local' AND ZoneName='${quote:$domain}';}}



mysql> SELECT Zonename FROM SMTPZones WHERE ZoneState='Local' AND ForwardTo
IS NOT NULL;
+---------------+
| Zonename      |

+---------------+
| mydomain.com |

+---------------+


ForwardTo would return the smarthost which is supposed to receive the email
for the mentioned domain.


Thanks,

Chris.



*********************************************************************
** This email has been scanned by Cenergy Networks for viruses and **
** spam.  As part of our ongoing drive to ensure reliable and      **
** secure communications, Cenergy Networks guarantees this message **
** to be clean of any viruses or spam.  Should you not be satisfied**
** with the content of this email, please let us know by emailing  **
** us at feedback@???                              **
*********************************************************************