> On Mar 11, 2019, at 6:04 PM, Ralph Seichter <ab...@monksofcool.net> wrote: > >> When do you trigger than rule? Postfix supports 'discard', but only >> after "MAIL FROM", not after CONNECT or EHLO. > > $ postconf -n | grep milter > milter_default_action = accept > non_smtpd_milters = unix:/run/opendkim/socket > smtpd_milters = unix:/run/opendkim/socket inet:localhost:11332 > > Is this the right way to do it? Rspamd is listening on localhost:11332 > (little surprise there). I grep'd my Postfix log file because I was > looking for clues, but 'DISCARD' does not appear anywhere. When I use > 'reject' in Rspamd instead, Postfix logs look like this:
Under what conditions does the milter respond with "discard"? It should not do that until before the "MAIL FROM" command. -- Viktor.