Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 08-22-2006, 02:31 PM   #1
LQ Newbie
Registered: Jul 2005
Location: Tampa
Distribution: lots
Posts: 13

Rep: Reputation: 0
How do I secure sendmail to only send email from php on localhost

This server is linux+apache+mysql+php, and I want the sendmail server to only accept email from php, or at least only from localhost. How do I configure that? And once I do that, will the server stop listening on port 25 for that interface? Can I make it so that smtp doesn't even show up in nmap?
Old 08-22-2006, 07:51 PM   #2
Senior Member
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
smtp, by default is bound to 25 and listens to only connections from localhost. if you havent made any changes to the conf file, no one will be able to connect to your smtp server. if you run nmap on your local server it will definitely show nmap as open, but not from other computers.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
send email with sendmail from out stigmata Linux - Software 1 12-20-2005 02:35 PM
can't send email, smtp or sendmail dtra Linux - Software 1 11-19-2005 06:00 PM
Can't send email outside my server with sendmail rocketman3245 Mandriva 1 07-28-2004 10:01 PM
sendmail email address includes localhost name? kevindv10 Linux - Software 0 04-13-2004 01:22 PM
sendmail won't send email robmainella Linux - Software 0 09-10-2003 04:54 PM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration