On 8/17/2016 10:34 AM, Zhang Huangbin wrote: > Dear all, > > I got a problem with my own Postfix policy server (written in Python). > Postfix usually works fine with it, but sometimes it raised error like this: > > Aug 17 08:32:52 mail1 postfix/smtpd[24298]: warning: problem talking to > server 127.0.0.1:1234: Connection reset by peer > Aug 17 08:34:05 mail1 postfix/smtpd[24771]: warning: problem talking to > server 127.0.0.1:1234: Connection timed out > > Then time Postfix raised these errors, my policy server is still working and > properly processing requests (checked its log file). > > I don't know how to reproduce this issue, except wait (especially when server > is busy, but randomly). Do you have any idea/hint about how i can debug this > issue? either Postfix side or my policy server side, or both. > > Your help is greatly appreciated. >
Have you defined a time limit as described in http://www.postfix.org/SMTPD_POLICY_README.html#client_config The default time limit of 1000s may be too short. Otherwise, show your config. http://www.postfix.org/DEBUG_README.html#mail -- Noel Jones