I have my domain served by two servers with different IP addresses: one for main website and another for online shop. When a customer places an order, among other things, an email is being sent to an internal email address [email protected]
. This email is sent by the server on which the online store resides. However the email is sent to be from the customer's email address, so, for example, if [email protected]
places an order, an email will be sent from the online store to [email protected]
with details of the order, pretending to be from [email protected]
.
On my mail server, SpamAssassin rejects these emails though because they fail SPF validation check, specifically, I get error message stating that store.example.com is not allowed to send mail from example.org
(this is easy to understand, as my online store will not be included into example.org
SPF record).
I am administering example.com on behalf of a client - and the client states that emails from the store need to arrive in this format (i.e. from [email protected] as opposed to a generic [email protected]). How can I configure SpamAssassin (via cPanel or, if necessary via back end) to accept messages delivered by store.example.com?