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.

Web emails going out as server host vs. domain name

Discussion in 'E-mail Discussions' started by dynamicnet, Aug 15, 2012.

  1. dynamicnet

    dynamicnet Member

    Joined:
    Aug 29, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Pennsylvania, US
    cPanel Access Level:
    Root Administrator
    Good day:

    The server is running the latest cpanel.

    The PHP selection is suPHP with suexec.

    When WordPress-based sites send out emails such as comments or other types of email, the from address is from the main server vs. the domain.

    Is there a setting within either suPHP or Exim ("Set SMTP Sender: headers" is already turned on) to allow sites to send email as themselves vs. the server?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The default behavior of Exim is to use the cPanel username and hostname of the server to construct the envelope-sender address. Most applications that call the Exim/Sendmail binary will pass the -f switch along with the proper email address to keep that from happening.

    If you can configure the mailer to use SMTP and authenticate with SMTP AUTH, this will set the correct "Return-Path" in the headers. The other option is to make sure that the application is using the 5th argument to the PHP mail() function to send the '-f' switch to sendmail so that it sets the correct "Return-Path".

    Thank you.
     
Loading...

Share This Page