質問編集履歴

9

ちょっとだけ修正

2017/06/26 14:36

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -176,7 +176,7 @@
176
176
 
177
177
  354 End data with <CR><LF>.<CR><LF>
178
178
 
179
- SUBJECT this is test
179
+ SUBJECT:this is test
180
180
 
181
181
  test mail
182
182
 

8

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

2017/06/26 14:36

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -221,3 +221,31 @@
221
221
  Bad protocol version identification 'GET / HTTP/1.1' from 118.193.31.182 port 39259
222
222
 
223
223
  ```
224
+
225
+
226
+
227
+ 追記4.
228
+
229
+ ログ内のGメールのエラーもなくなり、telnetでのメール送受信も、時間差こそあれ、一応できるようになりました。
230
+
231
+ ただし、Thunderbirdではやはり両方できません。
232
+
233
+ メーラーの設定画面で、POP3とSMTP両方の入力欄に①を入れた時、②を入れた時でエラーメッセージは以下のようになります。
234
+
235
+ ①mail.example.com
236
+
237
+ 「あなたのアカウント設定を見つけられませんでした」
238
+
239
+ 「ユーザー名またはパスワードが無効です」
240
+
241
+ ②example.com =
242
+
243
+ 「アカウント設定が、指定されたサーバーを調べることにより見つかりました」
244
+
245
+ 「ユーザー名またはパスワードが無効です」
246
+
247
+
248
+
249
+ つまりmail.example.comが存在しない状態になっているように思われます。
250
+
251
+ この状態をどのように回避すれば良いのでしょうか?

7

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

2017/06/26 14:28

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -119,3 +119,105 @@
119
119
  statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 02:20:06
120
120
 
121
121
  ```
122
+
123
+
124
+
125
+ 追伸3.
126
+
127
+ 以下のようにtelnetでメール送信したところ、何やら送信はできていそうなのですが、結局は届きませんでした。
128
+
129
+
130
+
131
+ ```ここに言語を入力
132
+
133
+ telnet localhost 25
134
+
135
+ Trying ::1...
136
+
137
+ Connected to localhost.
138
+
139
+ Escape character is '^]'.
140
+
141
+ 220 mail.example.com ESMTP unknown
142
+
143
+ ehlo mail.example.com
144
+
145
+ 250-mail.example.com
146
+
147
+ 250-PIPELINING
148
+
149
+ 250-SIZE 10485760
150
+
151
+ 250-VRFY
152
+
153
+ 250-ETRN
154
+
155
+ 250-AUTH PLAIN LOGIN
156
+
157
+ 250-ENHANCEDSTATUSCODES
158
+
159
+ 250-8BITMIME
160
+
161
+ 250 DSN
162
+
163
+ auth plain AGluZm9AYWZmaWbpbmNoZS5jb2UAZHJlYW0xOTE5
164
+
165
+ 235 2.7.0 Authentication successful
166
+
167
+ MAIL FROM:sample@example.com
168
+
169
+ 250 2.1.0 Ok
170
+
171
+ RCPT TO:test@test.jp
172
+
173
+ 250 2.1.5 Ok
174
+
175
+ DATA
176
+
177
+ 354 End data with <CR><LF>.<CR><LF>
178
+
179
+ SUBJECT this is test
180
+
181
+ test mail
182
+
183
+ .
184
+
185
+ 250 2.0.0 Ok: queued as 283FB800B29
186
+
187
+ quit
188
+
189
+ 221 2.0.0 Bye
190
+
191
+ Connection closed by foreign host.
192
+
193
+ ```
194
+
195
+ そして、その時のログが以下です。
196
+
197
+
198
+
199
+ ```ここに言語を入力
200
+
201
+ 6175F800B30: client=localhost[::1], sasl_method=plain, sasl_username=info@example.com
202
+
203
+ 6175F800B30: message-id=<20170626051325.6175F800B30@mail.example.com>
204
+
205
+ 6175F800B30: from=<sample@example>, size=353, nrcpt=1 (queue active)
206
+
207
+ 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…
208
+
209
+ 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…
210
+
211
+ disconnect from localhost[::1]
212
+
213
+ connect to smtp.gmail.com[2404:6800:4008:c00::6d]:587: Connection timed out
214
+
215
+ 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
216
+
217
+ Bad protocol version identification '\026\003\001\001"\001' from 118.193.31.182 port 54225
218
+
219
+ Did not receive identification string from 118.193.31.182
220
+
221
+ Bad protocol version identification 'GET / HTTP/1.1' from 118.193.31.182 port 39259
222
+
223
+ ```

6

追記

2017/06/26 05:29

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -50,7 +50,7 @@
50
50
 
