Page 1 of 1

Setting envelope-from when using mail mailer

Posted: Thu Mar 24, 2016 1:47 pm
by JamesT
I am using the mail Mailer in Settings - Global Settings > Mail Settings (CMSMS 2.1.2)

When using the "Test" button in Mail Settings, envelope-from is being set to the default user@hostname as specified by my host, and not the value I specify in "From Address". This is having implications for SPF and bounce processing.

Perhaps an extra input field could be added to CMSMS to configure additional_parameters of mail()? Or there is some other solution?

Thanks for any help.

Re: Setting envelope-from when using mail mailer

Posted: Thu Mar 24, 2016 3:27 pm
by Jeff
You have to check with your host.

I know when sending through gmail, gmail with force the From address to be the email on the account to limit spam and email spoofing, your host might do a similar thing.

Re: Setting envelope-from when using mail mailer

Posted: Thu Mar 24, 2016 4:08 pm
by JamesT
I'm sure the host will just tell me to configure the software. mail() has the ability to set envelope-from, and since it's shared hosting they have to use a standard hostname for all sites as a default for envelope-from.

I can get around this by changing to SMTP, but unfortunately this has proven to be unreliable, so I'm trying to use mail() instead, but envelope-from is proving an issue.

Re: Setting envelope-from when using mail mailer

Posted: Thu Mar 24, 2016 5:00 pm
by JamesT
I am having more luck with the sendmail option, with this path:

/usr/sbin/sendmail -fmy@email.address

Does anyone know if I should also include the sendmail "-t" and "-i" flags in the sendmail path, as php mail is configured to do?