Hi, I have installed postfix on a small vServer (256Mb Ram, 10GB HD). I installed it with dovecot, mysql and postfixadmin. When I tested it, I got lots of "Cannot allocate Memory" errors.
vzfree told me, that I have enough memory. So I assumed a problems with open sockets. I added default_process_limit<http://www.postfix.org/postconf.5.html#default_process_limit> =3 to main.cf and removed some service I do not use from master.cf. First it worked, but then I tried some more load (20 mails at the same time). I got: Jan 15 11:19:53 postfix/smtpd[30335]: warning: connect #1 to subsystem public/cleanup: Cannot allocate memory Jan 15 11:19:53 postfix/smtpd[26327]: connect from unknown[****] Jan 15 11:19:53 postfix/master[26419]: fatal: pipe: Cannot allocate memory Jan 15 11:19:53 postfix/smtpd[26327]: warning: connect #1 to subsystem public/cleanup: Cannot allocate memory Jan 15 11:19:54 postfix/anvil[18292]: statistics: max connection rate 3/60s for (smtp:****) at Jan 15 11:19:53 Jan 15 11:19:54 postfix/anvil[18292]: statistics: max connection count 2 for (smtp:****) at Jan 15 11:19:53 Jan 15 11:19:54 postfix/anvil[18292]: statistics: max cache size 2 at Jan 15 11:15:15 Jan 15 11:20:03 postfix/smtpd[30335]: warning: connect #2 to subsystem public/cleanup: Connection refused ... Jan 15 11:21:33 postfix/smtpd[30335]: fatal: connect #11 to subsystem public/cleanup: Connection refused Postfix just needs to many sockets :(. Below is the output of /proc/user_beancounters without posftix running. postfix needs about 100 more in numothersock. My questions: - Can I somehow reduce the number of used sockets? - Is it at all possible to run postfix in this system? Thanks! Nathan cat /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt 9176: kmemsize 5010885 5010885 8270282 9097310 0 lockedpages 0 0 79 79 152 privvmpages 38214 38260 76800 84480 84 shmpages 3445 3445 25600 25600 0 dummy 0 0 2147483647 2147483647 0 numproc 52 52 164 164 0 physpages 9878 9878 0 2147483647 0 vmguarpages 0 0 76800 2147483647 0 oomguarpages 10119 10119 76800 2147483647 0 numtcpsock 14 15 164 164 0 numflock 4 4 262 288 0 numpty 5 5 16 16 0 numsiginfo 0 1 512 512 0 tcpsndbuf 140868 144316 1137635 1809379 0 tcprcvbuf 139640 143924 1137635 1809379 10 othersockbuf 21660 21660 568817 1240561 0 dgramrcvbuf 0 0 568817 568817 0 numothersock 35 35 164 164 1508 dcachesize 337716 341433 1209139 1245413 0 numfile 2025 2025 3008 3008 1085 dummy 0 0 0 0 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 numiptent 14 14 35 35 0