Sunday, November 23, 2014

How to stop Open relay in a cPanel server – /scripts/fixrelayd

An Open relay is SMTP server which is configured in such a way, which allows a third party to send/receive emails that are neither from nor for local users. For that reason, such servers are usually targets for spam senders.
You can test whether your server is an Open relay by checking in the following link:
mailradar.com/openrelay/
If the server supports Open relay, then you can stop it in cPanel server by following the steps given below:

> /scripts/fixrelayd

> /etc/init.d/exim restart
 
 
or
 
We can disable the local relay message by set following:
 
(1) Make sure the AntiRelay is Enable(Un-tick) >> Go to WHM >> Service Manager >> AntiRelay >> (make sure its Un-tick)
 
(2) Navigate to WHM >> Main >> Tweak Settings >> Initial default/catch-all forwarder destination.
  //Set this setting to Bounce / Fail.
 
(3) Force all mailbox's or email's users in the servers use SMTP Authentication.
Go to SSH and run following Command.
>> /usr/local/cpanel/bin/tailwatchd --disable=Cpanel::TailWatch::Antirelayd
 

No comments:

Post a Comment