> If you really like to do you might use header_checks to detect the > Content-Type. Signed mail for example has "Content-Type: multipart/signed". > For header_checks have a look here > http://www.postfix.org/header_checks.5.html, but be aware that the content > has already leaked as others said. If you need policy drive encryption use a > S/MIME gateway (http://www.postfix.org/addon.html#security-gateway) or > plugins for the mailclient in question. > > Regards > > Andreas > > I thought header_checks might work, but I don't think it can.
>From what I've read, header_checks processes a mail one line at a time. What I need is to process on two conditions - the sender and the mime type, based on an IF statement. I don't think header_checks will do that :-(