Avec sendmail on obtient:
Code: Select all
echo "Hello world" | mail -s "Test Subject" thierry.raspi@gmail.com
mail: impossible d'expédier le message : Processus terminé avec un état de sortie non nulCode: Select all
echo 'message' | msmtp thierry.raspi@gmail.com
msmtp: échec de l'authentification (méthode PLAIN)
msmtp: message du serveur : 534-5.7.9 Please log in with your web browser and then try again. Learn more at
msmtp: message du serveur : 534 5.7.9 https://support.google.com/mail/?p=WebLoginRequired q9sm9484504wrn.8 - gsmtp
msmtp: le courriel n'a pas pu être envoyé (compte default dans /home/thierry/.msmtprc)
msmtp: impossible d'écrire dans le journal /var/log/msmtp.log : erreur d'ouverture de fichier: Permission non accordée
msmtp: l'entrée du journal était : host=smtp.gmail.com tls=on auth=on user=thierry from=thierry.raspi@gmail.com recipients=thierry.raspi@gmail.com smtpstatus=534 smtpmsg='534-5.7.9 Please log in with your web browser and then try again. Learn more at\n534 5.7.9 https://support.google.com/mail/?p=WebLoginRequired q9sm9484504wrn.8 - gsmtp' errormsg='échec de l?authentification (méthode PLAIN)' exitcode=EX_NOPERM