add relay to sendmail.cf

Hi,

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...

so i guess, i have to use m4 command...

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:

find / -name sendmail.cf -print

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...

Maybe the relay server is rejecting requests from your host?

What does the maillog say?

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.