Hi LuKreme,

I believe once you hook in MIMEDefang with postfix, it's a general purpose filter that uses the milter interface to process emails at various stages of the mail dialogue and processing.  It hurts my brain to think about whether Postfix could do a filter on the recipients and then hand-off things to MIMEDefang or not :-)

If you take a look at https://mcgrail.com/downloads/The%20Perl%20Conference%202019%20-%20%20Fighting%20Spam%20with%20Perl%20using%20Apache%20SpamAssassin%20&%20MIMEDefang%20.pdf you can get a demo filter at https://drive.google.com/file/d/1yu6cnEN_22A07_9ApvBxrvLs4iiAeeW1/view which helps you see the hooks available.

You could add a function in filter_recipient to set a global variable that you don't want to do any processing unless a specific recipient is involved.  Then you could add logic elsewhere to use that variable.

Regards,

KAM

On 3/27/2021 12:49 PM, @lbutlr wrote:
I would like postfix to send mail being delivered to a specific virtual user 
user on to mimedefang, but the instructions that I see on setting up mimedefang 
are just to set it up as a general milter.

Or do I need to configure mime defang itself to only process the mail to that 
user?

Also, right now it is setup with

-s /var/spool/MIMEDefang/mimedefang-multiplexor.sock

Does it need to be a port instead?

(Most the stuff I can find is a about decade old and the rest is even older, so 
I have little confidence)

        
        

        

Reply via email to