Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] milter-greylist with postfix

2006-11-29 by Nerijus Baliunas

On Tue, 28 Nov 2006 06:45:24 +0100 manu@... wrote:

> > 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?
> 
> Won't we later discover older or odd-flavored sendmail that miss
> {client_addr}? I'd rather go for the --with-postfix configure flag.

Actually it's the other way around - sendmail-8.9.3 has {client_addr},
but not {if_addr}, while 8.10.0, 8.11.0 have both. So IMHO you don't
need configure flag (in case {client_addr} can be used instead of
{if_addr} of course).

> OTOH, {if_addr} is only used for the X-Greylist header, to tell what
> machine did the greylisting. That could be replace by the local IP
> address we get if we open an UDP socket. Of course it can be wrong on
> machine with multiple interfaces, but that should be okay in most cases.

BTW, I don't see X-Greylist header in received mails with 3.0, should I?

What about smfi_getsymval failed for {i}? Is it because Postfix does not
know the queue ID before it accepts the MAIL FROM command?

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.