質問するログイン新規登録

質問編集履歴

9

ちょっとだけ修正

2017/06/26 14:36

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -87,7 +87,7 @@
87
87
  250 2.1.5 Ok
88
88
  DATA
89
89
  354 End data with <CR><LF>.<CR><LF>
90
- SUBJECT this is test
90
+ SUBJECT:this is test
91
91
  test mail
92
92
  .
93
93
  250 2.0.0 Ok: queued as 283FB800B29

8

telnetでは送受信OK。ただしThunderbirdでは不可

2017/06/26 14:36

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -109,4 +109,18 @@
109
109
  Bad protocol version identification '\026\003\001\001"\001' from 118.193.31.182 port 54225
110
110
  Did not receive identification string from 118.193.31.182
111
111
  Bad protocol version identification 'GET / HTTP/1.1' from 118.193.31.182 port 39259
112
- ```
112
+ ```
113
+
114
+ 追記4.
115
+ ログ内のGメールのエラーもなくなり、telnetでのメール送受信も、時間差こそあれ、一応できるようになりました。
116
+ ただし、Thunderbirdではやはり両方できません。
117
+ メーラーの設定画面で、POP3とSMTP両方の入力欄に①を入れた時、②を入れた時でエラーメッセージは以下のようになります。
118
+ ①mail.example.com
119
+ 「あなたのアカウント設定を見つけられませんでした」
120
+ 「ユーザー名またはパスワードが無効です」
121
+ ②example.com =
122
+ 「アカウント設定が、指定されたサーバーを調べることにより見つかりました」
123
+ 「ユーザー名またはパスワードが無効です」
124
+
125
+ つまりmail.example.comが存在しない状態になっているように思われます。
126
+ この状態をどのように回避すれば良いのでしょうか?

7

telnetでのメール送信結果を追加

2017/06/26 14:28

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -58,4 +58,55 @@
58
58
  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)
59
59
  27C05800AEA: removed
60
60
  statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 02:20:06
61
+ ```
62
+
63
+ 追伸3.
64
+ 以下のようにtelnetでメール送信したところ、何やら送信はできていそうなのですが、結局は届きませんでした。
65
+
66
+ ```ここに言語を入力
67
+ telnet localhost 25
68
+ Trying ::1...
69
+ Connected to localhost.
70
+ Escape character is '^]'.
71
+ 220 mail.example.com ESMTP unknown
72
+ ehlo mail.example.com
73
+ 250-mail.example.com
74
+ 250-PIPELINING
75
+ 250-SIZE 10485760
76
+ 250-VRFY
77
+ 250-ETRN
78
+ 250-AUTH PLAIN LOGIN
79
+ 250-ENHANCEDSTATUSCODES
80
+ 250-8BITMIME
81
+ 250 DSN
82
+ auth plain AGluZm9AYWZmaWbpbmNoZS5jb2UAZHJlYW0xOTE5
83
+ 235 2.7.0 Authentication successful
84
+ MAIL FROM:sample@example.com
85
+ 250 2.1.0 Ok
86
+ RCPT TO:test@test.jp
87
+ 250 2.1.5 Ok
88
+ DATA
89
+ 354 End data with <CR><LF>.<CR><LF>
90
+ SUBJECT this is test
91
+ test mail
92
+ .
93
+ 250 2.0.0 Ok: queued as 283FB800B29
94
+ quit
95
+ 221 2.0.0 Bye
96
+ Connection closed by foreign host.
97
+ ```
98
+ そして、その時のログが以下です。
99
+
100
+ ```ここに言語を入力
101
+ 6175F800B30: client=localhost[::1], sasl_method=plain, sasl_username=info@example.com
102
+ 6175F800B30: message-id=<20170626051325.6175F800B30@mail.example.com>
103
+ 6175F800B30: from=<sample@example>, size=353, nrcpt=1 (queue active)
104
+ 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…
105
+ 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…
106
+ disconnect from localhost[::1]
107
+ connect to smtp.gmail.com[2404:6800:4008:c00::6d]:587: Connection timed out
108
+ 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
109
+ Bad protocol version identification '\026\003\001\001"\001' from 118.193.31.182 port 54225
110
+ Did not receive identification string from 118.193.31.182
111
+ Bad protocol version identification 'GET / HTTP/1.1' from 118.193.31.182 port 39259
61
112
  ```

6

追記

2017/06/26 05:29

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -24,7 +24,7 @@
24
24
  よろしくお願いいたします。
25
25
 
26
26
 
27
- 追記.
27
+ 追記1
28
28
  新規に作成したメアドへメール送信直後に、「journalctl --since=today」でログを取得しました。
29
29
  ```ここに言語を入力
