On 26 Nov 2018, at 16:16, @lbutlr wrote:

spamass-milter[27557]: Could not retrieve sendmail macro "i"!. Please add it to confMILTER_MACROS_ENVFROM for better spamassassin results

(I am not using sendmail, other than postfix’s sendmail replacement)


See the documentation of the milter_*_macros in 'man 5 postconf' and MILTER_README


From postconf -d

milter_data_macros = i
milter_end_of_data_macros = i
milter_end_of_header_macros = i
milter_mail_macros = i {auth_type} {auth_authen} {auth_author} {mail_addr} {mail_host} {mail_mailer}
milter_rcpt_macros = i {rcpt_addr} {rcpt_host} {rcpt_mailer}

And since '-d' tells you what Postfix does by default, you should confirm that 'postconf -n |grep milter' does not show you any of those settings without the 'i' macro.

An i is supposed to return the queue ID. Why this confuses/upsets spamass-milter is not clear, nor which of these might be the issue. I did find at least two mentions via google that said this message can be ignored and some bugzilla entries that didn’t show any useful information and marked the bug as closed more than two years ago. 🤷🏼‍♀️

Yes, spamass-milter is apparently abandonware.

These non-default Postfix settings might help:

enable_long_queue_ids = yes
smtpd_delay_open_until_valid_rcpt = no

The first one makes Postfix open a queue file and assign an ID before it's sure that it will need to queue the message. Without this, milter_mail_macros and milter_rcpt_macros can't operationally include a real queue ID because there won't be one until one RCPT has been accepted.

The second one makes Postfix queue IDs look more like Sendmail queue IDs (and non-repeating.) That may be meaningless to spamass-milter (I have not checked the code) but it's POSSIBLE that it expects something like a Sendmail queue ID (long, mixed-case alphanumeric) and is unhappy with a classical short Postfix queue ID (shorter, all uppercase hex.)



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Available For Hire: https://linkedin.com/in/billcole

Reply via email to