Re: [exim] exim + postgrey on multiple incoming hosts

Top Page
Delete this message
Reply to this message
Author: Peter Bowyer
Date:  
To: Exim users mailing list
Subject: Re: [exim] exim + postgrey on multiple incoming hosts
On 07/02/07, Klemens Puritscher <exim-list@???> wrote:
> Hi all,
>
> I'm using exim on my incoming mx hosts.
> Now, I want to turn on greylisting.
> IMHO a good solution is postgrey described at http://attenuate.org/~simon/wiki/Exim_and_postgrey
>
> My problem is, that I have more than one incoming mx host.
> So I want use the "--inet" option of postgrey.


When Simon wrote his how-to, Exim's ${readsocket functionality only
worked with unix-domain sockets. Recent versions now support
internet-domain sockets as well - so you might be able to modify the
${readsocket call in the how-to in order to connect to a remote TCP
socket.

The 2 syntaxes for readsocket are

${readsocket{/socket/name}{request string}}
${readsocket{inet:some.host:1234}{request string}}

You need to use the second one. The manual page for more info is

http://www.exim.org/exim-html-4.66/doc/html/spec_html/ch11.html#SECTexpop

Or contact Simon to see if he's updated his recipe....

(Note that postgrey has some Exim-specific tweaks, which might not
suit the inet socket solution)

Peter


--
Peter Bowyer
Email: peter@???