51
51
 
52
52
 
53
- 追記.
53
+ 追記1
54
54
 
55
55
  新規に作成したメアドへメール送信直後に、「journalctl --since=today」でログを取得しました。
56
56
 
@@ -88,6 +88,8 @@
88
88
 
89
89
 
90
90
 
91
+ 追記2.
92
+
91
93
  以下2つをインストールしました。
92
94
 
93
95
  yum -y install cyrus-sasl-md5

5

追記

2017/06/25 17:36

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -82,4 +82,38 @@
82
82
 
83
83
  ```
84
84
 
85
- 下の5行のうち、真ん中が赤字、他が黄文字でした。
85
+ 下の5行のうち、真ん中が赤字、他が黄文字でした。
86
+
87
+
88
+
89
+
90
+
91
+ 以下2つをインストールしました。
92
+
93
+ yum -y install cyrus-sasl-md5
94
+
95
+ yum -y install cyrus-sasl-plain
96
+
97
+
98
+
99
+ 参考=http://kajuhome.com/patio_thread/1118.shtml
100
+
101
+
102
+
103
+ すると、エラー(赤字と黄文字)がなくなり、以下のようになりましたが、まだ送受信できません。
104
+
105
+
106
+
107
+ ```ここに言語を入力
108
+
109
+ 27C05800AEA: from=<送信元メアド>, size=1232, nrcpt=1 (queue active)
110
+
111
+ disconnect from 送信元メアドのサーバドメイン[IPアドレス1]
112
+
113
+ 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)
114
+
115
+ 27C05800AEA: removed
116
+
117
+ statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 02:20:06
118
+
119
+ ```

4

内容若干修正

2017/06/25 17:36

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  追記.
54
54
 
55
- journalctl --since=todayで、新規に作成したメアドからの送信と受信後のログを取得しました。
55
+ 新規に作成したメアドへメール送信直後に、「journalctl --since=todayでログを取得しました。
56
56
 
57
57
  ```ここに言語を入力
58
58
 

3

ログ追加

2017/06/25 17:21

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -52,7 +52,7 @@
52
52
 
53
53
  追記.
54
54
 
55
- journalctl --since=todayで、以下ログを取得しました。
55
+ journalctl --since=todayで、新規に作成したメアドからの送信と受信後のログを取得しました。
56
56
 
57
57
  ```ここに言語を入力
58
58
 

2

ログを追加

2017/06/25 16:03

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -52,14 +52,34 @@
52
52
 
53
53
  追記.
54
54
 
55
- 以下コマンドを入れてログを取得しようと試みたのですが、すべて存在していせんでした。
55
+ journalctl --since=todayで、以下ログを取得しました。
56
56
 
57
- (ログの取得方法が違う?)
57
+ ```ここに言語を入力
58
58
 
59
- /var/log/messages
59
+ statistics: max connection rate 1/60s for (smtp:IPアドレス1) at Jun 26 00:26:00
60
60
 
61
- /var/log/maillog
61
+ statistics: max connection count 1 for (smtp:IPアドレス1) at Jun 26 00:26:00
62
62
 
63
- vi /etc/rsyslog.conf
63
+ statistics: max cache size 1 at Jun 26 00:26:00
64
64
 
65
+ Received disconnect from IPアドレス2: 11: [preauth]
66
+
67
+ Received disconnect from IPアドレス3: 11: [preauth]
68
+
65
- vi /etc/syslog.conf
69
+ connect from example.jp[IPアドレス1]
70
+
71
+
72
+
73
+ warning: SASL authentication failure: Internal Error -4 in server.c near line 1757
74
+
75
+ warning: xsasl_cyrus_server_get_mechanism_list: no mechanism available
76
+
77
+ fatal: no SASL authentication mechanisms
78
+
79
+ warning: process /usr/libexec/postfix/smtpd pid 1275 exit status 1
80
+
81
+ warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
82
+
83
+ ```
84
+
85
+ 下の5行のうち、真ん中が赤文字、他が黄文字でした。

1

ログの中身について

2017/06/25 16:00

投稿

coinbura
coinbura

スコア106

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,21 @@
45
45
  ヒントだけでもご教授いただければ幸いです。
46
46
 
47
47
  よろしくお願いいたします。
48
+
49
+
50
+
51
+
52
+
53
+ 追記.
54
+
55
+ 以下コマンドを入れてログを取得しようと試みたのですが、すべて存在していませんでした。
56
+
57
+ (ログの取得方法が違う?)
58
+
59
+ /var/log/messages
60
+
61
+ /var/log/maillog
62
+
63
+ vi /etc/rsyslog.conf
64
+
65
+ vi /etc/syslog.conf