allow primary domain delivery with remote mail exchanger
So we have a site hosted on a nameacheap reseller account with a remote mail exchanger (office 365) and very small amount of php contact form emails sent.
Currently with email routing set to remote mail exchanger we are unable to send emails from the primary domain (ie user@domain.com) instead they are sent from the default host (ie user@host.hostingprovider.com on behalf of user@domain.com).
Wondering if there is a way to configure cpanel to allow me to send these emails from user@domain.com without changing the email routing.
Thx!
-
Hey there! Can you clarify what is sending the emails? If it's a PHP form, it would likely be best to adjust the form sending details so it authenticates and uses the email address/user of your choice. 0 -
Yes its just a php form, I was hoping there was a setting somewhere to allow smtp relay. Would this work if we set it as a backup mail exchanger? Would we need to update the cpanel dns mx record for that to work? 0 -
I'm not sure how a backup mail exchanger would work for this scenario. It's your server that is sending the mail, so it would all be going through Exim unless you setup a smarthost of some sort. It would be easier to modify the PHP code to authenticate properly. A basic example of how this works can be found here: How to Send PHP Mail with Authentication - Knowledgebase - Utiware Web Hosting 0 -
ok thx I guess we'll look into using a different smtp server 0
Please sign in to leave a comment.
Comments
4 comments