{"id":5667,"date":"2020-09-21T17:29:41","date_gmt":"2020-09-21T14:29:41","guid":{"rendered":"https:\/\/skeletor.org.ua\/?p=5667"},"modified":"2022-04-06T10:51:17","modified_gmt":"2022-04-06T07:51:17","slug":"dovecot-autoreply-via-sieve","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=5667","title":{"rendered":"[dovecot] autoreply via sieve"},"content":{"rendered":"<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0435 <strong>roundcube<\/strong> \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d <strong>sieve<\/strong>. \u0418 \u0442\u0443\u0442 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0434\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c: \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0451 \u043a <strong>dovecot+exim<\/strong> (<strong>via dovecot delivery<\/strong>). \u0418 \u0442\u0430\u043a, \u043d\u0438\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <strong>dovecot.conf<\/strong>:<\/p>\n<p><!--more--><\/p>\n<pre>protocols = imap pop3 sieve\nprotocol lda {\n       mail_plugins = $mail_plugins sieve\n...\n}\nservice managesieve-login {\n        inet_listener sieve {\n                address = 127.0.0.1\n        }\n        inet_listener sieve_deprecated {\n                address = 127.0.0.1\n                port = 2000\n        }\n}\nprotocol sieve {\n        log_path = \/var\/log\/dovecot-sieve-errors.log\n        info_log_path = \/var\/log\/dovecot-sieve.log\n}\nplugin {\n        sieve=\/home\/mail\/%d\/%n\/dovecot.sieve\n        sieve_dir=\/home\/mail\/%d\/%n\/sieve\n        sieve_max_script_size = 1M\n        sieve_quota_max_scripts = 50\n        sieve_quota_max_storage = 1M\n        sieve_global_dir = \/etc\/dovecot\/sieve\n        sieve_vacation_send_from_recipient = yes\n        sieve_vacation_min_period = 1d\n...\n}\n<\/pre>\n<p>\u0421\u0430\u043c\u0430\u044f \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u043e\u043f\u0446\u0438\u044f \u0437\u0434\u0435\u0441\u044c, \u044d\u0442\u043e <strong>sieve_vacation_send_from_recipient<\/strong> (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u0442\u043e\u0438\u0442 \u0432 <strong>no<\/strong>). \u041e\u043d\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u0432\u0435\u0442<br \/>\n<span style=\"color: #ff6600;\"><strong>&#8211; no:<\/strong><\/span> \u043e\u0442\u0432\u0435\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a <strong>bounce<\/strong> \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 <strong>From=&lt;&gt;<\/strong>, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u043c\u0438 \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u043c\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c\u0438. \u0412 \u043b\u043e\u0433\u0430\u0445 <strong>exim&#8217;a<\/strong> \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre>2020-09-21 19:28:44.727 [28760] cwd=\/home\/mail\/domain.net\/user2 6 args: \/usr\/sbin\/sendmail -i -f &lt;&gt; -- user@domain.com\n<\/pre>\n<p><span style=\"color: #ff6600;\"><strong>&#8211; yes:<\/strong><\/span> \u043e\u0442\u0432\u0435\u0442 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u043d\u043e\u0432\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u0430\u043a-\u0431\u0443\u0434\u0442\u043e \u0432\u044b \u0441\u0430\u043c\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u043b\u0438 \u043e\u0442\u0432\u0435\u0442 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u0435\u043b\u044c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a <strong>user2@domain.net<\/strong>. \u0412 \u043b\u043e\u0433\u0430\u0445 \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<pre>2020-09-21 20:15:43.871 [30679] cwd=\/home\/mail\/domain.net\/user2 6 args: \/usr\/sbin\/sendmail -i -f user2@domain.net -- user@domain.com\n<\/pre>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0446\u0438\u044e <strong>sieve_vacation_use_original_recipient<\/strong>, \u043d\u043e \u0442\u0430\u043c \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u044e\u0430\u043d\u0441\u044b. \u041f\u0440\u0438\u0432\u0435\u0434\u0443 \u0432\u044b\u0434\u0435\u0440\u0436\u043a\u0443 \u0438\u0437 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <strong>dovecot<\/strong><\/p>\n<blockquote><p><span style=\"color: #993366;\">This specifies whether the original envelope recipient should be used in the check for implicit delivery. The vacation command checks headers of the incoming message, such as To: and Cc: for the address of the recipient, to verify that the message is explicitly addressed at the recipient. If the recipient address is not found, the vacation action will not trigger a response to prevent sending a reply when it is not appropriate. Normally only the final recipient address is used in this check. This setting allows including the original recipient specified in the SMTP session if available. This is useful to handle mail accounts with aliases. Use this option with caution: if you are using aliases that point to more than a single account, senders can get multiple vacation responses for a single message. Use the LDA -a option or the LMTP\/LDA lda_original_recipient_header setting to make the original SMTP recipient available to Sieve.<\/span><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0435 roundcube \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d sieve. \u0418 \u0442\u0443\u0442 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0434\u0435\u043b\u043e \u0437\u0430 \u043c\u0430\u043b\u044b\u043c: \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0451 \u043a dovecot+exim (via dovecot delivery). \u0418 \u0442\u0430\u043a, \u043d\u0438\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 dovecot.conf:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[],"class_list":["post-5667","post","type-post","status-publish","format-standard","hentry","category-mail","category-others"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5667"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5667\/revisions"}],"predecessor-version":[{"id":5889,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/5667\/revisions\/5889"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}