Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel Server DNS Issues Affecting Outbound Email

Discussion in 'E-mail Discussion' started by dr00t, Aug 5, 2014.

  1. dr00t

    dr00t Member

    Joined:
    Dec 13, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    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!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dr00t

    dr00t Member

    Joined:
    Dec 13, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    The Mail function with PHP.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. dr00t

    dr00t Member

    Joined:
    Dec 13, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    I guess my next questions is... how do I configure the mailer to use SMTP and authenticate with SMTP AUTH
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice