Alex:
> Hi,
> 
> I'm using postfix-2.10.3 on fedora20 with sqlgrey, distributed across three
> separate servers through mysql. I've configured it using:
> 
> check_policy_service inet:127.0.0.1:2501
> 
> in main.cf. However, this doesn't provide fault protection in the same way
> as the greylist.pl example does in the smtpd policy docs describe. The

The Postfix SMTP server uses the same policy daemon connection
for multiple queries.

> issue is that sqlgrey is a daemon, not a binary that is spawned every time
> a call is made.

The policy daemon (running under the Postfix spawn daemon) is started
when a Postfix SMTP server connects to its port.  The Postfix SMTP
server will try to use that connection for several queries.

> is it okay to have the sqlgrey daemon run from master.cf in the same way?

The Postfix spawn daemon assumes that its command will read from
standard input, and that it will write to stadard output and
standard error. If sqlgrey works that way then it can be run from
the Postfix spawn daemon. Otherwise you need a different solution.

        Wietse


Reply via email to