I would like to setup a SMTP proxy/filter box which simply sits in between
the real server and the internet. All incoming mail passes through the
filter, and all outgoing mail also passes through the filter.

Basically the box will do a single job, it will have all the domains handled
by the organisation listed in the $mydomain and the rule processing will be
that it looks at the To and From only, it then compares each one to
$mydomain. If one header matches $mydomain (say To:) then it looks at the
other for comparison, if it is not listed in $mydomain it then strips the
domain from that address and it copies the email and sends it a new email
address based on it going to an address within the organisation.

For example:
The organisation has mydomain.com as their $mydomain.
They email someone at postfix.org. Or someone from postfix.org emails
someone at mydomain.com
The filter box matches the To/From as not being in $mydomain and creates a
copy of the email and sends it to postfix....@mydomain.com which is handled
by the authorative mail server.
The original message goes on its merry way uninterrupted and the copy is
routed back internally
The authorative mail server then does as it pleases based on that email
address.

All emails to and from a domain are then collected at a single mailbox for
an extensible journaling purposes based on the email address.

Any ideas would be appreciated.

Reply via email to