Yahoo Groups archive

Milter-greylist

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

Thread

Run MG on tcp socket

Run MG on tcp socket

2009-05-14 by Florin Grosu

Hello,

I've seen this subject before, but the answer was not explicit. To put
it simple, I need to install milter-greylist on a different machine. So the mail server should have a line like
Show quoted textHide quoted text
INPUT_MAIL_FILTER(`greylist',`S=inet@port:greylist_server')
and on the greylist server I should have the greylist running on a tcp port, something like
/usr/local/bin/milter-greylist -f /conf -p 12345
This command doesn't do the work though.

Everywhere on the net I've seen only local setup for the greylist (same machine as mail server). Is it possible to have the mail and the greylist on different servers? If yes, where am I wrong?

Thank you for your answers,
Florin

Re: [milter-greylist] Run MG on tcp socket

2009-05-14 by Emmanuel Dreyfus

On Thu, May 14, 2009 at 08:24:53AM -0000, Florin Grosu wrote:
> /usr/local/bin/milter-greylist -f /conf -p 12345
> This command doesn't do the work though.
> 
> Everywhere on the net I've seen only local setup for the greylist (same
> machine as mail server). Is it possible to have the mail and the
> greylist on different servers? If yes, where am I wrong?

Yes, it is possible. Milter-greylist hands the -p argument to 
libmilter's smfi_setconn(), which actually use it. It means that the
socket specification is the same for any milter. IIRC, you can use
a TCP socket by using -p 'inet:12345@192.0.2.1'

The @192.0.2.1 is the local address and is optionnal (default to 0.0.0.0).
You can have a IPv6 socket using inet6 instead of inet.

-- 
Emmanuel Dreyfus
manu@...

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.