I am having issues using an external mail server for system emails sent from Enhance. From Settings > Platform > System emails I have added the SMTP-details for my external e-mail server.
Please note that my domain is properly set up for sending e-mail on this external e-mail server and this is tested with various methods using Outlook, Webmail etc. The domain is registered and verified in Google Postmaster Tools, have correct DKIM/SPF/DMARC configured.
The problem is that when my Enhance Control Panel -server attempts to send an system e-mail, it is signed with the sender noreply@enhancecp.co.uk rather than the mail account used to send the e-mail (no-reply@enhpanel.example.com).
When I try to send an email from the e-mail account set for system emails in Enhance (no-reply@enhpanel.example.com) the from -field is automatically set to noreply@enhancecp.co.uk. The recieving email server will therefore always reject it as the sender/domain is not matching.
Why is the <from> field set to noreply@enhancecp.co.uk and how can this be modified? This will never work and is a bad practice when it comes to transactional e-mails from Enhance Control Panel server.
This is the mail.log from the external mailserver (IPs, domain and recipient is modified for privacy reasons):
time/date postfix/submission/smtpd[8799]: NOQUEUE: reject: RCPT from enhpanel.example.com[123.123.123.123]: 554 5.7.1 example@gmail.com: Recipient address rejected: Sender is not same as SMTP authenticate username; from=noreply@enhancecp.co.uk to=example@gmail.com proto=ESMTP helo=<8e676d3e9237>
Please note that example@gmail.com is the e-mail I set in the option "Send a test email to this address" when configuring the SMTP server for system emails in Enhance Control Panel.