We are migrating to a new SMTP host, and have found some issues with some of the sendmail instances I have inherited. The new SMTP host requires all "from" addresses to be from domains we are verified owners of.
I have spent a couple of days trying countless results from google without any results, so thought I would make a post since this seems too specific.
The situation:
We have a sendmail instance set up for one of our domains, I'll use @foo.bar. There are aliases set up to forward messages to certain people on our actual mail domain, examples:
accounting: Jane.Doe@realdomain.com, John.Doe@realdomain.com
test: John.Doe@realdomain.com
If bill@microsoft.com emails accounting@foo.bar, the message gets sent to Jane.Doe@realdomain.com and John.Doe@realdomain.com through our sendmail instance with "bill@microsoft.com" as the sender.
The problem:
Since the sender is "bill@microsoft.com" the message is blocked with our new SMTP host, since we are not verified owners of "microsoft.com"
In sendmail, is there any way to masquerade the "from" address to always be a specific address, and make the "reply-to" the original person who sent the email?
So in the example above, always make the "from" address a generic email address we are owners of, and set "reply-to" to "bill@microsoft.com"?
At this point, I am almost convinced it is not possible, but thank you to anyone who is willing to help.