&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 [email protected] 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 [email protected]
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