Jump to content

Email Return-Path can not be configured


dexus

Recommended Posts

Will anything ever happend about Return-Path mail header...? WHMCS really need to allow us to set Return-Path, and to be able to send valid emails. This is something that is being requested for 5+ years and still nothing. Why?

 

Please allow us to configure "Return-Path" in WHMCS configuration, so WHMCS can send valid emails.

 

This is really a serious issue.

Link to comment
Share on other sites

Email sent by php mail function, that don't have "Return-Path" set can not be DKIM signed. This is a serious bug in WHMCS.

 

Beside that "Return-Path" must be configurable, because we don't want all bounce emails back to the same email address, and to our help desk.

 

This is really important feature that has been requested for years, and it's really easy to implement for 30 minutes, but it's completely ignored by WHMCS development team for 5+ years.

 

We are really desperate after 5 years of waiting for this option in WHMCS. Every software that send email and consider email sending important part of the app, like WHMCS really should, have this option for years.

 

Please do something about this.

Link to comment
Share on other sites

Thanks for suggestion, but that will probably require another 5 years of waiting.

 

Return-Path is basic and required mail header, and every other software that send email on this planet have this configurable. Why is so hard to understand basic email header structure and just add this simple option that needs 15 minutes of development time, and instead you suggest to wait another 5 years to collect votes for this.

Link to comment
Share on other sites

if you're using PHP Mail() to send your emails, you could try editing the class.phpmailer.php file..

 

/includes/classes/PHPMailer/class.phpmailer.php ~ line 89...

 

    /**
    * The Sender email (Return-Path) of the message.
    * If not empty, will be sent via -f to sendmail or as 'MAIL FROM' in smtp mode.
    * @type string
    */
   public $Sender = 'bounce@domain.com';

replace the email address above with your bounce email address and it will add it to your email headers:

 

Return-path: <bounce@domain.com>
Link to comment
Share on other sites

Already tried that long time ago. It doesn't work. I have no idea why and what did they do there, so we can't even modify that parameter in the class directly, because WHMCS somehow override it, probably just with empty string. We could probably do that directly in the createHeader function, but that would be very ugly solution.

Link to comment
Share on other sites

Sorry, I just noticed the difference. I never tried changing the $Sender variable, I think I changed only $ReturnPath variable.

 

We have multiple email templates with different "from" addresses, so we can't really override the "sender". We have to set only ReturnPath without altering From field, but that didn't work with $ReturnPath variable.

Link to comment
Share on other sites

Sorry, I just noticed the difference. I never tried changing the $Sender variable, I think I changed only $ReturnPath variable.

I tried changing that return-path value first too... as you say, it does nothing.

 

We have multiple email templates with different "from" addresses, so we can't really override the "sender". We have to set only ReturnPath without altering From field, but that didn't work with $ReturnPath variable.

for me, it doesn't change the "From" address, all it does is add a return-path line in the header - the "From" address remains the same as defined in the email template... I tested using a Gmail address as the "sender" (aka return-path)... it does change the "envelope-from" address, but everything else appears untouched.

Link to comment
Share on other sites

I have just tried to change $Sender as you suggested and it really works. I also tried changing $ReturnPath only variable again, and that really does not work, but $Sender works great and it does not alter From field as I expected, and I don't see any other issues with it, email is now DKIM signed, so for now it looks like this is a solution.

 

Thank you... :)

Link to comment
Share on other sites

remember to check, when updating WHMCS in the future, whether the above file has been updated as it will overwrite the changes you have just made.

 

Yes, of course. We already have a lot of customisations in WHMCS, where ever it was possible, so we have just added one more thing to upgrade checklist. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated