Tag: msmtp
dnf install msmtp
# default value defaults tls on tls_trust_file /etc/ssl/certs/ca-bundle.crt syslog on aliases /etc/aliases # account settings account myaccount host example.com port 587 from test@example.com auth on user testuser password testpass # Set a default account account default : myaccount
echo -ne "Subject: test mail 4 \n\nhello test mail" | msmtp -a default foo@bar.com
echo -ne "Subject: test mail 4 \n\nhello test mail" | msmtp -a default root
echo -ne "Subject: test mail 4 \n\nhello test mail" | msmtp root