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.

Server sends email from useraccount@host.servername.com instead of user@domain.com

Discussion in 'E-mail Discussions' started by DianeV, Aug 2, 2014.

  1. DianeV

    DianeV Member

    Joined:
    Apr 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Last week, we got a new server with WHM/cPanel, and have moved our websites to it.

    Although email sent from the website scripts worked properly on earlier servers, the new server sends all email from useraccount@host.servername.com instead of user@domain.com, regardless of whether it's generated from:

    - a contact page Perl .cgi script via sendmail
    - a PHP script
    - a shopping cart via smtp

    In all cases, the "from" address is specified in the script (but apparently ignored when the email is sent).

    The fact that sendmail, PHP and smtp are all doing it makes me suspect that it's an overall server setting rather than a fault with the scripts themselves, which appear to work properly. For instance, email can be sent from the contact page and orders can placed through the shopping cart, but the emails (and shopping cart order confirmation emails) are now sent from useraccount@host.servername.com.

    And, of course, many servers dev/null the emails since they cannot verify the addresses ("Could not complete sender verify").

    Can anyone point me to a resolution?
     
    #1 DianeV, Aug 2, 2014
    Last edited: Aug 2, 2014
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Email sent with SMTP authentication should not display the behavior you have described. Could you upload and use a test PHP script that uses SMTP authentication for sending email so you can rule out an issue with the particular script you are using?

    Thank you.
     
  3. DianeV

    DianeV Member

    Joined:
    Apr 11, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi. I gave a little misinformation in my post. We have moved only one site to the new server, and one PHP script worked correctly. Other scripts didn't, however (on either server). Both servers had the same configuration.

    The host company made the following changes to both servers:
    - reverting to an earlier Apache version (I don't know if this was needed)
    - adding MX records for the host

    On the older server, once the above changes were made, the email scripts worked correctly -- emails were sent from the correct address and arrived with all information intact.

    On the new server, the emails were sent from the correct email address, but user input fields (or order information) was blank. The host is looking into this now.

    Thanks for responding. If I need more, I'll post again. I just wanted to add this info in case someone else encounters this issue.

    Diane
     
Loading...

Share This Page