Re: [exim] How do I specify "mail.example.com port 8025" in …

Góra strony
Delete this message
Reply to this message
Autor: Jason Meers
Data:  
Dla: exim-users
Temat: Re: [exim] How do I specify "mail.example.com port 8025" in my exim4 configuration?


-----Original Message-----
From: Marc Haber [mailto:mh+exim-users@zugschlus.de]
Sent: 14 November 2006 10:49
To: exim-users@???
Subject: Re: [exim] How do I specify "mail.example.com port 8025" in my exim4 configuration?

Just incase anyone else is interested, or you decide to put in some effort to get this working (Alan, not Marc), the following settings will allow for delivery over different ports. The example I give assumes a standard exim configuration file (I think Debian calls this a "single monolithic" configuration, but I could be wrong)

I use an additional transport:

begin transports

remote_smtp:
driver = smtp

smtp_port_2025:
driver = smtp
port = 2025




Then specify this transport directly in a router e.g.

port2025_router:
driver = dnslookup
domains = example.com
transport = smtp_port_2025
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more




Or use an additional parameter in the manualroute data to override the transport used
(The extra parameter must match the transport name exactly)

london-office.com:        10.1.0.1
paris-office.com:            10.2.0.1      smtp_port_2025
new-york-office.com:        10.3.0.1      smtp_port_2025
morecambe-office.com:        10.4.0.1      smtp_port_2025



Hope that helps someone
Thanks
Jason_meers

(If anybody disagrees with this please mail me back as I'm going to add this method to some documentation I'm writing).