LoginSignup
0
0

SESのSMTPでコマンドラインからメール送信

Posted at
Postfix のインストール
dnf --assumeyes install postfix
systemctl --now enable postfix
S-nail のインストール

S-nail (または S-mailx) は2010年頃に開発が終了した Heirloom mailx のフォーク。1 2

dnf --assumeyes install s-nail
.mailrc の作成
~/.mailrc
set v15-compat
set smtp-use-starttls
set smtp-auth=login
set smtp=smtp://email-smtp.us-west-2.amazonaws.com:587
set smtp-auth-user=AAAAAAAAAAAAAAAAAAAA
set smtp-auth-password=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
set ssl-verify=ignore
set from=from@example.jp
set nss-config-dir=/etc/pki/nssdb/
メール送信
echo "message" | s-nail -v -s 'Subject' to@example.jp

3

  1. S-mailx は、2010年頃に開発が終了した Heirloom mailx のアクティブなフォークです。 S-mailx は Heirloom mailx の機能のほとんどを維持し、独自の機能を多数追加しています。継承された POP3 と IMAP の機能を削除する計画もありましたが、これらの機能は人気のある要求のために保持されています。 (S-mailx is an active fork of Heirloom mailx which ceased development around 2010. S-mailx has preserved most of the latter's feature set and added many of it's own. While there were plans to remove the inheirited POP3 and IMAP functionality these features have been retained due to popular demand, though a future re-write is likely.)Hacking - www.sdaoden.eu

  2. s-nail メール処理システムが、mailx ユーティリティーに置き換わりました。s-nail ユーティリティーは mailx と互換性があり、新機能が数多く追加されました。mailx パッケージはアップストリームで維持されなくなりました。4.6. インフラストラクチャーサービス Red Hat Enterprise Linux 9 | Red Hat Customer Portal - access.redhat.com

  3. コマンドラインを使用して、Amazon SES SMTP インターフェイスへの接続をテストする - Amazon Simple Email Service - docs.aws.amazon.com

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0