Saturday, November 7, 2009

How to change your Exim outgoing mail IP, A Quick setup



1. Open the file /etc/mailips


[root@server ~]# vi /etc/mailips


enter the following and save the file

*: IP 

example:  *: 192.168.0.10

assuming 192.168.0.10 is your secondary IP.

IP - the IP you wish to send emails from. The * symbol specifies all domains to send emails from this IP

2. Now edit /etc/mail_reverse_dns

Enter the reverse DNS aka rDNS for the above IP and save the file

IP rdns

Example: 192.168.0.10 server.mail.com

3. Now change the attributes to immutable

[root@server ~]#  chattr +i  /etc/mail_reverse_dns
[root@server ~]#  chattr +i  /etc/mailips


4. Restart exim and thats it!


[root@server ~]# /etc/init.d/exim restart


Send a test email as root and check the headers to confirm.




Hope this helps :)

No comments:

Post a Comment