# A system wide configuration file. # It defines a default account. # This allows msmtp to be used like /usr/sbin/sendmail. # Set default values. defaults aliases /etc/aliases.msmtp syslog LOG_MAIL # Gmail configuration that works with 2FA and an app password. # Use TLS on port 465. On this port, TLS starts without STARTTLS. account gmail host smtp.gmail.com port 465 auth on tls on tls_starttls off from_full_name Apartment Router from home.lab@gmail.com user home.lab@gmail.com password abcd efgh ijkl mnop # Select the default account account default : gmail