How To: Change Outgoing Email IP Address in DirectAdmin

  Email

Ticket Example : AME-549-28185

Referring to the ticket issue above, the legitimate domain was listed as SPAM. Below are the solutions that user can try after ssh to the nameserver and entering root.

First, go to MxToolBox and check if the IP address is blacklisted or not. Then, go to terminal and type

Check the IP address by typing

ifconfig

Next, enter edit mode by executing the command line below.

vi /etc/exim.conf

Change the IP address (in interface) according to the IP address found in ifconfig


remote_smtp:
driver = smtp
interface = 103.21.180.48
helo_data = ns39.ipserverone.com
dkim_domain = $sender_address_domain
dkim_selector = x
dkim_private_key = ${if exists{/etc/virtual/$sender_address_domain/dkim.private.key}{/etc/virtual/$sender_address_domain/dkim.private.key}{0}}
dkim_canon = relaxed
dkim_strict = 0

Lastly,

/etc/init.d/exim restart