Re: Advice Required - for avoiding conflict betwen qmail-smtpd, rblsmtpd loaded as shared objects in tcpserver

Charles Cazabon <[email protected]> Sat, 1 Apr 2017 11:06:34 -0600
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
Manvendra Bhangui <[email protected]> wrote:
> In recent past I worked on an idea that I had to eliminate the frequent
> fork() / exec() calls made by tcpserver for incoming emails

Er, why?

tcpserver does this by design.  Part of the reason for that is separation of
privelege; no child process, which handles a single connection, can interfere
with the operation of any other connection, even if the exec'd program is a
buggy mess of security holes.  In other words, it's a security feature.

It's also extremely efficient; the process is tiny and a fork/exec is cheap on
reasonable operating systems and even vaguely-modern hardware.  Do you
actually have data showing that this minimal overhead is a bottleneck in your
situation?  If not, why are you trying to eliminate it?

Charles
-- 
--------------------------------------------------------------------------
Charles Cazabon
GPL'ed software available at:                  http://pyropus.ca/software/
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
--------------------------------------------------------------------------