Setting envelope-from when using mail mailer

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

Setting envelope-from when using mail mailer

Post 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.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Setting envelope-from when using mail mailer

Post 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.
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

Re: Setting envelope-from when using mail mailer

Post 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.
JamesT
Forum Members
Forum Members
Posts: 175
Joined: Tue Sep 08, 2015 10:41 am

Re: Setting envelope-from when using mail mailer

Post 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?
Post Reply

Return to “The Lounge”