Re: Proxy database connections to a policy service?

2015-07-16 Thread Wietse Venema
E.B.: > > One thread monitors multiple file handles (event sources), and > > processes events one at a time. Examples of events are client > > requests and DNS replies. This is how postscreen is implemented. > > OK, so concurrent in that you could start accepting a new > SMTP session while an earl

Re: Proxy database connections to a policy service?

2015-07-16 Thread E.B.
> > > > > You could run a small pool > > > > > (1 or more) of processes each of which handles multiple concurrent > > > > > smtpd connections. > > > > > > > > Sorry, sort of beginner programmer question, to be clear > > > > what you say, concurrent connections would be handled by > > > > a policy s

Re: Proxy database connections to a policy service?

2015-07-16 Thread Wietse Venema
E.B.: > > > > You could run a small pool > > > > (1 or more) of processes each of which handles multiple concurrent > > > > smtpd connections. > > > > > > Sorry, sort of beginner programmer question, to be clear > > > what you say, concurrent connections would be handled by > > > a policy server by

Re: Proxy database connections to a policy service?

2015-07-16 Thread E.B.
> > > You could run a small pool > > > (1 or more) of processes each of which handles multiple concurrent > > > smtpd connections. > > > > Sorry, sort of beginner programmer question, to be clear > > what you say, concurrent connections would be handled by > > a policy server by spawning a new thre

Re: Proxy database connections to a policy service?

2015-07-16 Thread Viktor Dukhovni
On Thu, Jul 16, 2015 at 10:40:04AM -0700, E.B. wrote: > > Using spawn is not mandatory you know. > > Yes, I have been considering alternate to run a external > daemon instead. According to this thread, I undersatnd if > database connections are concern, choice to use external > daemon could be be

Re: Proxy database connections to a policy service?

2015-07-16 Thread E.B.
> > Another question about policy service run under postfix spawn--- > > Using spawn is not mandatory you know. Yes, I have been considering alternate to run a external daemon instead. According to this thread, I undersatnd if database connections are concern, choice to use external daemon could b

Re: Proxy database connections to a policy service?

2015-07-16 Thread Viktor Dukhovni
On Thu, Jul 16, 2015 at 06:06:11PM +0300, Marius Gologan wrote: > Once the scripts are done and disconnected from the DB server, TCP > connections will remain in TIME_WAIT. I've noticed that on my systems and > solve it by modifying the TCP parameters (reuse, recycle and timeout). Sockets in TIME

RE: Proxy database connections to a policy service?

2015-07-16 Thread Marius Gologan
I'm not a programmer, but with scripts your worries are likely to become true. Once the scripts are done and disconnected from the DB server, TCP connections will remain in TIME_WAIT. I've noticed that on my systems and solve it by modifying the TCP parameters (reuse, recycle and timeout). I would

Re: Proxy database connections to a policy service?

2015-07-16 Thread Viktor Dukhovni
On Thu, Jul 16, 2015 at 12:21:46AM -0700, E.B. wrote: > Another question about policy service run under postfix spawn--- Using spawn is not mandatory you know. You could run a small pool (1 or more) of processes each of which handles multiple concurrent smtpd connections. So long as the policy

Re: unknown logging event

2015-07-16 Thread Ralf Hildebrandt
* Postfix User : > I hope this isn't too stupid of a question. I have been finding this event > logged in maillog for the past several days: > > Jul 16 08:50:38 scorpio postfix/smtpd[69563]: connect from > localhost[127.0.0.1] > Jul 16 08:50:38 scorpio postfix/smtpd[69563]: warning: Illegal addre

Re: unknown logging event

2015-07-16 Thread Wietse Venema
Postfix User: > I hope this isn't too stupid of a question. I have been finding this event > logged in maillog for the past several days: > > Jul 16 08:50:38 scorpio postfix/smtpd[69563]: connect from > localhost[127.0.0.1] > Jul 16 08:50:38 scorpio postfix/smtpd[69563]: warning: Illegal address

unknown logging event

2015-07-16 Thread Postfix User
I hope this isn't too stupid of a question. I have been finding this event logged in maillog for the past several days: Jul 16 08:50:38 scorpio postfix/smtpd[69563]: connect from localhost[127.0.0.1] Jul 16 08:50:38 scorpio postfix/smtpd[69563]: warning: Illegal address syntax from localhost[127.

Re: Proxy database connections to a policy service?

2015-07-16 Thread Wietse Venema
E.B.: > Another question about policy service run under postfix spawn--- > > If using a database to store policy service state, on a busy site > I understand this could mean possibly very large number of > policy servers along with each smtpd service. > > if each policy service has a DB connect

Proxy database connections to a policy service?

2015-07-16 Thread E.B.
Another question about policy service run under postfix spawn--- If using a database to store policy service state, on a busy site I understand this could mean possibly very large number of policy servers along with each smtpd service. if each policy service has a DB connection this could be to