質問編集履歴

1

表記が乱れていたので修正しました。

2023/02/14 05:17

投稿

naga_kt
naga_kt

スコア21

test CHANGED
File without changes
test CHANGED
@@ -5,9 +5,9 @@
5
5
  ### 前提
6
6
  ●CentOSとpostfixのバージョンは以下です。postfixはプレインストールされていたものです。
7
7
 
8
- # cat /etc/redhat-release
8
+ $ cat /etc/redhat-release
9
9
  CentOS Linux release 7.5.1804 (Core)
10
- # postconf | grep mail_version
10
+ $ postconf | grep mail_version
11
11
  mail_version = 2.10.1
12
12
  milter_macro_v = $mail_name $mail_version
13
13
 
@@ -20,36 +20,36 @@
20
20
 
21
21
  ●/etc/postfix/main.cfの内容をオリジナルから以下のように変更しました。
22
22
 
23
- # diff main.cf main.cf-org
23
+ $ diff main.cf main.cf-org
24
24
  113c113
25
- < inet_interfaces = all
25
+  < inet_interfaces = all
26
- ---
26
+  ---
27
- > #inet_interfaces = all
27
+  > #inet_interfaces = all
28
- 116c116
28
+  116c116
29
- < #inet_interfaces = localhost
29
+  < #inet_interfaces = localhost
30
- ---
30
+  ---
31
- > inet_interfaces = localhost
31
+  > inet_interfaces = localhost
32
- 318d317
32
+  318d317
33
- < relayhost = [smtp.xxxxxx.co.jp]:587
33
+  < relayhost = [smtp.xxxxxx.co.jp]:587
34
- 681,687d679
34
+  681,687d679
35
- <
35
+  <
36
- < smtp_use_tls = yes
36
+  < smtp_use_tls = yes
37
- < smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
37
+  < smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
38
- < smtpd_sasl_auth_enable = yes
38
+  < smtpd_sasl_auth_enable = yes
39
- < smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
39
+  < smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
40
- < smtp_sasl_mechanism_filter = cram-md5, plain, login
40
+  < smtp_sasl_mechanism_filter = cram-md5, plain, login
41
41
 
42
42
  ●/etc/postfix/sasl_passwdを以下のように作りました。
43
43
 
44
- # echo "[smtp.xxxxxx.co.jp]:587 zzzz@xxxxxx.co.jp:password" > /etc/postfix/sasl_passwd
44
+ $ echo "[smtp.xxxxxx.co.jp]:587 zzzz@xxxxxx.co.jp:password" > /etc/postfix/sasl_passwd
45
- # chmod 600 /etc/postfix/sasl_passwd
45
+ $ chmod 600 /etc/postfix/sasl_passwd
46
- # postmap hash:/etc/postfix/sasl_passwd
46
+ $ postmap hash:/etc/postfix/sasl_passwd
47
47
 
48
48
  ●systemctl restart postfixを実行して再起動しました。
49
49
 
50
50
  ●動作確認として以下を実行しました。
51
51
 
52
- # echo "testtest" | mail -s "test" zzzz@xxxxxx.co.jp
52
+ $ echo "testtest" | mail -s "test" zzzz@xxxxxx.co.jp
53
53
 
54
54
  ### 発生している問題・エラーメッセージ
55
55
  /var/log/maillogが以下のようになります。