On 25.02.21 12:57, Joe Acquisto-j4 wrote:
I did not notice that adding non_smtpd_milters also caused off
box (smtpd) mail to be scanned twice, before and after
spamassassin.
Apparently having both smtpd_milters and non_smtpd_milters
specified in main.cf causes that.
Initially it appeared to me that milters had to be specified main.cf.
Delving somewhat deeper it now appears that to me milters can
alternately be specified in master.cf? Is that correct?
you can switch to spamass-milter instead of using spamassassin.
With it, you can reject high scoring spam at SMTP level.
other approach, common with amavis is to use amavis as content_filter for
mail submitted locally or on ports 465/587 (where authentication is
required) and amavis feeds mail back on alternative port where milters and
content filters are disabled.
mail received on port 25 can still be scanned via milter to allow smtp-time
rejection.
advantage of this approach is that local/authenticated clients get quick
feedback about accepted mail (scanning takes some time), while remote
clients (mail servers) can wait a while.
I usually use amavisd as content_filter by default, and amavisd-milter on port
25.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
One OS to rule them all, One OS to find them,
One OS to bring them all and into darkness bind them