
以下を参考にVPSでメールサーバーを立てようとしています。
https://centossrv.com/postfix.shtml
Postfix、Dovecotともにエラーなく起動し、OP25Bも対策済みなのですが、ThunderbirdにPOP3で設定すると
「あなたのアカウント設定を見つけられませんでした」
とのエラーが出てしまいます。
netstat -lntp
で調べたところ
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 369/master tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 369/master tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 499/dovecot tcp6 0 0 :::25 :::* LISTEN 369/master tcp6 0 0 :::587 :::* LISTEN 369/master tcp6 0 0 :::110 :::* LISTEN 499/dovecot
と出ます。
おそらくProgram nameがmasterではなくPostfixにならなければいけないのかなぁと思っているのですが、そうなっていないということはpostfixが正しく起動していないということでしょうか?
一体どうすれば改善するのか、途方にくれています。
ヒントだけでもご教授いただければ幸いです。
よろしくお願いいたします。
追記1.
新規に作成したメアドへメール送信直後に、「journalctl --since=today」でログを取得しました。
statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00 statistics: max connection count 1 for (smtp:IPアドレス1) at Jun 26 00:26:00 statistics: max cache size 1 at Jun 26 00:26:00 Received disconnect from IPアドレス2: 11: [preauth] Received disconnect from IPアドレス3: 11: [preauth] connect from example.jp[IPアドレス1] warning: SASL authentication failure: Internal Error -4 in server.c near line 1757 warning: xsasl_cyrus_server_get_mechanism_list: no mechanism available fatal: no SASL authentication mechanisms warning: process /usr/libexec/postfix/smtpd pid 1275 exit status 1 warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
下の5行のうち、真ん中が赤字、他が黄文字でした。
追記2.
以下2つをインストールしました。
yum -y install cyrus-sasl-md5
yum -y install cyrus-sasl-plain
参考=http://kajuhome.com/patio_thread/1118.shtml
すると、エラー(赤字と黄文字)がなくなり、以下のようになりましたが、まだ送受信できません。
27C05800AEA: from=<送信元メアド>, size=1232, nrcpt=1 (queue active) disconnect from 送信元メアドのサーバドメイン[IPアドレス1] 27C05800AEA: to=<root@example.com>, orig_to=<info@example.com>, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) 27C05800AEA: removed statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 02:20:06
追伸3.
以下のようにtelnetでメール送信したところ、何やら送信はできていそうなのですが、結局は届きませんでした。
telnet localhost 25 Trying ::1... Connected to localhost. Escape character is '^]'. 220 mail.example.com ESMTP unknown ehlo mail.example.com 250-mail.example.com 250-PIPELINING 250-SIZE 10485760 250-VRFY 250-ETRN 250-AUTH PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN auth plain AGluZm9AYWZmaWbpbmNoZS5jb2UAZHJlYW0xOTE5 235 2.7.0 Authentication successful MAIL FROM:sample@example.com 250 2.1.0 Ok RCPT TO:test@test.jp 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> SUBJECT:this is test test mail . 250 2.0.0 Ok: queued as 283FB800B29 quit 221 2.0.0 Bye Connection closed by foreign host.
そして、その時のログが以下です。
6175F800B30: client=localhost[::1], sasl_method=plain, sasl_username=info@example.com 6175F800B30: message-id=<20170626051325.6175F800B30@mail.example.com> 6175F800B30: from=<sample@example>, size=353, nrcpt=1 (queue active) 6175F800B30: SASL authentication failed; server smtp.gmail.com[108.177.97.108] said: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbtQ?5… 6175F800B30: SASL authentication failed; server smtp.gmail.com[108.177.97.109] said: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbuM?5… disconnect from localhost[::1] connect to smtp.gmail.com[2404:6800:4008:c00::6d]:587: Connection timed out 6175F800B30: to=<test@test.jp>, relay=none, delay=108, delays=74/0.02/33/0, dsn=4.4.1, status=deferred (connect to smtp.gmail.com[2404:6800:4008:c00::6d]:587: Co Bad protocol version identification '\026\003\001\001"\001' from 118.193.31.182 port 54225 Did not receive identification string from 118.193.31.182 Bad protocol version identification 'GET / HTTP/1.1' from 118.193.31.182 port 39259
追記4.
ログ内のGメールのエラーもなくなり、telnetでのメール送受信も、時間差こそあれ、一応できるようになりました。
ただし、Thunderbirdではやはり両方できません。
メーラーの設定画面で、POP3とSMTP両方の入力欄に①を入れた時、②を入れた時でエラーメッセージは以下のようになります。
①mail.example.com
「あなたのアカウント設定を見つけられませんでした」
「ユーザー名またはパスワードが無効です」
②example.com =
「アカウント設定が、指定されたサーバーを調べることにより見つかりました」
「ユーザー名またはパスワードが無効です」
つまりmail.example.comが存在しない状態になっているように思われます。
この状態をどのように回避すれば良いのでしょうか?
回答5件
あなたの回答
tips
プレビュー