The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel Server DNS Issues Affecting Outbound Email

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

  1. dr00t

    dr00t Member

    Joined:
    Dec 13, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. dr00t

    dr00t Member

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

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
  5. dr00t

    dr00t Member

    Joined:
    Dec 13, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    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:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    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.
     
Loading...

Share This Page