Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 21, 2005 4:29 pm 
Offline
Senior Newbie

Joined: Wed Oct 19, 2005 4:38 pm
Posts: 7
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.


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2005 7:12 pm 
Offline
Senior Member
User avatar

Joined: Fri Aug 15, 2003 2:15 pm
Posts: 111
Website: http://fubegra.net/
In your sendmail.mc file, you should add a line of the form:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

then regenerate your sendmail.cf file. Beware of the use of backquotes in m4 files - that's a backquote before the "P" in "Port".

If you already have such a line, and you don't have any other lines binding to other addresses, then this has already been done for you.

You can use netstat -ap to see what processes are listening to which ports.

_________________
Bus error (passengers dumped)


Top
   
PostPosted: Tue Nov 22, 2005 4:00 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group