最近博客很卡,发现大量postdorp进程消耗资源
Apr 2 01:58:54 ebs-44225 postfix/postdrop[26427]: warning: mail_queue_enter: create file maildrop/907440.26427: Permission denied Apr 2 01:58:55 ebs-44225 postfix/postdrop[22955]: warning: mail_queue_enter: create file maildrop/319539.22955: Permission denied Apr 2 01:58:55 ebs-44225 postfix/postdrop[30193]: warning: mail_queue_enter: create file maildrop/479542.30193: Permission denied Apr 2 01:58:55 ebs-44225 postfix/postdrop[26287]: warning: mail_queue_enter: create file maildrop/623477.26287: Permission denied Apr 2 01:58:55 ebs-44225 postfix/postdrop[22238]: warning: mail_queue_enter: create file maildrop/623698.22238: Permission denied Apr 2 01:58:55 ebs-44225 postfix/postdrop[26141]: warning: mail_queue_enter: create file maildrop/749729.26141: Permission denied Apr 2 01:58:56 ebs-44225 postfix/postdrop[31231]: warning: mail_queue_enter: create file maildrop/134496.31231: Permission denied Apr 2 01:58:56 ebs-44225 postfix/postdrop[21903]: warning: mail_queue_enter: create file maildrop/226709.21903: Permission denied Apr 2 01:58:56 ebs-44225 postfix/postdrop[26564]: warning: mail_queue_enter: create file maildrop/227137.26564: Permission denied Apr 2 01:58:56 ebs-44225 postfix/postdrop[27698]: warning: mail_queue_enter: create file maildrop/227211.27698: Permission denied
1.首先修改crontab,在第一行加入 MAILTO=”
2.给予相应的权限
chown postfix.postdrop /var/spool/postfix/public -R chown postfix.postdrop /var/spool/postfix/maildrop -R chmod 777 /var/spool/postfix/maildrop -R