for teratail questions 320475 postfixadmin&SSL OK
作成日時: 2021-02-10 18:27:44
公開終了: -
example.com と example.jp がpostfixadminとmysql(MariaDB)とリンクしている状態のバーチャルドメイン環境にて、
SSL/TSL環境が機能するかmainfoo@example.comアドレスにて確認。
smtpd_tls_cert_file = /etc/letsencrypt/live/mail.example.com/fullchain.pem
smtpd_tls_key_file = /etc/letsencrypt/live/mail.example.com/privkey.pem
を設定して利用した。
echo -en '\0mainfoo@example.com\0mainfoo_password' | base64
****mainfoo@example.com_base64_hash****
// POP 認証確認
# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [XCLIENT] Dovecot ready.
auth plain ****mainfoo@example.com_base64_hash****
+OK Logged in.
quit
+OK Logging out.
Connection closed by foreign host.
#
// POP 認証確認 (TLS)
# openssl s_client -connect localhost:995
CONNECTED(00000003)
(snip)
---
+OK [XCLIENT] Dovecot ready.
auth plain ****mainfoo@example.com_base64_hash****
+OK Logged in.
quit
+OK Logging out.
closed
#
// SMTP-Auth 認証確認 (TLS)
# openssl s_client -connect localhost:587 -starttls smtp
CONNECTED(00000003)
(snip)
---
250 DSN
auth plain ****mainfoo@example.com_base64_hash****
235 2.7.0 Authentication successful
500 5.5.2 Error: bad syntax
quit
221 2.0.0 Bye
closed
#
お知らせ
実務でも趣味でも役に立つ
多機能Webツールサイト【無限ツールズ】で、日常をちょっと便利にしちゃいましょう!
▶無限ツールズ