SMTP Restrictions is a feature in cPanel and WHM that helps to reduce outbound spam by forcing all SMTP connections through the local Exim server.
If you need to bypass Exim when sending messages via a script, you may need to disable this feature with the following steps.
1. Login to WHM as the root user
2. Navigate to: Home »Security Center »SMTP Restrictions
3. Click the "Disable" button