<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>2014/08/29 on Yano&#39;s digital garage</title>
    <link>https://www.bravotouring.com/~yano/archives/2014/08/29/</link>
    <description>Recent content in 2014/08/29 on Yano&#39;s digital garage</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 29 Aug 2014 23:44:09 +0900</lastBuildDate>
    <atom:link href="https://www.bravotouring.com/~yano/archives/2014/08/29/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>postfixの忘れ物</title>
      <link>https://www.bravotouring.com/~yano/diary/it/20140829postfix.htm</link>
      <pubDate>Fri, 29 Aug 2014 23:44:09 +0900</pubDate>
      <guid>https://www.bravotouring.com/~yano/diary/it/20140829postfix.htm</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.bravotouring.com/~yano/diary/it/20140606vps.htm&#34;&gt;6月にTrusty化&lt;/a&gt;した「さくらのVPS」の自前サーバ。&lt;/p&gt;&#xA;&lt;p&gt;新しい開発案件用にテストメールアカウントを作成し、外部から送信したところエラー発生。&lt;span class=&#34;Path&#34;&gt;/var/log/mail.log&lt;/span&gt;をチェックしたところ&lt;blockquote cite=&#34;/var/log/mail.log&#34; class=&#34;Log&#34;&gt;Aug 28 12:49:21 vps postfix/local[30170]: 21266220B29: to=&lt;test-alert＠bravotouring.com&gt;, relay=local, delay=0.51, delays=0.44/0.01/0/0.06, dsn=5.3.0, status=bounced (command line usage error. Command output: /usr/lib/dovecot/deliver: &lt;span class=&#34;Warning&#34;&gt;invalid option -- &#39;n&#39;&lt;/span&gt; Usage: dovecot-lda [-c &lt;config file&gt;] [-a &lt;address&gt;] [-d &lt;username&gt;] [-p &lt;path&gt;] [-f &lt;envelope sender&gt;] [-m &lt;mailbox&gt;] [-e] [-k] )&lt;/blockquote&gt;という事らしい。&lt;/p&gt;&#xA;&lt;p&gt;言うに事欠いて&lt;span class=&#34;Warning&#34;&gt;invalid option&lt;/span&gt;って何よ？しかも&lt;span class=&#34;Software&#34;&gt;postfix&lt;/span&gt;じゃなくて&lt;span class=&#34;Software&#34;&gt;dovecot-lda&lt;/span&gt;ですか？&lt;/p&gt;&#xA;&lt;p&gt;という事で調べてみたところ、&lt;span class=&#34;Path&#34;&gt;/etc/postfix/main.cf&lt;/span&gt;の&lt;span class=&#34;Strong&#34;&gt;mailbox_command&lt;/span&gt;の記述が問題らしい。&lt;span class=&#34;Software&#34;&gt;dovecot&lt;/span&gt;のバージョンアップに追従できないらしく、&lt;span class=&#34;Path&#34;&gt;/etc/dovecot/conf.d/01-dovecot-postfix.conf&lt;/span&gt;も無くなっているので、&#xA;&lt;blockquote cite=&#34;/var/log/mail.log&#34; class=&#34;Log&#34;&gt;&#xA;yano@vps:~$ diff /etc/postfix/main.cf.20140607 /etc/postfix/main.cf&lt;br/&gt;&#xA;75c75,76&lt;br/&gt;&#xA;&lt; mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m &#34;${EXTENSION}&#34;&lt;br/&gt;&#xA;---&lt;br/&gt;&#xA;&gt; # mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/01-dovecot-postfix.conf -n -m &#34;${EXTENSION}&#34;&lt;br/&gt;&#xA;&gt; mailbox_command = /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/15-lda.conf -m &#34;${EXTENSION}&#34;&lt;/blockquote&gt;&#xA;…な感じで改修し、無事に送受信できるようになった。&#xA;&lt;blockquote class=&#34;Log&#34;&gt;Aug 28 13:52:45 vps postfix/smtpd[31583]: connect from relay.shared-server.net[211.13.204.74]&lt;br/&gt;&#xA;Aug 28 13:52:45 vps postfix/smtpd[31583]: EE2A2220C89: client=relay.shared-server.net[211.13.204.74]&lt;br/&gt;&#xA;Aug 28 13:52:45 vps postfix/cleanup[31590]: EE2A2220C89: message-id=&lt;62CFC27BDBFD84test-sender＠nalab.jp&gt;&lt;br/&gt;&#xA;Aug 28 13:52:45 vps postfix/qmgr[31398]: EE2A2220C89: from=&lt;test-sender＠nalab.jp&gt;, size=1704, nrcpt=1 (queue active)&lt;br/&gt;&#xA;Aug 28 13:52:45 vps postfix/smtpd[31583]: disconnect from relay.shared-server.net[211.13.204.74]&lt;br/&gt;&#xA;Aug 28 13:52:46 vps &lt;span class=&#34;Software&#34;&gt;dovecot&lt;/span&gt;: lda(test): msgid=&lt;62CFC27BDBFD84test-sender＠nalab.jp&gt;: &lt;span class=&#34;Warning&#34;&gt;save failed to open mailbox alert: Mailbox doesn&#39;t exist&lt;/span&gt;: alert&lt;br/&gt;&#xA;Aug 28 13:52:46 vps &lt;span class=&#34;Software&#34;&gt;dovecot&lt;/span&gt;: lda(test): msgid=&lt;62CFC27BDBFD84test-sender＠nalab.jp&gt;: saved mail to INBOX&lt;br/&gt;&#xA;Aug 28 13:52:46 vps postfix/local[31591]: EE2A2220C89: to=&lt;test-alert＠bravotouring.com&gt;, relay=local, delay=0.1, delays=0.07/0/0/0.03, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver -c /etc/dovecot/conf.d/15-lda.conf -m &#34;${EXTENSION}&#34;)&lt;br/&gt;&#xA;Aug 28 13:52:46 vps postfix/qmgr[31398]: EE2A2220C89: removed&lt;/blockquote&gt;&#xA;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
