I have a Debian Etch system using Exim4. Domains are mostly local, but there are some that are remote. To handle remote mail delivery, I use the Debian configuration file:
/etc/exim4/hubbed_hosts
This file lists the domain names and remote MX machines for delivery. For instance:
example.org: mx.example.com
example.com: mx2.example.com
Looking at the exim4 configuration file, I see that it is used as follows:
hubbed_hosts:
debug_print = "R: hubbed_hosts for $domain"
driver = manualroute
domains = "${if exists{CONFDIR/hubbed_hosts}\
{partial-lsearch;CONFDIR/hubbed_hosts}\
fail}"
route_data = ${lookup{$domain}partial-lsearch{CONFDIR/hubbed_hosts}}
transport = remote_smtp
The problem is that some of the hosts that I use must send mail to a non-standard port. Unfortunately, the Debian hubbed_hosts file does not work if I try to modify it to enable the port:
example.org: mx1.example.org:2525
example.com: 1.2.3.4.2525
Is it possible to dynamically allow a port to specify?
source
share