To configure msmtp, let’s create a file .msmtprc in the current user home directory: code example
Example: To configure msmtp, let’s create a file .msmtprc in the current user home directory:
$ cat - <<EOF > ~/.msmtprc
# Default settings
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
EOF