On 10/16/15 13:13, Slawa Olhovchenkov wrote:
ну и вообще, общую
переусложненность postfix:

postfix  48387 51021 51021 51021    0 I     -       0:00.02 pickup -l -t fifo -u
root     51021     1 51021 51021    0 Ss    -       0:18.19 
/usr/local/libexec/postfix/master -w
postfix  51023 51021 51021 51021    0 I     -       0:14.45 qmgr -l -t fifo -u
postfix  51218 51021 51021 51021    0 S     -       0:00.02 smtpd -n smtp -t 
inet -u -o stress=
postfix  51219 51021 51021 51021    0 S     -       0:00.01 anvil -l -t unix -u
postfix  52607 51021 51021 51021    0 S     -       0:00.01 trivial-rewrite -n 
rewrite -t unix -u
postfix  52677 51021 51021 51021    0 I     -       0:00.01 cleanup -z -t unix 
-u
postfix  52680 51021 51021 51021    0 I     -       0:00.01 smtp -t unix -u
postfix  52682 51021 51021 51021    0 I     -       0:00.01 smtp -t unix -u
postfix  52684 51021 51021 51021    0 I     -       0:00.01 pipe -n dovecot -t 
unix flags=DRhu user=mailnull:mailnull argv=/usr/local/libexec/dovecot/deliver 
-d ${recipient}
postfix  52709 51021 51021 51021    0 S     -       0:00.02 smtpd -n smtp -t 
inet -u -o stress=
postfix  52793 51021 51021 51021    0 I     -       0:00.01 smtp -t unix -u
postfix  52795 51021 51021 51021    0 I     -       0:00.01 smtp -t unix -u

куча каких-то демонов, как-то перадающих задание друг другу,

Это не переусложнённость, а модульная архитектура:
http://www.postfix.org/OVERVIEW.html
Разделение на разные процессы повышает надёжность и безопасность (за счёт privilege separation).

В Dovecot очень похожий подход:
http://wiki2.dovecot.org/Design/Processes

Если всё то же самое запихать в один процесс, сложность никуда не денется (просто будет меньше заметна админу).

Ответить