On Tue, Sep 24, 2013 at 12:29:46PM -0400, Tim Prepscius wrote: > I think the > > http://www.postfix.org/FILTER_README.html > > is what I need -- perhaps -- I'll find out.
Also read http://www.postfix.org/OVERVIEW.html Mail comes in, and then it goes out. On the input side all envelope and content transformations happen as the message is written to a queue file in the "incoming" queue by cleanup(8). This may involve milters and pre-queue SMTP proxy filters. On the output side, with smtp(8), mail is subject to smtp_generic_maps, and sometimes 8-bit to 7-bit MIME conversion. Between the input and output side, you can impose content filters (via deliveries to internal SMTP hops or to pipe(8) commands). The content filters may use the Postfix content_filter feature to operate within a single Postfix instance (or queue), or may sit between the input and output sides of a multi-instance Postfix configuration. After it leaves your system, mail may of course be modified by other systems before it is finally delivered to a recipient's mailbox. And of course keep in mind that email message envelopes with multiple recipients often split into multiple pieces as mail gets closer to the destination when not all recipient mailboxes reside in the same store. In particular, with always_bcc, the Bcc mailbox sees the message content, but not the other envelope recipients. Since you are trying to do advanced filtering with Postfix, you need a deeper understanding of the architecture more than any specific advice. Take time to understand how Postfix works, http://www.postfix.org/ADDRESS_REWRITING_README.html http://www.postfix.org/ADDRESS_CLASS_README.html http://www.postfix.org/MILTER_README.html http://www.postfix.org/SMTPD_PROXY_README.html http://www.postfix.org/QSHAPE_README.html http://www.postfix.org/MULTI_INSTANCE_README.html -- Viktor.
