Exim Default IP

I found the following method to change the defalt SMTP port for EXIM and outgoing mail but I just have a couple of questions first about doing this.

This is the information I found about doing it:

In WHM on Exim Configuration Editor, rewrite two routers, There is an edit box bellow "ROUTERS CONFIGURATION", Box is before "lookuphost" router, Put these lines to that box:


(7th box from top in exim configuration)

Code:
mylookuphost:
driver = dnslookup
condition = "${perl{checkspam}}"
domains = ! +local_domains
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24 
headers_add = "${perl{mailtrapheaders}}"
transport = my_remote_smtp

myliteral:
driver = ipliteral
condition = "${perl{checkspam}}"
domains = ! +local_domains
headers_add = "${perl{mailtrapheaders}}"
transport = my_remote_smtp
Then move down to "TRANSPORTS CONFIGURATION", On edit box there (just up the remote_smtp transporter) put these lines:

(12th box from top in exim configuration)

Code:
my_remote_smtp:
driver = smtp
interface = 72.29.75.244
This will be permanent and will not change by CPanel updates.
Now my question is regarding the "ignore_target_hosts" field, do I put all IPs assigned to the server there so if I had a few ranges it would look like this?

ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 64.94.110.0/24 : 82.11.120.0/24 : 12.34.56.78/24 and so on?

Is that how they're to be added? Also I know that the interface IP is the IP that will be used for outgoing mail from then on, does anything have to be done at the datacenter or any other server configuration for the new IP to then be used to send mail? Thanks!

 

 

 

 

Top