Robert Sander:
> I have a setup where a commercial anti-virus checker is connected via
> milter with postfix.
> 
> I would like to reject virus positive mails on the SMTP level, but the
> commercial product is sending a DISCARD back to postfix, causing it to
> silently drop the mail.
> 
> It seems that there is no way to change the behaviour of the anti-virus
> scanner.
> 
> How do I tell postfix to "rewrite" the DISCARD from the milter to a
> REJECT and reject the mail at the SMTP level?

a) Use or build a Milter proxy that sits between Postfix and Milter
and replace the SMFIR_DISCARD reply code 'd' with SMFIR_REJECT code
'r'.

b) Modify the Milter with a binary editor and replace SMFIR_DISCARD
reply code 'd' with SMFIR_REJECT code 'r'. Have some fun.

c) Modify Postfix. May the source be with you.

        Wietse

Reply via email to