{"id":909,"date":"2016-01-24T14:30:47","date_gmt":"2016-01-24T14:30:47","guid":{"rendered":"http:\/\/pingtool.org\/?p=909"},"modified":"2016-12-27T08:51:34","modified_gmt":"2016-12-27T08:51:34","slug":"ispconfig-dovecot-send-mailbox-full-warnings-users","status":"publish","type":"post","link":"https:\/\/pingtool.org\/ru\/ispconfig-dovecot-send-mailbox-full-warnings-users\/","title":{"rendered":"ISPconfig \/ dovecot \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430"},"content":{"rendered":"<p>\u0414\u043b\u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043c\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d Dovecot <strong>quota_warning<\/strong>.<\/p>\n<p>1. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Dovecot:<br \/>\n<strong>\/etc\/dovecot\/dovecot.conf<\/strong><\/p>\n<p><code><br \/>\nplugin {<br \/>\n  quota = dict:user::file:\/var\/vmail\/%d\/%n\/.quotausage<br \/>\n  sieve=\/var\/vmail\/%d\/%n\/.sieve<\/p>\n<p>  # \u041d\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0438\u0436\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p>  quota_warning = storage=95%% quota-warning 95 %u<br \/>\n  quota_warning2 = storage=80%% quota-warning 80 %u<br \/>\n  quota_warning3 = -storage=100%% quota-warning below %u # user is no longer over quota<br \/>\n}<\/p>\n<p>service quota-warning {<br \/>\n  executable = script \/usr\/local\/bin\/quota-warning.sh<br \/>\n  user = vmail<br \/>\n  unix_listener quota-warning {<br \/>\n        user = vmail<br \/>\n        mode = 0600<br \/>\n  }<br \/>\n}<br \/>\n<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0438\u0441\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0431\u043e\u043b\u0435\u0435 80% \u043e\u0442 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430, Dovecot \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u0441\u043b\u043d\u044f\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 <strong>\/usr\/local\/bin\/quota-warning.sh<\/strong>.<\/p>\n<p>2. \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0438\u0437\u0432\u0435\u0449\u0435\u043d\u0438\u044f:<\/p>\n<p><code><br \/>\n<code><br \/>\n#!\/bin\/sh<br \/>\nPERCENT=$1<br \/>\nUSER=$2<br \/>\ncat << EOF | \/usr\/libexec\/dovecot\/dovecot-lda -d $USER -o \"plugin\/quota=maildir:User quota:noenforcing\"\nFrom: postmaster@localhost.local\nSubject: Mailbox size warning\n\nYour mailbox is now $PERCENT% full. Please delete old messages.\nEOF\n<\/code><br \/>\n<\/code><\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043b\u044e\u0431\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 - \u0432 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u044e\u0449\u0435\u0435 \u043f\u0438\u0441\u044c\u043c\u043e.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043e \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u044c\u0435\u043c\u0430 \u043f\u043e\u0447\u0442\u043e\u0432\u043e\u0433\u043e \u044f\u0449\u0438\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d Dovecot quota_warning. 1. \u041e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b Dovecot: \/etc\/dovecot\/dovecot.conf plugin { quota = dict:user::file:\/var\/vmail\/%d\/%n\/.quotausage sieve=\/var\/vmail\/%d\/%n\/.sieve # \u041d\u0435 \u0437\u0430\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u0435\u0441\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u044b, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u043d\u0438\u0436\u0435\u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0441\u0442\u0440\u043e\u043a\u0438: quota_warning = storage=95%% quota-warning 95 &hellip; <a href=\"https:\/\/pingtool.org\/ru\/ispconfig-dovecot-send-mailbox-full-warnings-users\/\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[12],"tags":[57],"class_list":["post-909","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dovecot"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/comments?post=909"}],"version-history":[{"count":10,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/909\/revisions"}],"predecessor-version":[{"id":919,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/posts\/909\/revisions\/919"}],"wp:attachment":[{"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/media?parent=909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/categories?post=909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pingtool.org\/ru\/wp-json\/wp\/v2\/tags?post=909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}