Hello.
I'm not too experienced with Sendmail, having been avoiding it like the plague over the years due to its needlessly complicated and incomprehensible configuration method. I much prefer Postfix.
However I now find myself having to look after some production Sendmail relays and need to work out how to do something.
These relays are incoming mail gateways for my organisation, sitting between the big bad Internet and an internal MS Exchange platform. From time to time our Information Security department asks us to divert incoming email from certain senders to them instead of relaying it to the Exchange platform and its intended recipient.
We're doing this in a somewhat clunky way at the moment, by using milter-regex to match the incoming mail by its sender address and quarantining it. A nightly-run shell script then moves the queue files for the quarantined messages out of the queue directory, tars them up, then emails the tarball to InfoSec.
InfoSec are finding the Sendmail queue files difficult to work with though, split as they are into a Sendmail-specific control file and a data file.
Is there a way in which the email could simply be diverted as-is to a different address without being modified in any way?
Thanks for any advice.
I'm not too experienced with Sendmail, having been avoiding it like the plague over the years due to its needlessly complicated and incomprehensible configuration method. I much prefer Postfix.
However I now find myself having to look after some production Sendmail relays and need to work out how to do something.
These relays are incoming mail gateways for my organisation, sitting between the big bad Internet and an internal MS Exchange platform. From time to time our Information Security department asks us to divert incoming email from certain senders to them instead of relaying it to the Exchange platform and its intended recipient.
We're doing this in a somewhat clunky way at the moment, by using milter-regex to match the incoming mail by its sender address and quarantining it. A nightly-run shell script then moves the queue files for the quarantined messages out of the queue directory, tars them up, then emails the tarball to InfoSec.
InfoSec are finding the Sendmail queue files difficult to work with though, split as they are into a Sendmail-specific control file and a data file.
Is there a way in which the email could simply be diverted as-is to a different address without being modified in any way?
Thanks for any advice.