You are not logged in.
When I try to send mail with msmtp, following the arch wiki:
echo "hello there username." | msmtp -a default myvaildemailaddress@gmail.comI get the following error:
msmtp: /etc/msmtprc: input errorBoth ~/.msmtprc and /etc/msmtprc/.msmtprc contain the following (I know it is not safe, but let's get the basics down first):
# Set default values for all following accounts.
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
Also tried the pass field empty per a necro'd 10y/o arch thread, same difference.
Thanks for the inputs.
# Gmail
account gmail
host smtp.gmail.com
port 587
from myvaildemailaddress@gmail.com
user myvaildemailaddress@gmail.com
password my-plain-text-pass-by-gmail-app-pass
## A freemail service
#account freemail
#host smtp.freemail.example
#from joe_smith@freemail.example
# Set a default account
account default : gmail
aliases /etc/aliasesand /etc/aliases is filled according to arch wiki.
Last edited by itarill (2021-10-29 16:04:47)
Offline
Issue was that my msmtprc file was at /etc/msmtprc/.msmtprc. Should be /etc/msmtprc.
Offline