SMTP client
NAS4Free-9.2.0.1.972 等のメール送信用に使われている。
NAS4Free-9.2.0.1.972 等のメール送信用に使われている。
- id:anatooのブログ / 2012-03-06: SMTPサーバを入れたくないけどメールは送りたい時に重宝するMSMTP
- Mutt + msmtpでSMTP認証
- google: msmtp
-S オプションを用いる。
署名元の公開鍵がある場合は
# SMTP の場合 msmtp --host=SMTP_SERVER -S # SMTPS (暗黙の SMTP over SSL, implicit mode) の場合 msmtp --host=SMTP_SERVER --port=465 -S --tls=on --tls-starttls=off --tls-trust-file=/etc/ssl/certs/ca-certificates.crt # SMTP with STARTTLS (明示的な SMTP over SSL, explicit mode) の場合 msmtp --host=SMTP_SERVER --port=587 -S --tls=on --tls-starttls=on --tls-trust-file=/etc/ssl/certs/ca-certificates.crtサーバーの SSL 証明書に署名した認証局(CA)の公開鍵がない場合、
- --tls-trust-file=/etc/ssl/certs/ca-certificates.crt
- --tls-certcheck=off
- --tls-fingerprint=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
署名元の公開鍵がある場合は
- --tls-trust-file=PATH_TO_CERTFILE
~/.msmtprc を以下のように設定する
account default host smtp.example.com port 465 user myusername password mypassword from myusername@example.com tls on tls_starttls off tls_trust_file /etc/ssl/certs/ca-certificates.crt #tls_certcheck off auth on logfile ~/.msmtp.log正規認証局による署名のないSSL証明書の場合 tls_certcheck off をアンコメントする
~/.msmtprc を以下のように設定する
account default host smtp.example.com port 587 user myusername password mypassword from myusername@example.com tls on tls_starttls on tls_trust_file /etc/ssl/certs/ca-certificates.crt #tls_certcheck off auth on logfile ~/.msmtp.log正規認証局による署名のないSSL証明書の場合 tls_certcheck off をアンコメントする
タグ
コメントをかく