Class SenderMessageProcessor

java.lang.Object
ch.tocco.nice2.messaging.mail.impl.processor.SenderMessageProcessor
All Implemented Interfaces:
MessageProcessor

@Component @Order(1000) public class SenderMessageProcessor extends Object implements MessageProcessor
SenderMessageProcessor checks if the sender email address is one of the customer's domain. If not, it is most likely sent from a public form and may result in a failing SPF check and fail to be delivered. To prevent spf check failure and ensure DKIM signatures are not invalid, the mail From and Reply-to header are set in the following way: From: "sender name via default email address <default email address>" Reply-To: sender-email See Task #35220 (and #31416, #31995, TOCDEV-1448) and for more detailed information.