Centos 6
0.9.8-17
Default installer
Is it possible to send email from a certain domain which is owned by a user (like: customer1) or is it still sending from the default/system ip?
You need to edit manually exim.conf in order to do that.
So it's possible to manually change it so that only accounts/domains owned by user x are sending over that ip?
I guess it's possible, it's stuff that is related only to Exim, and I believe that Exim can be configured to do that... you just need to see how to configure Exim for that...
Maybe you can try this: https://help.directadmin.com/item.php?id=152
You can do this in two steps (tested on CentOS 6 and CentOS 7):
remote_smtp:
driver = smtp
interface = 1.2.3.4 // default IP for you domains
interface = ${lookup{$sender_address_domain}lsearch{/etc/exim/mailips}{$value}{default_ip_in_case_no_match}}
domain.tld: 1.2.3.5
domain2.tld: 1.2.3.6
@moucho
I got it working with the following config:
When I removed the first interace it worked.
remote_smtp:
driver = smtp
interface = ${lookup{$sender_address_domain}lsearch{/etc/exim/mailips}{$value}{1.2.3.4}}
Most helpful comment
@moucho
I got it working with the following config:
When I removed the first interace it worked.