Page 1 of 1

Return-Path: in email header

Posted: Sat May 27, 2017 7:44 pm
by Todd
Script URL:
Version of script: 2.7.3
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

In the header of emails sent do not
pull the email address from settings.

It uses the cpanel username as the Return-Path:
this causes emails to go to spam.

Example:
Return-Path: <*****@************.com>
This should be the email address in settings.

Can we get a fix for this?

Thanks,
Todd

Re: Return-Path: in email header

Posted: Sun May 28, 2017 7:42 am
by Klemen
The return path gets overwritten by Cpanel because your mail is being sent by user "Nobody".

You can try using sending a real SMTP account (Settings > Email tab > Send email using: STMP server), that will change the return path header to the sender's account.

However, the return path is not causing your emails to go into SPAM if you have the server and domain SPF records properly setup.

See my reply here for steps that can greatly improve your email delivery (especially setting up SPF and DKIM signatures):
https://developers.phpjunkyard.com/view ... 037#p24037

Re: Return-Path: in email header

Posted: Sun May 28, 2017 3:58 pm
by Todd
"You can try using sending a real SMTP account (Settings > Email tab > Send email using: STMP server), that will change the return path header to the sender's account."

This worked and all is good.

Thanks
Todd