* Viktor Dukhovni:

> 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:

Mar 11 22:51:18 ra postfix/cleanup[12573]: D6FBA48C13A0: milter-reject: 
END-OF-MESSAGE from mail.dinamer.eu[89.163.155.223]: 5.7.1 rspamd objects; 
from=<ipju...@dinamer.eu> to=<f...@domain.tld> proto=ESMTP 
helo=<mail.dinamer.eu>

-Ralph

Reply via email to