Instalé ssmtp y luego edité el archivo ssmtp.conf, así que podría intentar enviar un correo pero dice que no puedo abrir el correo: 25 sin embargo, en el archivo conf lo configuré en el puerto 467 de gmail y estoy bastante seguro de que todo lo demás está bien.
¿Qué necesito específicamente buscar con este error o podría ser cualquier número de configuraciones dentro y fuera del archivo de configuración?
#
# /etc/ssmtp.conf -- a config file for sSMTP sendmail.
#
# See the ssmtp.conf(5) man page for a more verbose explanation of the
# available options.
#
# The person who gets all mail for userids < 500
# Make this empty to disable rewriting.
root=postmaster
# The place where the mail goes. The actual machine name is required
# no MX records are consulted. Commonly mailhosts are named mail.domain.com
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mail
# Example for SMTP port number 2525
mailhub=smtp.gmail.com:465
# Example for SMTP port number 25 (Standard/RFC)
# mailhub=mail.your.domain
# Example for SSL encrypted connection
# mailhub=mail.your.domain:465
# Where will the mail seem to come from?
#RewriteDomain=
# The full hostname
#Hostname=
# Set this to never rewrite the "From:" line (unless not given) and to
# use that address in the "from line" of the envelope.
#FromLineOverride=YES
# Use SSL/TLS to send secure messages to server.
UseTLS=YES
UseSTARTTLS=YES
AuthUser=user@gmail.com
AuthPass=xxxxxx
# Use SSL/TLS certificate to authenticate against smtp host.
#UseTLSCert=YES
# Use this RSA certificate.
#TLSCert=/etc/pki/tls/private/ssmtp.pem
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
# Get enhanced (*really* enhanced) debugging information in the logs
# If you want to have debugging of the config file parsing, move this option
# to the top of the config file and uncomment
#Debug=YES
¡Curiosamente, todos los archivos /etc/pki/tls/certs/son exactamente los mismos que eliminé en mi carpeta / etc / ssl! jaja Ahora sé que sucedió una cierta cantidad de negocios al crear un certificado no confiable
mailen el puerto 25. ¿El nombre de maildeterminación (uso host, nslookupo getent hosts mailpara verificar)? Casualmente mailhub=mailes la configuración predeterminada en el archivo de configuración. También sería bueno saber qué espera lograr al conectarse al puerto 467 con "gmail" (¿qué host ????). En otra nota: ¿lo has intentado nullmailer?
25