ssmtp: Cannot open smtp.gmail.com:587
I have researched this message on Google and tried the suggestions to no avail. Here is my setup:
ssmtp.conf: root=bugsbunny@gmail.com mailhub=smtp.gmail.con:587 RewriteDomain= AuthUser=bugsbunny AuthPass=Rabbit97 UseSTARTTLS=YES revaliases: root:bugsbunny@gmail.com:smtp.gmail.com:587 error message: ssmtp: Cannot open smtp.gmail.com:587 Does anyone have ssmtp working with Centos 5? If so, do you see any problems with the above setup? Todd |
Hi,
I do not think the problem is with CentOS 5. Are you sure Google allows you to connect to smtp.gmail.com on TCP port 587? Can you launch the command below? nmap -sT -sV -p 25,587 smtp.gmail.com |
Hi,
From this post, maybe you may need to add in ssmtp.conf: Code:
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt |
Yes, I was able to run nmap -sT -sV -p 25,587 smtp.gmail.com
I will try adding the CERT command. Todd |
With the line added
TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt I get the following error: ssmtp: Authorization failed (534 5.7.9 https://support.google.com/accounts/answer/185833 ml5sm44116211pab.2 - gsmtp) *BUT* that led me to the answer: since I have 2-step verification, I needed to use an application password. My test messages are going out. Now to see if I can remember how to switch things around e.g. make sure the current mail program is shut down and put in a symbolic link. Thank you guys for the help...greatly appreciated!! Todd |
All times are GMT -5. The time now is 12:57 PM. |