cPanel Server DNS Issues Affecting Outbound Email

dr00t

Member
Dec 13, 2007
6
0
51
I recently noticed that several PHP scripts on my sites that send to external email addresses when submitted, are bouncing back mail to the "default account email address" for that account.

I checked, and the email destination is fine - so I believe the DNS affecting outbound email FROM my server is screwed up. Anyone have any idea where I go to confirm / check this setting? I cannot figure out how to even see what DNS records are being referenced when mail is being sent from my server.

Thank you in advance!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
Hello :)

What method is the script using to send out email? Is it using SMTP authentication or the Mail function with PHP?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
The default behavior when sending email through PHP is to use the cPanel username and hostname of the server to construct the envelope-sender address. If you can configure the mailer to use SMTP and authenticate with SMTP AUTH, this will set the correct "Return-Path" in the headers.

Thank you.
 

dr00t

Member
Dec 13, 2007
6
0
51
If you can configure the mailer to use SMTP and authenticate with SMTP AUTH, this will set the correct "Return-Path" in the headers.
I guess my next questions is... how do I configure the mailer to use SMTP and authenticate with SMTP AUTH
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,218
463
It depends on the specific script you are using. Check with a developer or support team for that script to see if you can enable it directly, or if any custom modifications are required.

Thank you.