Custom Exim access-control rules can reject or accept mail during SMTP processing. On a cPanel server, an administrator manages these through WHM, with a defined rule, a configuration backup and delivery tests.
Choose the appropriate filter
For mailbox or account-level message handling, use cPanel’s Email Filters or Global Email Filters where they meet the requirement. An Exim ACL changes server-level SMTP behaviour and needs an administrator who understands its processing stage and scope.
Write down the exact condition, affected senders or recipients, and required action before adding a rule. There is no universal advanced filtering rule suitable for every server.
Prepare and apply an ACL change
- In WHM, open Service Configuration > Exim Configuration Manager.
- Use its configuration backup facility and record the current settings.
- Open Advanced Editor and identify the supported custom ACL section appropriate to the intended SMTP stage.
- Add the reviewed rule using Exim syntax compatible with the installed version. Do not replace existing relay or authentication protections.
- Save and check the configuration result. Stop if validation fails.
Test delivery
Test both a message that should match and a legitimate message that should remain unaffected. Include relevant authenticated, local and forwarded delivery paths. Inspect /var/log/exim_mainlog for the result.
Restore the previous configuration if the change rejects legitimate mail or allows unauthorised relay. Keep the rule’s purpose and test results with the server’s configuration records.