On 27 Mar 2021, at 12:49, @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.

Milters ARE general intrinsically. MIMEDefang is only usable as a milter

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

That.

It's VERY easy to do. Your mimedefang-filter will have a subroutine for each stage of the transaction. For each one that you enable (controlled by options to the mimedefang daemon) after filter_sender() you have either a single recipient (in filter_recipient()) or an array of all extant recipients (in filter_{begin,end,multipart,wrapup}().) You can put a check for the special user at the top of the subroutine and call 'return action_accept();' if it's not there.

Note that things can get messy when messages have multiple recipients. Ways of dealing with that (basically: forcing one recipient per message) are documented in the MIMEDefang docs.

Also, right now it is setup with

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

Does it need to be a port instead?

No. RTFM. The MIMEDefang package includes 9 man pages.

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

Yes, it is stable software. While Dianne Skoll was the MIMEDefang BDFL, she kept scope-creep under control and wrote good code, so there has not been a lot of novelty for users of MIMEDefang. It mostly just works. It is not dead, and a maintenance release will be coming soon with a handful of fairly small fixes.

--
Bill Cole
[email protected] or [email protected]
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to