Hi Simon,
We are running on FreeBSD 8.2 amd64, MySQL 5.5.
I've read through your thread and it appears the outstanding performance issue
you are still having is probably caused by exactly the same issue I've
described.
The workaround in the meantime is to set smtpd_end_of_data_restriction policy
server to a different address on the same machine.
For our testing server we just created a separate loopback address for
smtpd_end_of_data_restriction policy server. So our postfix config now looks
like this:
smtpd_recipient_restrictions =
check_policy_service inet:127.0.0.1:10031
smtpd_end_of_data_restrictions =
check_policy_service inet:127.0.0.2:10031
I look forward to what Nigel finds.
Sincerely,
Nikolai Schupbach
On 4/07/2011, at 7:02 PM, Simon Hobson wrote:
> Nikolai Schupbach wrote:
>> We are running 2.1-snapshot-201104210611 with Postfix 2.8.3
>
> What OS, which version of MySQL ?
>
>> It appears that Postfix tries to re-use the same socket for the
>> smtpd_recipient_restrictions and smtpd_end_of_data_restrictions.
>> However it appears cbpolicyd closes this socket after the first
>> check or has some error. As a result we notice that there is about a
>> 1-2 second delay after the result of the DATA command while Postfix
>> times out and reconnects to cbpolicyd.
>
> I don't know if it's related, or just a red herring, but I started
> what turned out to be a fairly long thread a while ago on a
> performance related issue. I'm running PostfixAdmin as well, so
> Postfix is also doing lots of lookups and was getting timeouts.
>
> http://lists.policyd.org/pipermail/users/2011-April/003324.html
>
> And the bit where I announced the solution (at least to the timeouts)
> - upgrading from Debian Lenny to Squeeze, and MySQL from 5.0 to 5.1
> made the problem go away.
>
> http://lists.policyd.org/pipermail/users/2011-April/003340.html
>
> --
> Simon Hobson
>
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.policyd.org/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users