caritos wrote:
I want to prevent my sendmail app for being a spam agent. How do I configure sendmail so that I send mail only from localhost.
add:
RELAY_DOMAIN(`<your IP> <your hostname> localhost 127.0.0.1')
to sendmail.mc and rebuild sendmail.cf with something like:
m4 sendmail.mc >sendmail.cf
Take some time to make sure you have it right. There are scum out there who make a living out of abusing mail servers. You can find a decent sendmail tutorial at
http://www.feep.net/sendmail/tutorial/. Or get the oreilly book.