I test the first option and not work, use the custom build 2.0 and the last exim version:
[root@tau ~]# exim -bV
Exim version 4.87 #2 built 06-Oct-2016 17:40:17
In the guide show that if you have a superior version not edit neccesary, in my exim.conf not have these lines:
interface
helo_data
smtp_active_hostname
I have add_domain_to_domainips enabled:
add_domain_to_domainips=1
then restart directadmin, when add a new domain with dedicated IP now have this:
[root@tau ~]# cat /etc/virtual/domainips
*:37.153.xx.xx
domain.com:37.153.xx.yy
[root@tau ~]# cat /etc/virtual/helo_data
37.153.xx.yy:yy.domain.com
But when send emails from this domain still sending with main IP address, can somebody helpme?
Thank you.