# dnf install mailx
Envoyer un e-mail de test
# mail <email_address>
Subject: test
test
.
# tail -f /var/log/maillog
Connection timeout...
Paramètres de transfert de courrier
fichier de configuration
/etc/postfix/sasl_passwd
[smtp.gmail.com]:587 <adresse e-mail du compte google>:Mot de passe d'application à 16 chiffres
# postmap /etc/postfix/sasl_passwd
fichier de configuration
/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
paramètres 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
Envoyer un e-mail de test
# mail <email_address>
Subject: test
test
.
Vérifiez la file d'attente
# postqueue -p
(Référence) Supprimer la file d'attente
# postsuper -d ALL deferred
Recommended Posts