Skip to main content

Thread: smtp process limit


i'm having problem increasing postfix 2.5 smtpd process limit 200. here's have tried far:

1)
/etc/postfix/main.cf:
code:
default_process_limit = 200
2)
/etc/postfix/master.cf:
code:
smtp      inet  n       -       -       -       200       smtpd
3)
/etc/postfix/master.cf:
code:
smtp      inet  n       -       -       -       -       smtpd    -o default_process_limit=200
during heavy traffic or simulation (stress test), number of smtpd processes reaches default limit, whereupon server stops accepting new connections:

$ ps -u postfix | wc -l
101

n.b. there no other bottlenecks in state (according atop).

error messages:
warning: process /usr/lib/postfix/smtpd pid 25834 exit status 1
warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
setuid(105): resource temporarily unavailable


/etc/security/limits.conf:
code:
postfix        soft    nproc   200 postfix        hard    nproc   300
could of give me hint, please?

well, evidently directives in limits.conf ignored in our distribution/setup.

temporary solution, placed "ulimit -u 300" in postfix init script.
300 smtpd processes can spawned, though process limit in master 200 (!).


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] smtp process limit


Ubuntu

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code