質問編集履歴

3

追記

2021/12/08 23:30

投稿

Patao_program
Patao_program

スコア22

test CHANGED
File without changes
test CHANGED
@@ -108,4 +108,50 @@
108
108
 
109
109
 
110
110
 
111
+ プロバイダーに直接アクセス
112
+
113
+ ```
114
+
115
+ -> % openssl s_client --connect mail.gol.com:587
116
+
117
+ CONNECTED(00000003)
118
+
119
+ 140245503800640:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331:
120
+
121
+ ---
122
+
123
+ no peer certificate available
124
+
125
+ ---
126
+
127
+ No client certificate CA names sent
128
+
129
+ ---
130
+
131
+ SSL handshake has read 5 bytes and written 304 bytes
132
+
133
+ Verification: OK
134
+
135
+ ---
136
+
137
+ New, (NONE), Cipher is (NONE)
138
+
139
+ Secure Renegotiation IS NOT supported
140
+
141
+ Compression: NONE
142
+
143
+ Expansion: NONE
144
+
145
+ No ALPN negotiated
146
+
147
+ Early data was not sent
148
+
149
+ Verify return code: 0 (ok)
150
+
151
+ ---
152
+
153
+ ```
154
+
155
+
156
+
111
157
  OS Ubuntu Server 20.04.3 LTS

2

追記

2021/12/08 23:30

投稿

Patao_program
Patao_program

スコア22

test CHANGED
File without changes
test CHANGED
@@ -90,7 +90,7 @@
90
90
 
91
91
  ```
92
92
 
93
- openssl version
93
+ versions
94
94
 
95
95
  ```
96
96
 
@@ -98,4 +98,14 @@
98
98
 
99
99
  OpenSSL 1.1.1f 31 Mar 2020
100
100
 
101
+
102
+
103
+ -> % postconf | grep mail_version
104
+
105
+ mail_version = 3.4.13
106
+
101
107
  ```
108
+
109
+
110
+
111
+ OS Ubuntu Server 20.04.3 LTS

1

追記

2021/12/08 23:27

投稿

Patao_program
Patao_program

スコア22

test CHANGED
File without changes
test CHANGED
@@ -10,18 +10,92 @@
10
10
 
11
11
  ### 該当のソースコード
12
12
 
13
- mail.log
13
+ postconf -n
14
14
 
15
15
  ```
16
16
 
17
- Dec 8 21:27:49 patao-server postfix/smtp[36236]: SSL_connect error to mail.gol.com[203.216.5.115]:587: -1
17
+ broken_sasl_auth_clients = yes
18
18
 
19
+ command_directory = /usr/sbin
19
20
 
21
+ compatibility_level = 2
20
22
 
21
- Dec 8 21:27:49 patao-server postfix/smtp[36236]: EDC071A2C8A: to=<宛先>, relay=mail.gol.com[203.216.5.115]:587, delay=406, delays=406/0.03/0.12/0, dsn=4.7.5, status=deferred (Cannot start TLS: handshake failure)
23
+ daemon_directory = /usr/lib/postfix/sbin
22
24
 
25
+ data_directory = /var/lib/postfix
23
26
 
27
+ debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
24
28
 
29
+ inet_interfaces = all
30
+
31
+ inet_protocols = ipv4
32
+
33
+ mail_spool_directory = /var/spool/mail/
34
+
35
+ mailq_path = /usr/bin/mailq
36
+
37
+ masquerade_domains = patapatao.com
38
+
39
+ mydestination = $myhostname,$mydomain,localhost
40
+
41
+ mydomain = patapatao.com
42
+
43
+ myhostname = mail.patapatao.com
44
+
45
+ mynetworks = 127.0.0.0/8 192.168.10.0/24
46
+
47
+ myorigin = $mydomain
48
+
49
+ sendmail_path = /usr/sbin/sendmail
50
+
51
+ setgid_group = postdrop
52
+
53
+ smtp_sasl_auth_enable = yes
54
+
55
+ smtp_sasl_mechanism_filter = plain,login
56
+
57
+ smtp_sasl_password_maps = hash:/etc/postfix/relay_password
58
+
59
+ smtp_sasl_security_options = noanonymous
60
+
61
+ smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
62
+
63
+ smtp_tls_security_level = encrypt
64
+
65
+ smtp_tls_wrappermode = yes
66
+
67
+ smtpd_banner = $myhostname ESMTP $mail_name (PATAO Server)
68
+
69
+ smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
70
+
71
+ smtpd_sasl_auth_enable = yes
72
+
73
+ smtpd_sasl_security_options = noanonymous
74
+
25
- Dec 8 21:32:49 patao-server postfix/smtp[36306]: warning: TLS library problem: error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:331:
75
+ smtpd_tls_cert_file = /etc/letsencrypt/live/mail.patapatao.com/fullchain.pem
76
+
77
+ smtpd_tls_key_file = /etc/letsencrypt/live/mail.patapatao.com/privkey.pem
78
+
79
+ smtpd_tls_loglevel = 1
80
+
81
+ smtpd_tls_received_header = yes
82
+
83
+ smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache
84
+
85
+ smtpd_tls_session_cache_timeout = 3600s
86
+
87
+ transport_maps = hash:/etc/postfix/transport
88
+
89
+ unknown_local_recipient_reject_code = 550
26
90
 
27
91
  ```
92
+
93
+ openssl version
94
+
95
+ ```
96
+
97
+ -> % openssl version
98
+
99
+ OpenSSL 1.1.1f 31 Mar 2020
100
+
101
+ ```