[exim] Manualroute to non standard smtp (port 2525)

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jason Meers
Dátum:  
Címzett: exim-users
Tárgy: [exim] Manualroute to non standard smtp (port 2525)
Hi,

I have been asked a question regarding the "Integrating Exim with
Exchange" tutorial I wrote for the Exim Conference.

I would like to update the paper to include support for delivery to non-
standard smtp ports as it comes up frequently in smaller installations
where ISPs try to stop home users running mail servers by blocking
inbound connections to port 25.

the tutorial users the following router:

-----------------------------------------------------
internal:
driver = manualroute
transport = remote_smtp
route_data = ${lookup{$domain}partial-lsearch{/etc/exim/exim-deliver-
mail-to-this-list-of-servers}}
------------------------------------------------------

with the following lookup file:

-----------------------------------------------------
# /usr/exim/exim-deliver-mail-to-this-list-of-servers

# example by hostname
fictionalcompany.com:            exchange.fictionalcompany.com


# example by ip address
domain1.com:                    exch1.exch1.exch1.exch1
domain2.com:                    exch2.exch2.exch2.exch2
domain3.com:                    exch3.exch3.exch3.exch3


# example of fallback server
# 10.1.1.1 is main server
# 10.2.2.2 is fallback server
domain4.com:                    10.1.1.1:10.2.2.2
-----------------------------------------------------


I have been asked how to change the port to delivery to on a per domain
basis, simply adding ":2525" to the end of a hostname just adds "2525"
as a second server in the list rather than changing the port that mail
is delivered to on the specified host.

What is the cleanest way of adding this functionality? Any help would be
appreciated and will be included along with an acknowledgement in a new
version of the tutorial.

Thanks

Jason Meers



________________________________________________________________________
This e-mail has been scanned for all viruses by MessageLabs (outbound).

The information contained in this message is intended for the addressee only and may contain confidential and/or privileged information.

If you are not the addressee, please delete this message and notify the sender. You should not copy or distribute this message or disclose its contents to anyone.

E-mail transmission cannot be guaranteed to be secure or free of errors or viruses. Therefore no reliance may be placed on this message without written confirmation from an authorised representative of its contents.

________________________________________________________________________