Force Sendmail Routing From IP Address
I was wondering if anyone has any ideas for this one?
I want to be able to configure sendmail to identify when emails from a specific relays are received, to then forward them to a predfined location, while ignoring DNS.
Relay receives mail from internal mail system from firstname.lastname@example.org to email@example.com
Sends using DNS to 3rd party relay... Ok.
Relay receives mail from firstname.lastname@example.org to email@example.com
Sends to internal mail system using mailertable config.... ok.
Now for the tricky one!
Relay receives mail from predenfined 3rd party relay from firstname.lastname@example.org to email@example.com, but the mail must be forwarded to an internal system for processing. Following this it will be forwarded back out to sendmail to be processed as usual.
Now initially I thought that I could use the mailertable, but this is only used to define routes for the recipient address.
Does anyone know if there is a way to define routes within sendmail dependant on the senders domain or relay address - like mailertable but looking for sender?
Thanks ins advance...