30
30
  statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00
@@ -43,6 +43,7 @@
43
43
  下の5行のうち、真ん中が赤字、他が黄文字でした。
44
44
 
45
45
 
46
+ 追記2.
46
47
  以下2つをインストールしました。
47
48
  yum -y install cyrus-sasl-md5
48
49
  yum -y install cyrus-sasl-plain

5

追記

2017/06/25 17:36

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -40,4 +40,21 @@
40
40
  warning: process /usr/libexec/postfix/smtpd pid 1275 exit status 1
41
41
  warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
42
42
  ```
43
- 下の5行のうち、真ん中が赤字、他が黄文字でした。
43
+ 下の5行のうち、真ん中が赤字、他が黄文字でした。
44
+
45
+
46
+ 以下2つをインストールしました。
47
+ yum -y install cyrus-sasl-md5
48
+ yum -y install cyrus-sasl-plain
49
+
50
+ 参考=http://kajuhome.com/patio_thread/1118.shtml
51
+
52
+ すると、エラー(赤字と黄文字)がなくなり、以下のようになりましたが、まだ送受信できません。
53
+
54
+ ```ここに言語を入力
55
+ 27C05800AEA: from=<送信元メアド>, size=1232, nrcpt=1 (queue active)
56
+ disconnect from 送信元メアドのサーバドメイン[IPアドレス1]
57
+ 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)
58
+ 27C05800AEA: removed
59
+ statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 02:20:06
60
+ ```

4

内容若干修正

2017/06/25 17:36

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
 
27
27
  追記.
28
- journalctl --since=todayで、新規に作成したメアドからの送信と受信ログを取得しました。
28
+ 新規に作成したメアドへメール送信に、「journalctl --since=today」でログを取得しました。
29
29
  ```ここに言語を入力
30
30
  statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00
31
31
  statistics: max connection count 1 for (smtp:IPアドレス1) at Jun 26 00:26:00

3

ログ追加

2017/06/25 17:21

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -25,7 +25,7 @@
25
25
 
26
26
 
27
27
  追記.
28
- journalctl --since=todayで、以下ログを取得しました。
28
+ journalctl --since=todayで、新規に作成したメアドからの送信と受信後のログを取得しました。
29
29
  ```ここに言語を入力
30
30
  statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00
31
31
  statistics: max connection count 1 for (smtp:IPアドレス1) at Jun 26 00:26:00

2

ログを追加

2017/06/25 16:03

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -25,9 +25,19 @@
25
25
 
26
26
 
27
27
  追記.
28
- 以下コマンドを入れてログを取得しようと試みたのですが、すべて存在していせんでした。
28
+ journalctl --since=todayで、以下ログを取得しました。
29
- (ログの取得方法が違う?)
29
+ ```ここに言語を入力
30
+ statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00
31
+ statistics: max connection count 1 for (smtp:IPアドレス1) at Jun 26 00:26:00
32
+ statistics: max cache size 1 at Jun 26 00:26:00
30
- /var/log/messages
33
+ Received disconnect from IPアドレス2: 11: [preauth]
34
+ Received disconnect from IPアドレス3: 11: [preauth]
31
- /var/log/maillog
35
+ connect from example.jp[IPアドレス1]
36
+
37
+ warning: SASL authentication failure: Internal Error -4 in server.c near line 1757
38
+ warning: xsasl_cyrus_server_get_mechanism_list: no mechanism available
32
- vi /etc/rsyslog.conf
39
+ fatal: no SASL authentication mechanisms
40
+ warning: process /usr/libexec/postfix/smtpd pid 1275 exit status 1
41
+ warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
42
+ ```
33
- vi /etc/syslog.conf
43
+ 下の5行のうち、真ん中が赤文字、他が黄文字でした。

1

ログの中身について

2017/06/25 16:00

投稿

coinbura
coinbura

スコア106

title CHANGED
File without changes
body CHANGED
@@ -21,4 +21,13 @@
21
21
 
22
22
  一体どうすれば改善するのか、途方にくれています。
23
23
  ヒントだけでもご教授いただければ幸いです。
24
- よろしくお願いいたします。
24
+ よろしくお願いいたします。
25
+
26
+
27
+ 追記.
28
+ 以下コマンドを入れてログを取得しようと試みたのですが、すべて存在していませんでした。
29
+ (ログの取得方法が違う?)
30
+ /var/log/messages
31
+ /var/log/maillog
32
+ vi /etc/rsyslog.conf
33
+ vi /etc/syslog.conf