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
ssmtp: Cannot open smtp.gmail.com:587
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: ssmtp: Cannot open smtp.gmail.com:587
That should be gmail.com, not gmail.con.
Re: ssmtp: Cannot open smtp.gmail.com:587
I was hoping -- really hoping that the dumb mistake would solve my problem -- no such luck. Same error -- darn it.
Todd
Todd
Re: ssmtp: Cannot open smtp.gmail.com:587
Can you open a socket to gmail (try nc smtp.gmail.com 587 or telnet smtp.gmail.com 587)? You should get the banner back (something like 220 smtp.gmail.com ESMTP a1sm30001897wje.43 - gsmtp), if you don't check firewall and SELinux issues.
Re: ssmtp: Cannot open smtp.gmail.com:587
Solved!
I had to insert a line about the location of the certs and then work around the Gmail 2-step authentication.
Now I have a minor problem: get the source of the email not to be Apache -- instead, my email address, if that is possible.
Todd
I had to insert a line about the location of the certs and then work around the Gmail 2-step authentication.
Now I have a minor problem: get the source of the email not to be Apache -- instead, my email address, if that is possible.
Todd
Re: ssmtp: Cannot open smtp.gmail.com:587
Eh?
Whatever is sending the mail simply needs to "mark" it as from <user>@<fqdn>.
What are you using and what is happening? Can you expand?
Whatever is sending the mail simply needs to "mark" it as from <user>@<fqdn>.
What are you using and what is happening? Can you expand?
Re: ssmtp: Cannot open smtp.gmail.com:587
I have actually solved most of the problem by inserting
FromLineOverride=YES
The remainder of the problem has to do with Google. I have my account (i.e. bugsbunny@gmail.com) however I have one user on the account: todd@aristesoftware.com. Regargless of where the email originates, bugsbunny@gmail.com is the From. I may try another ISP and see what happens.
Todd
FromLineOverride=YES
The remainder of the problem has to do with Google. I have my account (i.e. bugsbunny@gmail.com) however I have one user on the account: todd@aristesoftware.com. Regargless of where the email originates, bugsbunny@gmail.com is the From. I may try another ISP and see what happens.
Todd