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!

SOLVED Email sent as "[email protected]"

Discussion in 'E-mail Discussion' started by DennisMidjord, May 23, 2017.

  1. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    212
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Hi,

    We have a problem with emails. We have a few clients that receive emails from a contact form on their WP installation.
    This email is being sent to them from "[email protected]" though, and this causes issues as the mail is seen as spam.

    Here's an example:
    Customer uses Microsofts mail servers. His contact form on the website is set to send him an email on [email protected].
    When the email is sent, we can see the following in the header:
    Code:
    Received: from mitsuppo by pro4.example.dk with local (Exim 4.89)
    
                                 (envelope-from <[email protected]>)
    
                                 id 1dD9TU-001bjq-5y
    
                                 for [email protected]; Tue, 23 May 2017 15:03:44 +0200
    Is there anything we can do about this?
     
    #1 DennisMidjord, May 23, 2017
    Last edited by a moderator: May 23, 2017
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    445
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 rpvw, May 23, 2017
    Last edited: May 23, 2017
  3. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    212
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    Thanks for your reply.
    The client was recently on a DirectAdmin server, and he had no issues there. Is there no setting that we can change in WHM that fixes this?
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    1,088
    Likes Received:
    445
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    If your users refuse to configure their wp forms to use authenticated SMTP, as I indicated, you can add the -f [email protected] to a mail.force_extra_parameters line in your php.ini for that domain. This is a run-time configuration and can be set per directory since PHP 5.0.0

    Please see PHP: Runtime Configuration - Manual for more information.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #4 rpvw, May 23, 2017
    Last edited: May 23, 2017
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,590
    Likes Received:
    2,186
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You'd need to setup WordPress to send email via SMTP to avoid the mail coming from the [email protected] address. You may find a plugin like this helpful:

    Configure SMTP

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. DennisMidjord

    DennisMidjord Well-Known Member

    Joined:
    Sep 27, 2016
    Messages:
    212
    Likes Received:
    24
    Trophy Points:
    18
    Location:
    Denmark
    cPanel Access Level:
    Root Administrator
    This actually helped - thanks! The customer doesn't want to use a plugin for SMTP. He's sure that it will make his WordPress installation run slower, and to avoid a longer argument I searched for another solution.
    I tried to convince him that SMTP would be a much more reliable solution but he didn't agree :)
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,590
    Likes Received:
    2,186
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see the "-f" parameter in the PHP configuration file helped. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. zylstra

    zylstra Member

    Joined:
    Dec 21, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    The point here is that DirectAdmin allows users to send email via WordPress without, as in cPanel's case, spending hours figuring out why their emails are not delivered.

    Why does cPanel not set -f [email protected] by default?
     
  9. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,590
    Likes Received:
    2,186
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @zylstra,

    You can enable Set SMTP Sender: headers under the Mail tab in WHM >> Exim Configuration Manager >> Basic Editor if you want to turn this on globally without modifying the PHP configuration. Here's the description of this option:

    You can also verify the following options are enabled:

    1. Trust X-PHP-Script headers to determine the sender of email sent from processes running as nobody
    If the MailHeaders patch is installed in EasyApache, cPanel will use the X-PHP-Script to determine the sender of a message for Email Archiving and Limits.

    2. Query Apache server status to determine the sender of email sent from processes running as nobody
    If X-PHP-Script headers are not available (MailHeaders patch is not installed in EasyApache) or not trusted, cPanel will query the webserver in order to determine the sender. This requires more resources then simply trusting the X-PHP-Script headers.

    3. EXPERIMENTAL: Rewrite From: header to match actual sender
    If you enabled this option, the From: header will be rewritten to be the email address of the actual message sender. If you choose the "remote" option, only messages that are being sent to remote destinations will be affected.

    Note the MailHeaders patch is compiled with PHP by default with EasyApache 4.

    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