SMTP Email Not Working
To start off, I am using the FormCraft WordPress plugin as my contact form. I am using SMTP settings, with gmail's SMTP: Host - smtp.gmail.com Port - 465/SSL. I made sure my email/username and password are correct and I keep getting this error: SMTP connect() failed. 0 email sent.
I called my host (OVH) and they said there is no blacklisted IP or blocks for outgoing emails. I am a noob when it comes to email servers so I'm not sure where to go from here. Any help is appreciated.
-
Do they allow you SSH access? If so, in SSH run: # telnet smtp.gmail.com 4650 -
telnet: command not found :/ 0 -
Ah jailed shell. Can you try connecting to your own mail server, just use your domain as the host. If that doesn't work try port 25 and 587(TLS), just to see if for some reason 465 is being blocked. 0 -
Ah jailed shell. Can you try connecting to your own mail server, just use your domain as the host. If that doesn't work try port 25 and 587(TLS), just to see if for some reason 465 is being blocked.
What do I put for the email/user/pass/port0 -
You can test using your cPanel user. host: yourdomain.com user: cpuser@yourdomain.com password: cpuser password port: 465(SSL) 587(TLS) 25(Non SSL) Just try each one of those ports, starting with 465 to see if that specific port is the issue 0 -
Hello, It's seems that there is an issues with the server firewall. Can you please try to disable server firewall for testing and check your plugin again. 0 -
Hello :) You may need to consult further with your provider if you do not have root access to the system. Have them run that "telnet" command for you in the investigation. Thank you. 0 -
You can test using your cPanel user. host: yourdomain.com user: cpuser@yourdomain.com[/EMAIL] password: cpuser password port: 465(SSL) 587(TLS) 25(Non SSL) Just try each one of those ports, starting with 465 to see if that specific port is the issue
I tried all 3 ports and they all took about 1 minute before showing the error: SMTP connect() failed.Hello :) You may need to consult further with your provider if you do not have root access to the system. Have them run that "telnet" command for you in the investigation. Thank you.
I have root access, but can't run that command. I can try calling them later today tho.0 -
You can install telnet via "yum install telnet" if you have root SSH access to the system. Thank you. 0 -
You can install telnet via "yum install telnet" if you have root SSH access to the system. Thank you.
# yum install telnet Loaded plugins: fastestmirror Existing lock /var/run/yum.pid: another copy is running as pid 8345. Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum Memory : 50 M RSS (497 MB VSZ) Started: Thu Oct 8 14:52:51 2015 - 15:06 ago State : Sleeping, pid: 83450 -
Do you have root access then? I was under the impression you didn't as your cpanel access level says owner. 0 -
Do you have root access then? I was under the impression you didn't as your cpanel access level says owner.
Yeah I do, Idk what I choosed when I signed up0 -
Ok, I got telnet installed, then entered "telnet smtp.gmail.com 465": connected to smtp.gmail.com Escape character is '^]'. Also, OVH said port 465 & 587 are open, not filtered. They recommended checking log files, but not sure how to do that. 0 -
I am using SMTP settings, with gmail's SMTP: Host - smtp.gmail.com Port - 465/SSL. I made sure my email/username and password are correct and I keep getting this error: SMTP connect() failed
Do you notice the same problem if you switch to port 25 (non-SSL) instead of port 465? Thank you.0 -
Do you notice the same problem if you switch to port 25 (non-SSL) instead of port 465? Thank you.
Its the same, shows an error after 2 seconds "SMTP connect() failed."0 -
The issue eventually with your server firewall. Can you try with disabling firewall? Have you installed CSF? 0 -
The issue eventually with your server firewall. Can you try with disabling firewall? Have you installed CSF?
My host said its not firewall, but I can try disabling it. How do I disable the firewall?0 -
You can install a third-party firewall management utility such as CSF: ConfigServer Security & Firewall Then, since it manages your firewall rules, you can simply disable CSF through WHM instead of using the command line to manually turn off iptables. Thank you. 0 -
Fixed. I signed up with MailJet and their SMTP works perfectly. Maybe it was an issue with my Google account. 0 -
I am happy to see the issue is now resolved. Thank you for updating us with the outcome. 0 -
Great, But i'm facing the same issue. Do you have any suggestion? I have already disable the firewall and also tried telenet. 0
Please sign in to leave a comment.
Comments
21 comments