{"id":2497,"date":"2012-03-31T15:06:11","date_gmt":"2012-03-31T12:06:11","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2497"},"modified":"2022-04-06T10:46:58","modified_gmt":"2022-04-06T07:46:58","slug":"exim-%d0%b8-dovecot-delivery","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2497","title":{"rendered":"[exim] dovecot delivery"},"content":{"rendered":"<p><strong>Dovecot<\/strong> \u043e\u0447\u0435\u043d\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 <strong>POP3\/IMA<\/strong>P \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043d\u0443\u0436\u0434. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d &#8211; \u044d\u0442\u043e <strong>sieve<\/strong>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432.<\/p>\n<p>\u041d\u043e \u0447\u0442\u043e \u0431\u044b \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e &#8211; \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>dovecot deliver<\/strong>, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0438 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u043a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e.<\/p>\n<p><!--more--><\/p>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f <strong>vexim<\/strong>, \u0442\u043e \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0441 \u043f\u0430\u043d\u0435\u043b\u044c\u044e \u0438 \u0431\u0435\u0437.<\/p>\n<h2><strong><span style=\"color: #0000ff;\">\u0414\u043b\u044f Vexim<\/span><\/strong><\/h2>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434:<\/span><\/strong><\/em> <strong>OpenBSD 5.0, exim 4.76, dovecot, 2.0.17<\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 dovecot.<\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0442\u0430\u043a\u0438\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f:<\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; dovecot \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0431\u0440\u0430\u043d \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 delivery (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e)<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d socket master:<\/span><\/em><\/p>\n<p>\u0432 \u0444\u0430\u0439\u043b\u0435 <strong>10-master.conf<\/strong> \u043f\u0438\u0448\u0435\u043c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p><code>service auth {<br \/>\nunix_listener auth-master {<br \/>\nmode = 0600<br \/>\nuser = _exim<br \/>\ngroup = _exim<br \/>\n}<\/code><\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u044d\u0442\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432 \u0438 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u043c <strong>log&#8217;a dovecot&#8217;a<\/strong>, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443 (\u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0431\u0449\u0430\u044f \u0438 \u043f\u043e\u043d\u044f\u0442\u044c \u0432 \u0447\u0451\u043c \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0430 &#8211; \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e)<\/p>\n<p><code>T=dovecot_virtual_delivery defer (0): Child process of dovecot_virtual_delivery transport returned 75 (could mean temporary error) from command: \/usr\/local\/libexec\/dovecot\/dovecot-lda<\/code><\/p>\n<p>\u0432 \u0444\u0430\u0439\u043b\u0435 <strong>15-lda.conf<\/strong> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u0430\u043a\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<p><code>lda_mailbox_autocreate = yes<br \/>\nlda_mailbox_autosubscribe = yes<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0442\u0440\u0438\u0445 (\u043c\u0435\u043d\u044f\u0435\u043c \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0430 \u0444\u0430\u0439\u043b\u0430 \u043b\u043e\u0433\u043e\u0432 \u0442\u0430\u043a, \u0447\u0442\u043e \u0431\u044b \u043e\u043d \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b \u0441 \u0432\u043b\u0430\u0434\u0435\u043b\u044c\u0446\u0435\u043c \u0441\u043e\u043a\u0435\u0442\u0430 <strong>unix_listener auth-master<\/strong>)<\/p>\n<p><code>#chown _exim \/var\/log\/dovecot.log<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 exim.<\/span><\/strong><\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442<\/p>\n<p><code>dovecot_virtual_delivery:<br \/>\ndriver = pipe<br \/>\ncommand = \/usr\/local\/libexec\/dovecot\/deliver -d $local_part@$domain -c \/etc\/dovecot\/dovecot.conf -f $sender_address -e<br \/>\nmessage_prefix =<br \/>\nmessage_suffix =<br \/>\ndelivery_date_add<br \/>\nenvelope_to_add<br \/>\nreturn_path_add<br \/>\nlog_output<br \/>\nuser = _exim<br \/>\ntemp_errors = 64 : 69 : 70: 71 : 72 : 73 : 74 : 75 : 78<br \/>\n<\/code><br \/>\n\u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430 <strong>local_delivery<\/strong>.<br \/>\n\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u0440\u043e\u0443\u0442\u0435\u0440\u0430\u0445 <strong>virtual_domains<\/strong> \u0438 <strong>virtual_domains_catchall<\/strong> \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c <strong>file_transport<\/strong> \u043d\u0430 \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443<\/p>\n<p><code>file_transport = dovecot_virtual_delivery<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.<\/span><\/strong><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0445 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c <strong>exim, dovecot<\/strong> (\u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043f\u0440\u0438 <strong>reload<\/strong> \u043d\u0435 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u043e). \u0421\u0442\u0440\u043e\u043a\u0430<\/p>\n<p><code>2012-03-31 14:27:33 [13285] 1SDwSy-0005P8-TJ =&gt; \/var\/mail\/vmail\/domain.ua\/postmaster\/Maildir F= P= R=virtual_domains <span style=\"color: #ff0000;\">T=dovecot_virtual_delivery<\/span> S=932 QT=1s DT=0s<\/code><\/p>\n<p>\u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442 <strong>T=dovecot_virtual_delivery<\/strong>, \u0447\u0442\u043e \u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430\u0448 \u0440\u043e\u0443\u0442\u0435\u0440.<\/p>\n<p><em><strong><span style=\"color: #ff6600;\">\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/span><\/strong><\/em><\/p>\n<p>\u0414\u043b\u044f \u0432\u0435\u0440\u0441\u0438\u0438 <strong>Dovecot 1.x<\/strong> \u0432\u0441\u0451 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u043c\u0438:<\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u0432 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0435&nbsp;dovecot_virtual_delivery command \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/span><\/em><\/p>\n<p><code>command = \/usr\/local\/libexec\/dovecot\/deliver -d $local_part@$domain<\/code><\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 15-lda.conf \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432 \u0432\u0435\u0440\u0441\u0438\u0438 1.\u0425 \u043d\u0435\u0442 \u0442\u0430\u043a\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/span><\/em><\/p>\n<h2><strong><span style=\"color: #0000ff;\">\u0411\u0435\u0437 Vexim&#8217;a<\/span><\/strong><\/h2>\n<p><em><strong><span style=\"color: #008000;\">\u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u0442\u0435\u043d\u0434:<\/span><\/strong><\/em> <strong>FreeBSD 7.0, exim 4.69_3, dovecot, 1.1.15<\/strong><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) dovecot<\/span><\/strong><\/p>\n<p>\u0412 <strong>dovecot.conf<\/strong><\/p>\n<p><code>...<br \/>\nprotocol lda {<br \/>\nauth_socket_path = \/var\/run\/dovecot\/auth-master<br \/>\n}<br \/>\n...<br \/>\nsocket listen {<br \/>\nmaster {<br \/>\npath = \/var\/run\/dovecot\/auth-master<br \/>\nmode = 0600<br \/>\nuser = mailnull<br \/>\ngroup = mail<br \/>\n}<br \/>\n...<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">2) exim<\/span><\/strong><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0440\u043e\u0443\u0442\u0435\u0440<\/p>\n<p><code>dovecot_user:<br \/>\ndriver = accept<br \/>\ncondition = ${lookup mysql{SELECT `goto` FROM \\<br \/>\n`alias` WHERE \\<br \/>\n`address`='${quote_mysql:$local_part@$domain}' OR \\<br \/>\n`address`='${quote_mysql:@$domain}'}{yes}{no}}<br \/>\ntransport = dovecot_delivery<\/code><\/p>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442:<\/p>\n<p><code>dovecot_delivery:<br \/>\ndriver = pipe<br \/>\ncommand = \/usr\/local\/libexec\/dovecot\/deliver -d $local_part@$domain<br \/>\nmessage_prefix =<br \/>\nmessage_suffix =<br \/>\ndelivery_date_add<br \/>\nenvelope_to_add<br \/>\nreturn_path_add<br \/>\nlog_output<br \/>\nuser = mailnull<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435.<\/span><\/strong><\/p>\n<p>\u0412 \u043b\u043e\u0433\u0430\u0445 \u0432\u0438\u0434\u0438\u043c \u043d\u0430\u0448 \u0438\u0441\u043a\u043e\u043c\u044b\u0439 \u0440\u043e\u0443\u0442\u0435\u0440 \u0438 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442:<\/p>\n<p><code>Mar 31 11:00:44 srv exim[12110]: [12110] 1SDw32-00039J-Jf =&gt; admin F= P= <span style=\"color: #ff0000;\">R=dovecot_user<\/span> <span style=\"color: #ff0000;\">T=dovecot_delivery<\/span> S=743 QT=0s DT=0s<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dovecot \u043e\u0447\u0435\u043d\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 POP3\/IMAP \u0441\u0435\u0440\u0432\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043f\u043b\u0430\u0433\u0438\u043d\u044b \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445 \u043d\u0443\u0436\u0434. \u041e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u043f\u043b\u0430\u0433\u0438\u043d &#8211; \u044d\u0442\u043e sieve, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u043f\u043e\u0447\u0442\u043e\u0432\u044b\u0445 \u044f\u0449\u0438\u043a\u043e\u0432. \u041d\u043e \u0447\u0442\u043e \u0431\u044b \u044d\u0442\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e &#8211; \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c dovecot deliver, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d \u0438 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u043a\u0430\u043a \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043e.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-2497","post","type-post","status-publish","format-standard","hentry","category-mail"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2497","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=2497"}],"version-history":[{"count":9,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2497\/revisions"}],"predecessor-version":[{"id":5877,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2497\/revisions\/5877"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}