Hi all,
With some help, I have recently configured Exim to send mail on the interface
it was recieved on (my servers have IPs for each domain on them). This seems to
be working quite well.
On glitch though, is when on of my users uses the Openwebmail system. It is
configured to connect on 127.0.0.1, and of course, we cant sent mail out on
that IP.
I want to know if anyone has any hints as to how to get exim to recognize the
domain of the user trying to send the mail, such that I can set the interface
to the domains real interface.
Here is a copy of the routers and transports for noirmal remote smtp client
connections and Openwebmail connections.
TIA. -Grant
dnslookup_owm:
driver = dnslookup
domains = ! +local_domains
condition = ${if eq {$sender_host_address}{127.0.0.1} {yes}{no}}
transport = remote_smtp_owm
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
---
begin transports
remote_smtp_owm:
driver = smtp
return_path_add = true
remote_smtp:
# driver = smtp
# return_path_add = true
driver = smtp
helo_data = ${lookup
dnsdb{defer_never,ptr=$interface_address}{$value}{$primary_hostname}}
interface = $interface_address
return_path_add = true
#debug_print = "XX T: remote_smtp for [EMAIL PROTECTED] Sent VIA
$interface_address XX"
--
## List details at http://www.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/