Problem sending posfix gmail service

0

I am trying to configure the postfix service to later send me nagios alerts, for now I have not managed to send me a test message. This is the log that appears to me when trying.

Feb  2 00:57:45 th******* postfix/qmgr[56453]: EA5B8E0BAB: from=<root@th*******>, size=378, nrcpt=1 (queue active)
Feb  2 00:57:45 th******* postfix/error[56537]: EA5B8E0BAB: to=<th*******@gmail.com>, relay=none, delay=490, delays=490/0.02/0/0.01, dsn=4.4.2, status=deferred (delivery temporaril$

I have configured the file /etc/postfix/main.cf

as follows
###################
# Configuracion
###################

relayhost = [smtp.gmail.com]:465
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes

And also the file / etc / postfix / sasl_passwd

[smtp.gmail.com]:465 th********@gmail.com:*contraseña*

When doing the test of sending an e-mail, nothing comes to the mailbox

 echo "Probando Postfix + nagios" | mail -s "mi primera notificacion  nagios" th********@gmail.com

PS: I have gmail configured to allow access for less secure applications.

I've been trying for some time to make it work but I have not succeeded, someone can throw me a cable.

    
asked by Dani Rodriguez 06.02.2018 в 10:14
source

0 answers