I notice that my relay on sendmail.cf is just "DS" and no ip. So I guess, it's using the local DNS to relay my mail which sometimes being spammed. I would like to add a new relay ip "DSxxx.xxx.xxx.xxx" on sendmail.cf.
What do I need to edit sendmail.cf? Do I just use vi or m4?
Thanks for any comment you may add.
itik
---------- Post updated at 12:37 PM ---------- Previous update was at 11:48 AM ----------
I edit it myself sendmail.cf, it won't relay to the new ip address...
You should be able to edit sendmail.cf but you will need to restart sendmail after you have changed it. Make sure you are changing the correct version of sendmail.cf, there is probably a version on your system which was created using m4 but then copied somewhere else. You need to change the active one. Check using:
there's only one copy of /etc/mail/sendmail.cf on my server... i restarted sendmail and as well as network services, but still it won't change the relaying...
actually there's VIP address on the sendmail.mc, and on the maillog, only one smtp is failling it. so i will need to contact that smtp address and work with them. thanks.