Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

milter-greylist with postfix

2006-11-28 by Nerijus Baliunas

Hello,

According to http://www.postfix.org/MILTER_README.html#workarounds :
  Some Milter applications use the "{if_addr}" macro to recognize local mail;
  this macro does not exist in Postfix. Workaround: use the "{client_addr}"
  macro instead.

I had to replace {if_addr} with {client_addr} in milter-greylist.c (this got rid
of "smfi_getsymval failed for {if_addr}" in the log). If sendmail also supports
{client_addr}, could it be possible to change it in the source? If not, then
probably configure switch could be added for Postfix?

But I still get message "smfi_getsymval failed for {i}". Is it because of (the
same URL):
  This happens because some Milter applications expect that the queue ID
  is known before the MTA accepts the MAIL FROM (sender) command.
  Postfix, on the other hand, does not choose a queue file name until after
  it accepts the first valid RCPT TO (recipient) command.
?
There is a workaround below in the page.

And now the most serious problem. "              0" is added at the end of
every message, and a number (pid?) is added after all the headers,
for example:

X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
          44660

Message-Id: <20061127145914.674468019A@...>
           3753

Any idea why? Or should I ask in postfix list?

Regards,
Nerijus

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.