![airdroid failed to connect to server airdroid failed to connect to server](https://i.ytimg.com/vi/WfBHibe-Z-E/maxresdefault.jpg)
![airdroid failed to connect to server airdroid failed to connect to server](https://cdn.ghacks.net/wp-content/uploads/2013/10/connect-failed.png)
It will allow only the MTA, mailman, and root to connect to remote SMTP servers.) SELinux blocking This is very likely to happen on port 25, but less likely to happen on ports 465 and 587, so it's yet another reason to use encryption!įor GoDaddy Cpanel servers with WHM access helps disabling "SMTP Restrictions" in "Home »Security Center »SMTP Restrictions" (This feature prevents users from bypassing the mail server to send mail.
Airdroid failed to connect to server verification#
Check your DNS is working by using the dig tool (from the dnsutils package on Debian/Ubuntu):Ĭonnection to 25 port succeeded !Ģ20 ESMTP c18sm31847486wmk.0 - gsmtpĢ21 2.0.0 closing connection c18sm31847486wmk.0 - gsmtp Firewall redirectionĪnother thing to look out for here is that the name the mail server responds with should be related to the server you requested, as you can see in the above example - we asked for and got gmail-smtp-msa.l., which looks like it's something to do with google - if instead you see something like the name of your ISP, then it could mean that your ISP's firewall is redirecting you transparently to their own mail servers, and you're likely to see authentication and TLS certificate verification failures (see below for more) because you're logging into the wrong server. These are often seen as connection timeouts, or "Temporary failure in name resolution", "could not resolve host", "getaddrinfo failed" or similar errors. Google does this a lot - see below for info about their "Allow less secure apps" setting. Very often this will tell you exactly what is wrong - things like "Incorrect password", or sometimes a URL of a page to help you diagnose the problem. If you set SMTPDebug = SMTP::DEBUG_SERVER or higher, you will see what the remote SMTP server says.
![airdroid failed to connect to server airdroid failed to connect to server](https://help.airdroid.com/hc/article_attachments/360088613754/mceclip0.png)
This is because all those domains deploy SPF and DKIM anti-forgery measures, and faking your from address is forgery. GoDaddy also refuses to send with a From address belonging to any aol, gmail, yahoo, hotmail, live, aim, or msn domain (see their docs).
Airdroid failed to connect to server password#
The solution is extremely poorly documented by GoDaddy: you must send through their servers, and also disable all security features, username, and password (great, huh?!), giving you this config for PHPMailer: If you find your script works on your local machine, but not when you upload it to GoDaddy, this will be what's happening to you. This problem is the subject of many frustrating questions on Stack Overflow. They block outbound SMTP to ports 25, 465 and 587 to all servers except their own. Popular US hosting provider GoDaddy imposes very strict (to the point of becoming almost useless) constraints on sending an email. Some techniques to diagnose the source of this error are discussed below. It can also be caused by not having the openssl extension loaded (See encryption notes below). It means that PHPMailer is unable to contact the SMTP server you have specified in the Host property, but doesn't say exactly why. This is often reported as a PHPMailer problem, but it's almost always down to local DNS failure, firewall blocking (for example as GoDaddy does), local anti-virus software, or another issue on your local network. This may also appear as SMTP connect() failed, Called Mail() without being connected, Network is unreachable (101) in debug output. "SMTP Error: Could not connect to SMTP host." If you are using authentication, user IDs and passwords will be redacted in the debug output except when you use SMTP::DEBUG_LOWLEVEL (4). The output format will adapt itself to command-line or HTML output, though you can override this using the Debugoutput property.