A client was having issues sending emails and receiving a number of alerts regarding delayed emails. After looking investigating a number of outbound emails where queued with a failure reason of:
|
1 |
R=enforce_mail_permissions defer (-1): “Sender [email protected] has an outgoing mail hold. Message will be reattempted later” |
The account in question had hit the sending limits configured within cPanel and there emails where being held.
Pre-Checks
It is important you pre-check and make sure the hold is not legitimate such as a spam attempt / hacked site, I checked the emails being sent and due to a influx in online orders there email usage per day has significantly increased.
1st Attempt
Try running the following commands under sudo / root, replaceing [accountname] with the cpanel account name of the user. Then try send an email or retry sending an email in the queue.
|
1 2 |
whmapi1 unsuspend_outgoing_email user=[accountname] whmapi1 release_outgoing_email user=[accountname] |
2nd Attempt
The above worked for a couple accounts, but for one this did not work. There is 3 files depending on the type of block. Have a look in the following files below and remove the accountname / email address if present.
|
1 2 3 |
/etc/outgoing_mail_hold_users /etc/outgoing_mail_suspended_users /etc/email_send_limits |
I found my user within “/etc/outgoing_mail_suspended_users” and once removed, everything went back to normal.
It is recommended a professional under takes these actions, please always backup existing files / configs.