Yahoo Groups archive

Milter-greylist

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

Message

Re: [milter-greylist] Re: p0f + postfix

2011-01-31 by Kouhei Sutou

Hi,

Here is another workaround. :)

In <ii4dot+3247@...>
  "[milter-greylist] Re: p0f + postfix" on Sun, 30 Jan 2011 19:22:05 -0000,
  "gitoshi" <gitoshi@...> wrote:

> here the workaround
> 
> 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.
> 
> http://www.postfix.org/MILTER_README.html#workarounds
> 
> however I“dont like the idea of patch my stable MTA.
> Lot of people stick to only stable/precompile packages.

{client_addr} returns SMTP client's IP address not Postfix's
interface IP address. So we can't use it as {if_addr}
replacement.

milter manager 1.6.5 (*) can solve it. :)
(*) http://milter-manager.sourceforge.net/

milter manager is a meta-milter. milter manager works
between MTA and milters:

                                   <-> milter1
  MTA (Postfix) <-> milter manager <-> milter2
                                   <-> milter3

milter manager can set any milter macros. They includes
{client_addr}.

                                   <-------------> milter1 (milter-greylist)
                                    {client_addr}
  MTA (Postfix) <-> milter manager <-------------> milter2
                    {client_addr}   {client_addr}
                        (new!)     <-------------> milter3
                                    {client_addr}

milter manager uses netstat(8) and SMTP client's IP address
and port for resolving MTA's interface IP address.


If you follow the install documentation, you can use the
above configuration:
  http://milter-manager.sourceforge.net/reference/install-to-centos.html


Thanks,
--
kou

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.