I have some issues with forwarding mail in Rails Action Mailbox. Our mail comes into the Ingress route of Action Mailbox. Then I want to do some processing and forward the mail to final destination.
I can re-send the mail from our own mail domain but I would like to keep to sender and receiver the same. So when a@sender.com sends a mail to a@forwarder.com which is then forwarded to a@receiver.com I would like to keep the sender a@sender.com and the receiver a@forwarder.com. But the mail needs to end in the mailbox of a@receiver.com.
I know this is possible in mail world, since other forwarders are able to do this (even with keeping DMARC/DKIM intact). Would it be possible to do this in Rails? And if so how would I do this?