How to stop Bulk mailing via WHM Root for the error *Exceeded LOCALRELAY limit* from XYZuser (101 in the last hour)

How to stop Bulk mailing via WHM Root for the error -Exceeded LOCALRELAY limit from XYZuser (101 in the last hour)

In order to fix this issue, you first need to know what is the cause behind this issue and why this message gets displayed.

So let me explain to you there is a Firewall setting in WHM to specify the maximum no. of emails that each domain can send per hour hence when any account has reached their limit of sending emails and have exceeded the limit then this error *Exceeded LOCALRELAY limit* from XYZuser (101 in the last hour) occurs.

You can check this error from your WHM by going inside the Firewall option and clicking on Watch System Log.

How to Fix *Exceeded LOCALRELAY limit* from XYZuser (101 in the last hour)

To fix this issue you need to follow the steps:

Login to your WHM(Root) and go to Server Configuration

Click on Tweak settings

Go to the Mail tab and specify “Max hourly emails per domain” and “Number of emails a domain may send per day” as per your wish.

Max hourly emails per domain– This setting specifies the maximum number of emails that each domain can send per hour.

The number of emails a domain may send per day before the system sends a notification.- This setting specifies the number of emails per day that a domain can send before the system sends a notification.

Once you define these settings you are going to receive that alert or any account that has reached the defined limit.

Click on Save changes.

Now moving ahead to stop the misuse you have to edit csf.conf file which is located at /etc/csf/csf.conf

To go to this Path you need to find ConfigServer Explorer in your WHM

Then you have to enter etc>>csf>>csf.conf

 

Edit this csf.conf file and search for RT_Action

Then write /etc/csf/rt.sh after RT_ACTION in between the inverted commas.

Then click on Save.

Now you have to create an rt.sh file inside /etc/csf

Now edit this rt.sh file and write the command.

Killall -9 exim
service exim stop
mv /usr/sbin/exim /usr/sbin/exim_suspend
mv /usr/sbin/sendmail /usr/sbin/sendmail_suspended

Click on Save!!

This command will stop the Exim services in the whole server. You can now find and block the user who is sending bulk emails. After getting done you can again restart the Exim service from the following command:

mv /usr/sbin/exim_suspend /usr/sbin/exim 
mv /usr/sbin/sendmail_suspended /usr/sbin/sendmail
service exim restart

We hope this article was clear enough to make you understand how to fix *Exceeded LOCALRELAY limit* from XYZuser (101 in the last hour) error via WHM(root)

If you have any questions or queries, feel free to leave them in the comments section below.

CHEAP LINUX HOSTING|BEST WEB HOSTING
CHEAP LINUX HOSTING|BEST WEB HOSTING

Thanks for Reading!!!

Scroll to Top