質問編集履歴
10
saslauthdの状態 追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -147,4 +147,10 @@
|
|
147
147
|
userdb {
|
148
148
|
driver = passwd
|
149
149
|
}
|
150
|
+
```
|
151
|
+
|
152
|
+
⭐ saslauthdの状態
|
153
|
+
```
|
154
|
+
[root@サーバー名 private]# testsaslauthd -u ユーザー名 -p パスワード -s smtp
|
155
|
+
0: OK "Success."
|
150
156
|
```
|
9
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -147,38 +147,4 @@
|
|
147
147
|
userdb {
|
148
148
|
driver = passwd
|
149
149
|
}
|
150
|
-
```
|
151
|
-
|
152
|
-
|
153
|
-
皆様たくさんの回答ありがとうございます。皆様からの情報を元に調査した所、
|
154
|
-
saslのエラーはおそらく出なくなり、残りは
|
155
|
-
```
|
156
|
-
[root@サーバー名 private]# smtp-server: 554 5.7.1 <localhost[::1]>: Client host rejected: Access denied
|
157
|
-
"/root/dead.letter" 11/380
|
158
|
-
. . . message not sent.
|
159
|
-
[root@サーバー名 private]# tail -n 100 /var/log/maillog
|
160
|
-
Dec 30 17:35:31 サーバー名 postfix/postfix-script[5400]: stopping the Postfix mail system
|
161
|
-
Dec 30 17:35:31 サーバー名 postfix/master[5364]: terminating on signal 15
|
162
|
-
Dec 30 17:35:31 サーバー名 postfix/postfix-script[5477]: starting the Postfix mail system
|
163
|
-
Dec 30 17:35:31 サーバー名 postfix/master[5479]: daemon started -- version 2.10.1, configuration /etc/postfix
|
164
|
-
Dec 30 17:35:31 サーバー名 dovecot: imap(webmaster): Debug: INBOX: Mailbox opened because: SELECT
|
165
|
-
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: error: open database /etc/postfix/access.db: No such file or directory
|
166
|
-
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: connect from localhost[::1]
|
167
|
-
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
|
168
|
-
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/lib20_auth_var_expand_crypt.so
|
169
|
-
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
|
170
|
-
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
|
171
|
-
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: auth client connected (pid=0)
|
172
|
-
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <localhost[::1]>: Client host rejected: Access denied; from=<webmaster@サーバー名.net> to=<メアド> proto=SMTP helo=<ホスト名>
|
173
|
-
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: lost connection after RCPT from localhost[::1]
|
174
|
-
```
|
175
|
-
というエラーのみになりました。
|
176
|
-
postfix側で
|
177
|
-
inet_protocols = all
|
178
|
-
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
179
|
-
|
180
|
-
|
181
|
-
dovecot側で
|
182
|
-
listen = *, ::
|
183
|
-
|
184
|
-
という設定は入れていますが、なぜかアクセス拒否されています。。。どうすればよいでしょうか?
|
150
|
+
```
|
8
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -173,6 +173,12 @@
|
|
173
173
|
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: lost connection after RCPT from localhost[::1]
|
174
174
|
```
|
175
175
|
というエラーのみになりました。
|
176
|
+
postfix側で
|
176
177
|
inet_protocols = all
|
177
178
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
179
|
+
|
180
|
+
|
181
|
+
dovecot側で
|
182
|
+
listen = *, ::
|
183
|
+
|
178
184
|
という設定は入れていますが、なぜかアクセス拒否されています。。。どうすればよいでしょうか?
|
7
進展
title
CHANGED
File without changes
|
body
CHANGED
@@ -147,4 +147,32 @@
|
|
147
147
|
userdb {
|
148
148
|
driver = passwd
|
149
149
|
}
|
150
|
-
```
|
150
|
+
```
|
151
|
+
|
152
|
+
|
153
|
+
皆様たくさんの回答ありがとうございます。皆様からの情報を元に調査した所、
|
154
|
+
saslのエラーはおそらく出なくなり、残りは
|
155
|
+
```
|
156
|
+
[root@サーバー名 private]# smtp-server: 554 5.7.1 <localhost[::1]>: Client host rejected: Access denied
|
157
|
+
"/root/dead.letter" 11/380
|
158
|
+
. . . message not sent.
|
159
|
+
[root@サーバー名 private]# tail -n 100 /var/log/maillog
|
160
|
+
Dec 30 17:35:31 サーバー名 postfix/postfix-script[5400]: stopping the Postfix mail system
|
161
|
+
Dec 30 17:35:31 サーバー名 postfix/master[5364]: terminating on signal 15
|
162
|
+
Dec 30 17:35:31 サーバー名 postfix/postfix-script[5477]: starting the Postfix mail system
|
163
|
+
Dec 30 17:35:31 サーバー名 postfix/master[5479]: daemon started -- version 2.10.1, configuration /etc/postfix
|
164
|
+
Dec 30 17:35:31 サーバー名 dovecot: imap(webmaster): Debug: INBOX: Mailbox opened because: SELECT
|
165
|
+
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: error: open database /etc/postfix/access.db: No such file or directory
|
166
|
+
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: connect from localhost[::1]
|
167
|
+
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth
|
168
|
+
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/lib20_auth_var_expand_crypt.so
|
169
|
+
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so
|
170
|
+
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: Read auth token secret from /var/run/dovecot/auth-token-secret.dat
|
171
|
+
Dec 30 17:35:33 サーバー名 dovecot: auth: Debug: auth client connected (pid=0)
|
172
|
+
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: NOQUEUE: reject: RCPT from localhost[::1]: 554 5.7.1 <localhost[::1]>: Client host rejected: Access denied; from=<webmaster@サーバー名.net> to=<メアド> proto=SMTP helo=<ホスト名>
|
173
|
+
Dec 30 17:35:33 サーバー名 postfix/smtpd[5485]: lost connection after RCPT from localhost[::1]
|
174
|
+
```
|
175
|
+
というエラーのみになりました。
|
176
|
+
inet_protocols = all
|
177
|
+
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
178
|
+
という設定は入れていますが、なぜかアクセス拒否されています。。。どうすればよいでしょうか?
|
6
OS表示の見直し
title
CHANGED
File without changes
|
body
CHANGED
@@ -98,7 +98,7 @@
|
|
98
98
|
|
99
99
|
[root@サーバー名 lib]# dovecot -n
|
100
100
|
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
|
101
|
-
# OS:
|
101
|
+
# OS: CentOS Linux release 7.5
|
102
102
|
# Hostname: ホスト名
|
103
103
|
auth_debug = yes
|
104
104
|
auth_mechanisms = plain login
|
5
見栄え修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -2,13 +2,14 @@
|
|
2
2
|
|
3
3
|
[ユーザー名]@[ドメイン名]宛にgmailからメールを送っても、メールが届きません。(特にエラーで帰ってきている感じもない、タイムアウトで24時間かかる可能性はありますが...)
|
4
4
|
mailコマンドでメールを発出すると失敗します。
|
5
|
-
( echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r ユーザー名@ドメイン 自分のユーザー名@gmail.com -v)
|
5
|
+
( echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r ユーザー名@ドメイン 自分のユーザー名@gmail.com -v で送信)
|
6
6
|
ログを見ると
|
7
|
-
|
7
|
+
```
|
8
8
|
Dec 29 22:13:02 train-directory postfix/smtpd[27064]: fatal: no SASL authentication mechanisms
|
9
9
|
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: process /usr/libexec/postfix/smtpd pid 24888 exit status 1
|
10
10
|
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
11
|
-
|
11
|
+
```
|
12
|
+
となっています。
|
12
13
|
no SASL authentication mechanismsで止まっていますが、
|
13
14
|
https://www.ipentec.com/document/linux-postfix-warning-xsasl-cyrus-server-get-mechanism-list-no-mechanism-available の対処などは確認済みです。
|
14
15
|
思いつく対処策はなくなりました。どんな設定不備が考えられますか?
|
@@ -19,20 +20,23 @@
|
|
19
20
|
postconf | grep mail_version mail_version = 2.10.1
|
20
21
|
|
21
22
|
⭐ saslauthd のステータス
|
22
|
-
|
23
|
+
```
|
23
24
|
[root@サーバー名 ユーザー名]# systemctl -l status saslauthd
|
24
25
|
● saslauthd.service - SASL authentication daemon.
|
25
26
|
Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; vendor preset: disabled)
|
26
27
|
Active: active (running) since 土 2020-12-26 18:57:55 JST; 2 days ago
|
27
|
-
|
28
|
+
```
|
28
29
|
⭐ postfix のステータス
|
30
|
+
```
|
29
31
|
[root@サーバー名 ユーザー名]# systemctl status postfix
|
30
32
|
● postfix.service - Postfix Mail Transport Agent
|
31
33
|
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
|
32
34
|
Active: active (running) since 火 2020-12-29 18:43:49 JST; 1min 18s ago
|
33
|
-
|
35
|
+
```
|
34
36
|
・さくらのVPS提供パケットフィルタの無効化は確認済
|
35
37
|
|
38
|
+
⭐ ファイアーウォールの設定
|
39
|
+
```
|
36
40
|
>>[root@サーバー名 ユーザー名]# firewall-cmd --permanent --add-service=smtp
|
37
41
|
Warning: ALREADY_ENABLED: smtp
|
38
42
|
success
|
@@ -50,8 +54,10 @@
|
|
50
54
|
source-ports:
|
51
55
|
icmp-blocks:
|
52
56
|
rich rules:
|
57
|
+
```
|
53
58
|
|
54
|
-
|
59
|
+
⭐ postfix/dovecotの設定
|
60
|
+
```
|
55
61
|
[root@サーバー名 lib]# postconf -n
|
56
62
|
alias_database = hash:/etc/aliases
|
57
63
|
alias_maps = hash:/etc/aliases
|
@@ -140,4 +146,5 @@
|
|
140
146
|
ssl_key = # hidden, use -P to show it
|
141
147
|
userdb {
|
142
148
|
driver = passwd
|
143
|
-
}
|
149
|
+
}
|
150
|
+
```
|
4
見やすく修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,77 +1,23 @@
|
|
1
1
|
centos7上でメールサーバーを構築しています。
|
2
2
|
|
3
3
|
[ユーザー名]@[ドメイン名]宛にgmailからメールを送っても、メールが届きません。(特にエラーで帰ってきている感じもない、タイムアウトで24時間かかる可能性はありますが...)
|
4
|
-
|
4
|
+
mailコマンドでメールを発出すると失敗します。
|
5
|
+
( echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r ユーザー名@ドメイン 自分のユーザー名@gmail.com -v)
|
6
|
+
ログを見ると
|
5
7
|
|
8
|
+
Dec 29 22:13:02 train-directory postfix/smtpd[27064]: fatal: no SASL authentication mechanisms
|
9
|
+
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: process /usr/libexec/postfix/smtpd pid 24888 exit status 1
|
10
|
+
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
11
|
+
|
12
|
+
no SASL authentication mechanismsで止まっていますが、
|
13
|
+
https://www.ipentec.com/document/linux-postfix-warning-xsasl-cyrus-server-get-mechanism-list-no-mechanism-available の対処などは確認済みです。
|
14
|
+
思いつく対処策はなくなりました。どんな設定不備が考えられますか?
|
15
|
+
|
6
16
|
環境
|
7
17
|
CentOS Linux release 7.5.1804 (Core)
|
8
18
|
dovecot --version 2.2.36
|
9
19
|
postconf | grep mail_version mail_version = 2.10.1
|
10
20
|
|
11
|
-
|
12
|
-
```
|
13
|
-
/var/log/maillog
|
14
|
-
Dec 27 14:04:02 *** postfix/master[24497]: daemon started -- version 2.10.1, configuration /etc/postfix
|
15
|
-
Dec 27 14:04:19 *** dovecot: imap-login: Login: user=<[ユーザー名]>, method=PLAIN, rip=[IPアドレス], lip=[IPアドレス], mpid=24505, TLS, session=<****************/RZqy>
|
16
|
-
```
|
17
|
-
|
18
|
-
メールログ上には、ログインのログは確認(ログイン成功等)できますが、メールが届いた系のログは検出出来ていません。
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
ポート587や143で接続してみましたが以下の通り問題ありません。
|
23
|
-
|
24
|
-
```
|
25
|
-
MacBook:~ ユーザー名$ curl --verbose telnet://[ドメイン名].net:587
|
26
|
-
* Trying [IPアドレス]...
|
27
|
-
* TCP_NODELAY set
|
28
|
-
* Connected to train-directory.net ([IPアドレス]) port 587 (#0)
|
29
|
-
|
30
|
-
MacBook:~ ユーザー名$ curl --verbose telnet://[ドメイン名]:143
|
31
|
-
* Trying [IPアドレス]...
|
32
|
-
* TCP_NODELAY set
|
33
|
-
* Connected to [ドメイン名] ([IPアドレス]) port 143 (#0)
|
34
|
-
|
35
|
-
```
|
36
|
-
|
37
|
-
コメントを元に追加で確認しました。
|
38
|
-
```
|
39
|
-
# vim /etc/aliases
|
40
|
-
#webmaster記載のある行をコメントアウト実施
|
41
|
-
81 www: webmaster
|
42
|
-
82 #webmaster: root
|
43
|
-
|
44
|
-
# newaliases #設定を反映
|
45
|
-
# systemctl restart dovecot
|
46
|
-
# systemctl restart postfix
|
47
|
-
|
48
|
-
この状態でメールを webmaster@ドメイン名 宛に追加で送りましたが、
|
49
|
-
|
50
|
-
# ls /home/webmaster/Maildir/new
|
51
|
-
# ls /home/webmaster/Maildir/cur
|
52
|
-
|
53
|
-
がまだ空となっています。
|
54
|
-
同様に nanohaというアカウントを作りメール送付、フォルダの状況見てみましたが空でした。
|
55
|
-
```
|
56
|
-
|
57
|
-
|
58
|
-
コメントを元に更に追加調査しました。
|
59
|
-
```
|
60
|
-
echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r [ユーザー名1]@[ドメイン] [適当なアドレス]@gmail.com
|
61
|
-
```
|
62
|
-
|
63
|
-
そうすると/var/log/maillogに以下のログが残りました。
|
64
|
-
```
|
65
|
-
Dec 27 18:56:52 [サーバー名] postfix/smtpd[26431]: warning: SASL per-process initialization failed: error when parsing configuration file
|
66
|
-
Dec 27 18:56:52 [サーバー名] postfix/smtpd[26431]: fatal: SASL per-process initialization failed
|
67
|
-
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: process /usr/libexec/postfix/smtpd pid 26431 exit status 1
|
68
|
-
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
69
|
-
```
|
70
|
-
|
71
|
-
|
72
|
-
更にコメント等を元に修正した所以下の状況で止まっています。
|
73
|
-
|
74
|
-
|
75
21
|
⭐ saslauthd のステータス
|
76
22
|
|
77
23
|
[root@サーバー名 ユーザー名]# systemctl -l status saslauthd
|
@@ -105,13 +51,93 @@
|
|
105
51
|
icmp-blocks:
|
106
52
|
rich rules:
|
107
53
|
|
108
|
-
mailコマンドでメールを発出すると失敗します。
|
109
|
-
( echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r ユーザー名@ドメイン 自分のユーザー名@gmail.com -v)
|
110
|
-
ログを見ると
|
111
54
|
|
55
|
+
[root@サーバー名 lib]# postconf -n
|
56
|
+
alias_database = hash:/etc/aliases
|
57
|
+
alias_maps = hash:/etc/aliases
|
58
|
+
broken_sasl_auth_clients = yes
|
59
|
+
command_directory = /usr/sbin
|
112
|
-
|
60
|
+
config_directory = /etc/postfix
|
113
|
-
|
61
|
+
daemon_directory = /usr/libexec/postfix
|
62
|
+
data_directory = /var/lib/postfix
|
63
|
+
debug_peer_level = 2
|
114
|
-
|
64
|
+
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
|
65
|
+
disable_vrfy_command = yes
|
66
|
+
home_mailbox = Maildir/
|
67
|
+
html_directory = no
|
68
|
+
inet_interfaces = all
|
69
|
+
inet_protocols = all
|
70
|
+
mail_owner = postfix
|
71
|
+
mailq_path = /usr/bin/mailq.postfix
|
72
|
+
manpage_directory = /usr/share/man
|
73
|
+
mydestination = $myhostname, localhost.$mydomain, localhost
|
74
|
+
myhostname = ドメイン名
|
75
|
+
mynetworks = 127.0.0.0/8
|
76
|
+
mynetworks_style = host
|
77
|
+
newaliases_path = /usr/bin/newaliases.postfix
|
78
|
+
queue_directory = /var/spool/postfix
|
79
|
+
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
|
80
|
+
sample_directory = /usr/share/doc/postfix-2.10.1/samples
|
81
|
+
sendmail_path = /usr/sbin/sendmail.postfix
|
82
|
+
setgid_group = postdrop
|
83
|
+
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated, reject_unauth_destination
|
84
|
+
smtpd_sasl_auth_enable = yes
|
85
|
+
smtpd_sasl_local_domain = $myhostname
|
86
|
+
smtpd_sasl_path = inet:127.0.0.1:指定したポート番号※1
|
87
|
+
smtpd_sasl_security_options = noanonymous, noplaintext
|
88
|
+
smtpd_sasl_tls_security_options = noanonymous
|
89
|
+
smtpd_sasl_type = dovecot
|
90
|
+
unknown_local_recipient_reject_code = 550
|
115
91
|
|
92
|
+
|
93
|
+
[root@サーバー名 lib]# dovecot -n
|
94
|
+
# 2.2.36 (1f10bfa63): /etc/dovecot/dovecot.conf
|
95
|
+
# OS: Linux 3.10.0-862.14.4.el7.x86_64 x86_64 CentOS Linux release 7.5.1804 (Core)
|
96
|
+
# Hostname: ホスト名
|
97
|
+
auth_debug = yes
|
116
|
-
|
98
|
+
auth_mechanisms = plain login
|
99
|
+
auth_verbose_passwords = yes
|
100
|
+
disable_plaintext_auth = no
|
101
|
+
first_valid_uid = 1000
|
102
|
+
mail_debug = yes
|
103
|
+
mail_location = maildir:~/Maildir
|
104
|
+
mbox_write_locks = fcntl
|
105
|
+
namespace inbox {
|
106
|
+
inbox = yes
|
107
|
+
location =
|
108
|
+
mailbox Drafts {
|
109
|
+
special_use = \Drafts
|
110
|
+
}
|
111
|
+
mailbox Junk {
|
112
|
+
special_use = \Junk
|
113
|
+
}
|
114
|
+
mailbox Sent {
|
115
|
+
special_use = \Sent
|
116
|
+
}
|
117
|
+
mailbox "Sent Messages" {
|
118
|
+
special_use = \Sent
|
119
|
+
}
|
120
|
+
mailbox Trash {
|
121
|
+
special_use = \Trash
|
122
|
+
}
|
123
|
+
prefix =
|
124
|
+
}
|
125
|
+
passdb {
|
126
|
+
driver = pam
|
127
|
+
}
|
128
|
+
protocols = imap pop3
|
129
|
+
service auth {
|
130
|
+
inet_listener {
|
131
|
+
port = 指定したポート番号※1
|
132
|
+
}
|
133
|
+
unix_listener auth-userdb {
|
134
|
+
group = postfix
|
135
|
+
mode = 0660
|
136
|
+
user = postfix
|
137
|
+
}
|
138
|
+
}
|
117
|
-
|
139
|
+
ssl_cert = </etc/letsencrypt/live/ドメイン名/fullchain.pem
|
140
|
+
ssl_key = # hidden, use -P to show it
|
141
|
+
userdb {
|
142
|
+
driver = passwd
|
143
|
+
}
|
3
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -67,4 +67,51 @@
|
|
67
67
|
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: process /usr/libexec/postfix/smtpd pid 26431 exit status 1
|
68
68
|
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
69
69
|
```
|
70
|
+
|
71
|
+
|
72
|
+
更にコメント等を元に修正した所以下の状況で止まっています。
|
73
|
+
|
74
|
+
|
75
|
+
⭐ saslauthd のステータス
|
76
|
+
|
77
|
+
[root@サーバー名 ユーザー名]# systemctl -l status saslauthd
|
78
|
+
● saslauthd.service - SASL authentication daemon.
|
79
|
+
Loaded: loaded (/usr/lib/systemd/system/saslauthd.service; enabled; vendor preset: disabled)
|
80
|
+
Active: active (running) since 土 2020-12-26 18:57:55 JST; 2 days ago
|
81
|
+
|
82
|
+
⭐ postfix のステータス
|
83
|
+
[root@サーバー名 ユーザー名]# systemctl status postfix
|
84
|
+
● postfix.service - Postfix Mail Transport Agent
|
85
|
+
Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
|
86
|
+
Active: active (running) since 火 2020-12-29 18:43:49 JST; 1min 18s ago
|
87
|
+
|
88
|
+
・さくらのVPS提供パケットフィルタの無効化は確認済
|
89
|
+
|
90
|
+
>>[root@サーバー名 ユーザー名]# firewall-cmd --permanent --add-service=smtp
|
91
|
+
Warning: ALREADY_ENABLED: smtp
|
92
|
+
success
|
93
|
+
[root@サーバー名 ユーザー名]# firewall-cmd --list-all
|
94
|
+
public (active)
|
95
|
+
target: default
|
96
|
+
icmp-block-inversion: no
|
97
|
+
interfaces: eth0 eth1
|
98
|
+
sources:
|
99
|
+
services: dhcpv6-client http https mysql nfs imap pop3 smtp-submission
|
70
|
-
|
100
|
+
ports: 意図的に開けているポート/tcp
|
101
|
+
protocols:
|
102
|
+
masquerade: no
|
103
|
+
forward-ports:
|
104
|
+
source-ports:
|
105
|
+
icmp-blocks:
|
106
|
+
rich rules:
|
107
|
+
|
108
|
+
mailコマンドでメールを発出すると失敗します。
|
109
|
+
( echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r ユーザー名@ドメイン 自分のユーザー名@gmail.com -v)
|
110
|
+
ログを見ると
|
111
|
+
|
112
|
+
Dec 29 22:13:02 train-directory postfix/smtpd[27064]: fatal: no SASL authentication mechanisms
|
113
|
+
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: process /usr/libexec/postfix/smtpd pid 24888 exit status 1
|
114
|
+
Dec 29 18:37:48 train-directory postfix/master[24678]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
115
|
+
|
116
|
+
no SASL authentication mechanismsで止まっていますが、
|
117
|
+
https://www.ipentec.com/document/linux-postfix-warning-xsasl-cyrus-server-get-mechanism-list-no-mechanism-available の対処などは確認済みです。
|
2
追加調査
title
CHANGED
File without changes
|
body
CHANGED
@@ -52,7 +52,19 @@
|
|
52
52
|
|
53
53
|
がまだ空となっています。
|
54
54
|
同様に nanohaというアカウントを作りメール送付、フォルダの状況見てみましたが空でした。
|
55
|
+
```
|
55
56
|
|
56
57
|
|
58
|
+
コメントを元に更に追加調査しました。
|
59
|
+
```
|
60
|
+
echo "テストメール(本文)" | mail -s "テスト(件名)" -S smtp=smtp://localhost:587 -r [ユーザー名1]@[ドメイン] [適当なアドレス]@gmail.com
|
61
|
+
```
|
57
62
|
|
63
|
+
そうすると/var/log/maillogに以下のログが残りました。
|
58
|
-
```
|
64
|
+
```
|
65
|
+
Dec 27 18:56:52 [サーバー名] postfix/smtpd[26431]: warning: SASL per-process initialization failed: error when parsing configuration file
|
66
|
+
Dec 27 18:56:52 [サーバー名] postfix/smtpd[26431]: fatal: SASL per-process initialization failed
|
67
|
+
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: process /usr/libexec/postfix/smtpd pid 26431 exit status 1
|
68
|
+
Dec 27 18:56:53 [サーバー名] postfix/master[25840]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
|
69
|
+
```
|
70
|
+
現在上記について調査を進めていますがわかりません...
|
1
質問について追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,4 +32,27 @@
|
|
32
32
|
* TCP_NODELAY set
|
33
33
|
* Connected to [ドメイン名] ([IPアドレス]) port 143 (#0)
|
34
34
|
|
35
|
+
```
|
36
|
+
|
37
|
+
コメントを元に追加で確認しました。
|
38
|
+
```
|
39
|
+
# vim /etc/aliases
|
40
|
+
#webmaster記載のある行をコメントアウト実施
|
41
|
+
81 www: webmaster
|
42
|
+
82 #webmaster: root
|
43
|
+
|
44
|
+
# newaliases #設定を反映
|
45
|
+
# systemctl restart dovecot
|
46
|
+
# systemctl restart postfix
|
47
|
+
|
48
|
+
この状態でメールを webmaster@ドメイン名 宛に追加で送りましたが、
|
49
|
+
|
50
|
+
# ls /home/webmaster/Maildir/new
|
51
|
+
# ls /home/webmaster/Maildir/cur
|
52
|
+
|
53
|
+
がまだ空となっています。
|
54
|
+
同様に nanohaというアカウントを作りメール送付、フォルダの状況見てみましたが空でした。
|
55
|
+
|
56
|
+
|
57
|
+
|
35
58
|
```
|