I've been trying to send mail with msmtp with no success
Configuration file: ~/.msmtprc
defaults auth on tls on tls_trust_file /etc/ssl/certs/ca-bundle.crt logfile ~/.msmtp.log account iisr host smtp.yandex.com port 465 user firstname.lastname@example.org from email@example.com password ********
when testing it with the command
echo "hello there username." | msmtp -a iisr firstname.lastname@example.org, no results at all, neither in the log file,
using the script by @Andrezj in the answer below I get the following output and it stays like this:
ignoring system configuration file /etc/msmtprc: No such file or directory loaded user configuration file /home/bakenoor/.msmtprc using account iisr from /home/bakenoor/.msmtprc host = smtp.yandex.com port = 465 timeout = off protocol = smtp domain = localhost auth = choose user = email@example.com password = * passwordeval = (not set) ntlmdomain = (not set) tls = on tls_starttls = on tls_trust_file = /etc/ssl/certs/ca-bundle.crt tls_crl_file = (not set) tls_fingerprint = (not set) tls_key_file = (not set) tls_cert_file = (not set) tls_certcheck = on tls_force_sslv3 = off tls_min_dh_prime_bits = (not set) tls_priorities = (not set) auto_from = off maildomain = (not set) from = firstname.lastname@example.org dsn_notify = (not set) dsn_return = (not set) keepbcc = off logfile = /home/bakenoor/.msmtp.log syslog = (not set) aliases = (not set) reading recipients from the command line and the mail
any idea why the mail is not being sent ?