Начало > sadmin > Postfix бележки

Postfix бележки

6 декември, 2011 Коментирай Go to comments

Изтриване на всички писма от/до MAILER-DAEMON в опашката:

mailq | grep MAILER-DAEMON | awk '{print $1}' | tr -d '*' | postsuper -d -

Изтриване на всички писма в опашката:

postsuper -d ALL

В лог-а на postfix извеждаше:

….
Dec  4 21:32:09 mash postfix/qmgr[4892]: 888AB46267A0: from=<>, size=5961, nrcpt=1 (queue active)
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: mail for [127.0.0.1]:10024 is using up 4001 of 4001 active qu
eue entries
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: you may need to reduce amavis connect and helo timeouts
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: so that Postfix quickly skips unavailable hosts
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: you may need to increase the main.cf minimal_backoff_time and maximal_backoff_time
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: so that Postfix wastes less time on undeliverable mail
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: you may need to increase the master.cf amavis process limit
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: please avoid flushing the whole queue when you have
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: lots of deferred mail, that is bad for performance
Dec  4 21:32:09 mash postfix/qmgr[4892]: warning: to turn off these warnings specify: qmgr_clog_warn_time = 0

Поправка:

vim /etc/postfix/master.cf

Преди:
amavis unix -- - -- - 2 smtp

Сега:
amavis unix -- - -- - 250 smtp

  1. 9 декември, 2011 в 10:59 | #1

    Това с MAILER-DAEMON е много полезно. Интересно ми е дали ще свърши работа за изтриване на писма от опашката от определен юзер.
    Ето и още няколко команди, които може да са полезни за някого:

    du -cmh /var/vmail/mydomain/user -- показва каква част от квотата си използва даден юзер, където /var/vmail/mydomain/user e пътя до директорията на юзер "user".

    postqueue -p -- показва писмата в опашката
    postqueue -f -- изпраща писмата от опашката

  1. 0 trackbacks