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!

"On behalf of" added to the sender mail address goes to spam

Discussion in 'E-mail Discussion' started by thecore, Jul 24, 2012.

  1. thecore

    thecore Registered

    Jul 24, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Cpanel + exim + suphp

    when send a mail using php mail() the exim add envelope-from ( USERNAME@SERVER-HOSTNAME.TLD )
    this cause on gmail/hotmail mark as spam/junk the message.

    using phpmail() with fifth parameter (-f)the problem is solved.. for example:
    mail($to, $subject, $message, $headers, "");

    but i can't force to all my users to change your scripts and add -f parameter to mail()

    how we can set to exim to trust the mail header_from and not add return_path(envelope-from) ?

    we test.. set off the tweak setting and exim header verify

    ** Always set the "Sender:" header when the sender is changed from the actual sender. Unchecking this will stop "On behalf of" data in Microsoft® Outlook, but may limit your ability to track abuse of the mail system.
    IS OFF

    ** Set SMTP Sender: headers [?] OFF

    ** Restrict outgoing SMTP to root, exim, and mailman (FKA SMTP Tweak) [?] OFF

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