Centos 8 SMTP issue

Issues related to applications and software problems and general support
Post Reply
Anilbakhtani
Posts: 12
Joined: 2021/02/09 13:57:36

Centos 8 SMTP issue

Post by Anilbakhtani » 2021/07/13 14:45:39

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 **********

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Centos 8 SMTP issue

Post by scottro » 2021/07/13 17:38:14

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.
New users should check the FAQ and Read Me First pages

Anilbakhtani
Posts: 12
Joined: 2021/02/09 13:57:36

Re: Centos 8 SMTP issue

Post by Anilbakhtani » 2021/07/14 04:16:00

Thanks
I tried three different cert file but still facing error.

I still need support to make it working.
thanks

Anilbakhtani
Posts: 12
Joined: 2021/02/09 13:57:36

Re: Centos 8 SMTP issue

Post by Anilbakhtani » 2021/07/15 05:44:29

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

Post Reply