Posted by ttgt, 02-28-2012, 11:54 PM | Hi,
for shared hosting server,there are many sites,
and your ip may been blocked as spam,
is it possible any method to deduce the possible?
let server can only send mail with smtp ? or ?
thanx
|
Posted by RomanVelcom, 02-28-2012, 11:59 PM | Hello,
Ya, with cPanel you have same as default function you can enable it and your customers (web hosting accouts) can send mails only via SMTP. Basicly you need DISABLE Outgoing SMTP Connections from system-uids/gids. iptables good for this i think rest firewall also
But dont forgent, you need monitor your queue all time cuz few thousands types of SMTP attacks can be burned this moments
For 100% quality you can just turn off your SMTP yet
Regards,
|
Posted by netandino, 02-29-2012, 12:05 AM | in cPanel there is also a choice of:
Mail domain owner via password authentication
Prevent "nobody" from sending mail
that can help and avoiding shipments "nobody" or unauthenticated
|
Posted by RomanVelcom, 02-29-2012, 12:23 AM | netandino, Look "SMTP Tweak" settings
Sure, in this case for PHP you need use suPHP and you need MailHeaders builded in PHP for edit mail headers (put script path and user uid/gig which send this mail).
I tell you , you cant shut down all SPAM via one click
But this way prevent outgoing spam from your BOX. its plus for you but you still can be affected by bounce-back spam, open proxyes spam Please check wiki about SPF or Domain Keys this can help also with some type of SPAM.
Look and try understand:
So, only UIDS (mail,mailman,root,cpanel) can connect to any-remote:25 from this server. But rest customers can connect only to localhost:25 sure with SMTP auth.
So, its solutions for OUTGOING SPAM with cPanel. If someone setup PHP script and use mail() or /path/to/sendmail i will this this scrip in mail headers.. Also for cPanel i think good way its setup hourly limit for accounts... You can setup 100-200 mails per hour... look its 3 mails per second... its not real... but even in this case if someone upload script and send 10.000.000 mails they will sitt in your queue and not be delivered yet, just 200 per hour..... You need alert system for check your queue each .... 15...20.60 mini (depend on MTA request per second).
Regards,
Last edited by RomanVelcom; 02-29-2012 at 12:27 AM.
|
Posted by ttgt, 02-29-2012, 01:25 AM | by the way,how will user send mail ? thanx
|
Posted by RomanVelcom, 02-29-2012, 02:20 AM | ttgt, LOL ))) Its mean nobody will send mails )))) Its like joke You cant fix all spam issues via one click Only if you disable MTA You will have no mails so no spam
|
Posted by SoftDux, 03-03-2012, 03:38 PM | Install ConfigServer Firewall en able SMTP_BLOCK it blocks outgoing mail for you as well.
|
|
Add to Favourites
Print this Article |