回答編集履歴
5
又編集
test
CHANGED
@@ -103,3 +103,7 @@
|
|
103
103
|
再読み込み
|
104
104
|
|
105
105
|
/etc/rc.d/init.d/postfix reload
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
参考情報元が古かったので現在はsystemctlですかね↑
|
4
実に面倒くさい
test
CHANGED
@@ -76,7 +76,7 @@
|
|
76
76
|
|
77
77
|
smtp_sasl_auth_enable = yes
|
78
78
|
|
79
|
-
smtp_sasl_password_maps = hash:/etc/postfix/
|
79
|
+
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
|
80
80
|
|
81
81
|
smtp_sasl_tls_security_options = noanonymous
|
82
82
|
|
3
ああめんどくさ
test
CHANGED
@@ -86,13 +86,11 @@
|
|
86
86
|
|
87
87
|
|
88
88
|
|
89
|
-
/etc/posfix/
|
89
|
+
/etc/posfix/relay_passwordに以下を記載
|
90
90
|
|
91
91
|
|
92
92
|
|
93
93
|
[smtp.gmail.com]:587 GMAILメールアドレス:パスワード
|
94
|
-
|
95
|
-
/etc/posfix/relay_password
|
96
94
|
|
97
95
|
|
98
96
|
|
2
詳細解説、
test
CHANGED
@@ -44,6 +44,10 @@
|
|
44
44
|
|
45
45
|
上記のアドバイスはハードルが高いでしょう。
|
46
46
|
|
47
|
+
例えば、下記で解決するかもしれません。
|
48
|
+
|
49
|
+
※あなたの環境で不明点も多いし、ま、断言できませんが。
|
50
|
+
|
47
51
|
|
48
52
|
|
49
53
|
GMAILをリレーサーバにする場合:
|
@@ -55,6 +59,14 @@
|
|
55
59
|
Postfixの設定
|
56
60
|
|
57
61
|
Postfix設定ファイル(/etc/postfix.main.cf)に以下を設定します
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
myorigin = あなたのドメイン
|
66
|
+
|
67
|
+
myhostname = あなたのメールサーバ.あなたのドメイン。
|
68
|
+
|
69
|
+
|
58
70
|
|
59
71
|
|
60
72
|
|
@@ -74,13 +86,13 @@
|
|
74
86
|
|
75
87
|
|
76
88
|
|
77
|
-
/etc/posfix/sasl
|
89
|
+
/etc/posfix/saslのpasswordです
|
78
90
|
|
79
91
|
|
80
92
|
|
81
93
|
[smtp.gmail.com]:587 GMAILメールアドレス:パスワード
|
82
94
|
|
83
|
-
/etc/posfix/
|
95
|
+
/etc/posfix/relay_password
|
84
96
|
|
85
97
|
|
86
98
|
|
1
初心者向け追記
test
CHANGED
@@ -33,3 +33,63 @@
|
|
33
33
|
relayhostの行は消すか、別名でリレー用のサーバを立てる
|
34
34
|
|
35
35
|
位のことはしないといけないでしょう。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
---------------------------------------------
|
40
|
+
|
41
|
+
追記:
|
42
|
+
|
43
|
+
postfixに慣れていない人には、
|
44
|
+
|
45
|
+
上記のアドバイスはハードルが高いでしょう。
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
GMAILをリレーサーバにする場合:
|
50
|
+
|
51
|
+
yum install cyrus-*
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
Postfixの設定
|
56
|
+
|
57
|
+
Postfix設定ファイル(/etc/postfix.main.cf)に以下を設定します
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
relayhost = [smtp.gmail.com]:587
|
62
|
+
|
63
|
+
smtp_use_tls = yes
|
64
|
+
|
65
|
+
smtp_sasl_auth_enable = yes
|
66
|
+
|
67
|
+
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
|
68
|
+
|
69
|
+
smtp_sasl_tls_security_options = noanonymous
|
70
|
+
|
71
|
+
smtp_sasl_mechanism_filter = plain
|
72
|
+
|
73
|
+
smtp_tls_CApath = /etc/pki/tls/certs/ca-bundle.crt
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
/etc/posfix/sasl_passwordです
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
[smtp.gmail.com]:587 GMAILメールアドレス:パスワード
|
82
|
+
|
83
|
+
/etc/posfix/sasl_password
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
反映
|
88
|
+
|
89
|
+
postmap hash:/etc/postfix/relay_password
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
再読み込み
|
94
|
+
|
95
|
+
/etc/rc.d/init.d/postfix reload
|