Hi All!

I've got a problem which seems to be not trivial for me despite almost
10-years experience with Postfix... I've got my own SMTP server running
postfix (what else?) and it controls several domains. If the mail
arrives from 'outside', it should go to the milter before going to the
destination user's mailbox. And it works fine for both individual and
group messages (chain mails). If the mail goes between users in the same
domain or between domains belonging to me, it should go through the
milter anyway and it works fine as well. The issue is with chain letters
when To: and Cc: can both contain not only my 'internal' domain
emailaddresses, but any combination of internal and external addresses.
My task is to forward only 'local' mails to the milter for processing,
leaving 'foreign' outgoing mails untouched.

If succeed, my next task would be, if that's possible at all, to create
a personal copy of the message for each local recipient (e.g, clone the
message) and forward each one copy to the milter individually however,
keeping all the To: and Cc: lists visible for all recipients (to
maintain chain-letter compatibility).

Any suggestions/ideas?

Reply via email to