set up a smtp server code example
Example: Adding SMTP Server Account
$ cat ~/.msmtprc
# Default settings
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtsp.log
# outlook
account outlook
host smtp.office.365.com
port 587
from [email protected]
user [email protected]
password baeldung-linux
default outlook