-
Mail Relays...
Hello ,
Here is my scenario...
I have a FreeBSD 6.2 on my server and different Domains with a seperate IP address for each domain.
say i have IP's from 192.168.1.30 to 192.168.30.1.62.My Question is can i configure the sendmail to use a specific IP address while sending out mails. ie
can i configure the sendmail in such a way that if Example 1 has to relay from IP 192.168.1.30 and www.example2.com from 192.168.1.31 and so on.
Each domain has to use a seperate IP address for relaying mails.
Please help me....
-
not sure about sendmail and how stuck with it you are, but postfix can do this very easily with transport maps
-
Code:
vi /etc/mail/sendmail.mc
There are plenty of commented notes. What your wanting to do can be done. You may want to do it by domain.
Be sure to run:
and
Code:
service sendmail restart