Dnia 24.01.2023 o godz. 23:01:15 Yannik Sembritzki pisze: > > I'm currently investigating a situation that milters are called > twice, once by smtpd, and once by cleanup, when both smtpd_milters > and non_smtpd_milters are configured (to the same values). > > The graphic on https://www.postfix.org/MILTER_README.html suggests > that this is normal behavior. > (I mean this graphic: https://i.imgur.com/EXW2MXo.png) > > Can anybody confirm whether this is correct?
No. The Postfix documentation says: non_smtpd_milters (default: empty) A list of Milter (mail filter) applications for new mail that does not arrive via the Postfix smtpd(8) server. This includes local submission via the sendmail(1) command line, new mail that arrives via the Postfix qmqpd(8) server, and old mail that is re-injected into the queue with "postsuper -r". Specify space or comma as a separator. See the MILTER_README document for details. So, if a message arrives via smtpd, and is processed via smtpd_milters, when it goes further to cleanup, it is not processed by any more milters. Only messages that go to cleanup with omission of smtpd are processed by non_smtpd_milters. So smtpd_milters and non_smtpd_milters are mutually exclusive; either one or the other set of milters is run. Unless you use post-queue filtering and re-inject mail back into Postfix after being filtered; then it is processed again by non_smtpd_milters. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."