Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Dec 21, 2012 11:49 pm 
Offline
Senior Member

Joined: Tue Dec 07, 2010 10:18 am
Posts: 65
Hi,

My webserver was recently under attack from spammers using some buggy ajax script on a client website.

I override /usr/sbin/sendmail using a php script which logs in all sendmail accesses which shows the directory from where the script is trying to send.

Now I want to stopped the php mail() functionality completely and have SMTP authentication.

Please suggest a way to do so.

Thanks
Richard


Top
   
PostPosted: Sat Dec 22, 2012 2:54 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
richardvc wrote:
Now I want to stopped the php mail() functionality completely

It looks like setting sendmail_path to '/bin/false' will accomplish this (or you could use /bin/true if you want the script to believe that sending mail was successful).

How to set up SMTP authentication depends on which mail transfer agent you are using (Postfix, Exim, Sendmail, Qmail, etc.). A Google search should turn up useful info, or try the Linode library.


Top
   
PostPosted: Thu Dec 27, 2012 11:37 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Indifidual PHP functions can be disabled using the disable_functions directive in php.ini. If somebody is desperate, though, there are many other ways to send mail. You'd also have to disable all functions that allow making outbound TCP connections or execute anything on the shell.


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