# dnf install mailx
テストメール送信
# mail <email_address>
Subject: test
test
.
# tail -f /var/log/maillog
Connection timeout...
メール転送設定
設定ファイル
/etc/postfix/sasl_passwd
[smtp.gmail.com]:587 <googleアカウントのメールアドレス>:16桁のアプリパスワード
# postmap /etc/postfix/sasl_passwd
設定ファイル
/etc/postfix/main.cf
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_tls_security_options = noanonymous
smtp_sasl_mechanism_filter = plain
# systemctl restart postfix
firewalld の設定
# firewall-cmd --list-services --permanet
cockpit dhcpv6-client ssh
# firewall-cmd --add-service=smtp --permanent
Success
# firewall-cmd --add-service=smtps --permanent
Success
# firewall-cmd --list-services --permanet
cockpit dhcpv6-client smtp smtps ssh
テストメール送信
# mail <email_address>
Subject: test
test
.
キューの確認
# postqueue -p
(参考)キューの削除
# postsuper -d ALL deferred