Hello team,
I want to use my Gmail email account to send email from cli.
I tried to use msmtp and ssmtp but unable to use successfully.
Any suggestion to use Gmail account from Centos 8.
or Any good smtp to send regular email .
I tried with gmail and rediffmail
cat .msmtprc
defaults
#auth on
auth on
#tls on
#tls_starttls on
#tls on
#tls_starttls off
#tls_trust_file /etc/pki/tls/certs/ca-bundle.crt
#tls_trust_file /root/DigiCertHighAssuranceCA-3.crt
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp
# rediffmail
#@account gmail
account default
#host smtp.gmail.com
host smtp.rediffmail.com
port 587
#port 25
#from rediff account
from rediff account
#user gmail account
user accountxxxx@rediffmail.com
#password **********
password **********
Centos 8 SMTP issue
Re: Centos 8 SMTP issue
I use this successfully with msmtp and neomutt.
account gmail
host smtp.gmail.com
from scottro11@gmail.com
auth on
tls on
tls_trust_file /etc/pki/tls/cert.pem
syslog LOG_MAIL
user xxx@gmail.com
password xxxxxx
port 587
I see we have different trustfiles, I don't know if that's the problem. Actually, if I only used gmail (I have some other accounts that I use), I could put my information right in my $HOME/.neomuttrc. I'm not sure if you're using mutt or similar or the mail command but either way, the above $HOME/.msmtprc works for me on CentOS-8.x without problem.
account gmail
host smtp.gmail.com
from scottro11@gmail.com
auth on
tls on
tls_trust_file /etc/pki/tls/cert.pem
syslog LOG_MAIL
user xxx@gmail.com
password xxxxxx
port 587
I see we have different trustfiles, I don't know if that's the problem. Actually, if I only used gmail (I have some other accounts that I use), I could put my information right in my $HOME/.neomuttrc. I'm not sure if you're using mutt or similar or the mail command but either way, the above $HOME/.msmtprc works for me on CentOS-8.x without problem.
New users should check the FAQ and Read Me First pages
-
- Posts: 12
- Joined: 2021/02/09 13:57:36
Re: Centos 8 SMTP issue
Thanks
I tried three different cert file but still facing error.
I still need support to make it working.
thanks
I tried three different cert file but still facing error.
I still need support to make it working.
thanks
-
- Posts: 12
- Joined: 2021/02/09 13:57:36
Re: Centos 8 SMTP issue
I already tried gmail and rediffmail but still msmtp not working.
Gmail saying that they not allowing to take less security login.
Rediff saying that not secure password required or related error.
pls see
Gmail saying that they not allowing to take less security login.
Rediff saying that not secure password required or related error.
pls see