Change EXIM's Default Sending IP address

jw00dy

Verified User
Joined
Dec 6, 2004
Messages
179
Location
Utah, USA
I've read a ton and have not been able to find a solution for this.

My server sends all email from 1 ip address, which is fine, I just want to change exim so it sends from a different one. Preferably the same IP that DA creates for mx records and SPF txt records.

How can I do that in EXIM?
 
The answer is in the DirectAdmin knowledgebase. In fact it's the first response to a Google search.

It's here.

Jeff
 
What about the SPF records?
For example:
I chance the ip from 0.0.0.0 to 0.0.0.1.
But, in all of my domains (and maby uses DirectAdmin as default) the TXT record:
"v=spf1 a mx ip4:0.0.0.0 ?all"

Result: Some mail profiders does'nt accept mail from the server for existing domains...
 
Last edited:
Just as a useful tip, perl regex'es are very powerful. If you want to change all SPF records from IP 1.2.3.4 to 4.3.2.1, you can run:
Code:
cd /var/named
perl -pi -e 's/ip4\:1.2.3.4/ip4\:4.3.2.1/' *.db
where you'd change /var/named to the proper path if you're using a different OS.

John
 
Back
Top