# Renommer le fichier en .msmtprc (sans extension) et supprimer le BOM Unicode account default tls on host smtp.gmail.com port 587 from mon.adresse@gmail.com auth on user mon.adresse password ******************* tls_starttls on tls_certcheck on tls_trust_file /etc/ssl/certs/ca-certificates.crt account Orange host smtp.orange.fr protocol smtp auth login tls on tls_starttls off tls_certcheck on tls_trust_file /etc/ssl/certs/ca-certificates.crt from mon.adresse@orange.fr maildomain orange.fr port 465 user mon.adresse password ******************* # D'autres façons (plus sûres) de gérer le mot de passe... # Password method 1: Add the password to the system keyring, and let msmtp get # it automatically. To set the keyring password using Gnome's libsecret: # $ secret-tool store --label=msmtp \ # host smtp.freemail.example \ # service smtp \ # user joe.smith # Password method 2: Store the password in an encrypted file, and tell msmtp # which command to use to decrypt it. This is usually used with GnuPG, as in # this example. Usually gpg-agent will ask once for the decryption password. passwordeval gpg2 --no-tty -q -d ~/.msmtp-password.gpg # Password method 3: Store the password directly in this file. Usually it is not # a good idea to store passwords in plain text files. If you do it anyway, at # least make sure that this file can only be read by yourself. #password secret123 # Password method 4: Store the password in ~/.netrc. This method is probably not # relevant anymore. # Password method 5: Do not specify a password. Msmtp will then prompt you for # it. This means you need to be able to type into a terminal when msmtp runs.