- Server operating system version
- Almoa Linux 9
- Plesk version and microupdate number
- 18.0.74
We have just moved a set of accounts from WHM to Plesk. On WHM they all worked perfectly.
On Plesk, there is an issue that sending Script based emails (eg from PHP Script ; not from a mail client) from a subdomain to any 3rd party email account is failing because the subdomain is trying to send via the parent domain (a separate account on Plesk) . Both domains have working SPF records.
Maillog:
SPF admin.domain.co.uk:
SPF domain.co.uk:
We have run
Which has returned no errors or issues on any mail accounts.
What do we need to do to enable a subdomain to send emails outside the server and set as coming from the parent domain?
On Plesk, there is an issue that sending Script based emails (eg from PHP Script ; not from a mail client) from a subdomain to any 3rd party email account is failing because the subdomain is trying to send via the parent domain (a separate account on Plesk) . Both domains have working SPF records.
Maillog:
Dec 3 09:32:22 server postfix/smtpd[4138345]: connect from localhost.localdomain[::1]
Dec 3 09:32:23 server postfix/smtpd[4138345]: NOQUEUE: reject: RCPT from localhost.localdomain[::1]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<admin.domain.co.uk>
SPF admin.domain.co.uk:
v=spf1 +a +mx +ip4:server_ip +a:domain.co.uk +include:domain.co.uk -all
SPF domain.co.uk:
v=spf1 +a +mx +ip4:server_ip +a:admin.domain.co.uk +include:admin.domain.co.uk -all
We have run
# plesk repair mail
Which has returned no errors or issues on any mail accounts.
What do we need to do to enable a subdomain to send emails outside the server and set as coming from the parent domain?