Introduction
The information below can be used to adjust the Exim directive Delivery behavior for suspended cPanel accounts
from the Command-Line. If you are looking to perform this from the WHM Exim Configuration interface please review the article How-To modify the email behaviors of suspended accounts.
Procedure
Before making any changes to any raw files it is recommended that you backup those files. The commands provided below include a backup element, but you are welcome and encouraged to first backup the existing Exim configuration using the information outlined in our documentation here
Choose the option below you wish to use, and be sure to copy/paste these commands precisely as written below:
Accept and queue messages:
sed -i.bak 's/^suspended_account_deliveries=.*$/suspended_account_deliveries=queue/' /etc/exim.conf.localopts;
sed -i.bak 's/^\*.*/\*\: \:queue\: Disabled recipient address/' /etc/exim_suspended_list;
/scripts/restartsrv_exim
Reject messages at SMTP time:
sed -i.bak 's/^suspended_account_deliveries=.*$/suspended_account_deliveries=block/' /etc/exim.conf.localopts;
sed -i.bak 's/^\*.*/\*\: \:fail\: 525 5\.7\.13 Disabled recipient address/' /etc/exim_suspended_list;
/scripts/restartsrv_exim
Accept and discard messages:
sed -i.bak 's/^suspended_account_deliveries=.*$/suspended_account_deliveries=discard/' /etc/exim.conf.localopts;
sed -i.bak 's/^\*.*/\*\: \:blackhole\: Disabled recipient address \(discarding\)/' /etc/exim_suspended_list;
/scripts/restartsrv_exim
Deliver messages normally:
sed -i.bak 's/^suspended_account_deliveries=.*$/suspended_account_deliveries=discard/' /etc/exim.conf.localopts;
sed -i.bak 's/^\*.*/\*\: \:unknown\:/' /etc/exim_suspended_list;
/scripts/restartsrv_exim
Once completed you can confirm the change is effective by viewing the Basic Exim configuration editor in WHM and looking for the Delivery behavior for suspended cPanel accounts
option; It will reflect your newly selected behavior.