# dnf install mailx
Testmail senden
# mail <email_address>
Subject: test
test
.
# tail -f /var/log/maillog
Connection timeout...
Einstellungen für die E-Mail-Weiterleitung
Einstellungsdatei
/etc/postfix/sasl_passwd
[smtp.gmail.com]:587 <E-Mail-Adresse des Google-Kontos>:16-stelliges App-Passwort
# postmap /etc/postfix/sasl_passwd
Einstellungsdatei
/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
Firewall-Einstellungen
# 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
Testmail senden
# mail <email_address>
Subject: test
test
.
Überprüfen Sie die Warteschlange
# postqueue -p
(Referenz) Warteschlange löschen
# postsuper -d ALL deferred