1. Open the file /etc/mailips
[root@server ~]# vi /etc/mailips
enter the following and save the file
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
Enter the reverse DNS aka rDNS for the above IP and save the file
3. Now change the attributes to immutable
[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