Connection Error - Unable to connect to the server / port you provided.
Not able to send messages (receiving messages is fine) via Outlook.com / Hotmail at university. I get the following error:
We encountered an SMTP error that prevented this message from being delivered:
Connection Error - Unable to connect to the server / port you provided.
Are there any related issues?
Not as far as I'm aware.
What operating system are you using?
$ snap version
snap 2.33~rc1
snapd 2.33~rc1
series 16
ubuntu 18.04
kernel 4.15.0-22-generic
$ snap info core
tracking: beta
refresh-date: 11 days ago, at 15:49 BST
installed: 16-2.33~rc1 (4734) 91MB core
What version of Mailspring are you using?
$ snap info mailspring
tracking: edge
refresh-date: 5 days ago, at 22:52 BST
installed: 1.2.3 (217) 164MB -
Bug?
Do you have any third-party plugins installed? If so, which ones?
No plugins installed.
Is the issue related to a specific email provider (Gmail, Exchange, etc.)?
Outlook.com
Is the issue reproducible with a particular attachment, message, signature, etc?
Not as far as I'm aware.
Experience the same error.
snap 2.32.8+18.04 snapd 2.32.8+18.04 series 16 ubuntu 18.04 kernel 4.15.0-22-generic
tracking: stable
refreshed: 2018-05-24T22:12:17+03:00
installed: 1.2.2 (216) 164MB -
channels:
stable: 1.2.2 (216) 164MB -
candidate: 1.2.2 (216) 164MB -
beta: 1.2.2 (216) 164MB -
edge: 1.2.3 (217) 164MB -
Menci@Menci-Surface:~$ snap info mailspring
name: mailspring
summary: The best email app for people and teams at work
publisher: foundry376
contact: http://support.getmailspring.com/
license: unknown
description: |
Mailspring is a desktop email client with modern features like unified inbox, snoozing, reminders,
templates, offline search, and support for Gmail labels. It even has a built-in "dark" and
"ubuntu" themes so you can style it to match your desktop. Move to Mailspring and breathe life
back into your tired inbox!
Provider Support:
Mailspring is absolutely free and supports all IMAP providers, including Gmail, Office 365 and
iCloud. Mailspring does not support Microsoft Exchange ActiveSync.
Pro Version:
If your work revolves around email, Mailspring Pro adds even more features, supercharging the app
with read receipts, link tracking, send later, reminders, contact profiles, email analytics and
more. At $8/mo, Mailspring Pro is an affordable alternative to sales and business email extensions
and the first tool to bring all these powerful features to any IMAP providers.
Mailspring is open-source software (https://github.com/Foundry376/Mailspring) and Mailspring Pro
subscriptions allow the core maintainers to work on Mailspring and keep improvements coming.
Mailspring ID:
In order to use Mailspring, you need to create a Mailspring account. However, none of your email
credentials or passwords are ever sent to the cloud. Your Mailspring ID holds things like snooze
dates and mail rules, so you can re-install Mailspring or use it on two computers at once.
Terms of Service:
https://getmailspring.com/terms
Privacy Policy:
https://getmailspring.com/privacy-policy
commands:
- mailspring
snap-id: 0TyNxgP6wEM3nTXzymtc1wOnvl2P6Iij
tracking: stable
refresh-date: today at 17:14 CST
channels:
stable: 1.2.2 (216) 164MB -
candidate: 1.2.2 (216) 164MB -
beta: 1.2.2 (216) 164MB -
edge: 1.2.3 (217) 164MB -
installed: 1.2.2 (216) 164MB -
Menci@Menci-Surface:~$
With GMail, error log:
{ Error: Connection Error - Unable to connect to the server / port you provided. (SMTP)
at ChildProcess._proc.on.code (/src/mailsync-process.es6:189:27)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
at maybeClose (internal/child_process.js:921:16)
at Socket.stream.socket.on (internal/child_process.js:348:11)
at emitOne (events.js:115:13)
at Socket.emit (events.js:210:7)
at Pipe._handle.close [as _onclose] (net.js:549:12)
message: 'Connection Error - Unable to connect to the server / port you provided. (SMTP)',
rawLog: '----------IMAP----------\n* OK Gimap ready for requests from 1.*.*.1 k7-v6*******5ocq\r\n1 CAPABILITY\r\n* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER AUTH=XOAUTH\r\n1 OK Thats all she wrote! k7-v6mb3996105ocq\r\n2 AUTHENTICATE XOAUTH2 d********************8hhb3J1*********************8AQE=\r\n* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584\r\n2 OK [email protected] authenticated (Success)\r\n3 COMPRESS DEFLATE\r\n3 OK Success\r\n4 ENABLE CONDSTORE\r\n* ENABLED CONDSTORE\r\n4 OK Success\r\n5 NAMESPACE\r\n* NAMESPACE (("" "/")) NIL NIL\r\n5 OK Success\r\n6 LIST "" "*"\r\n* LIST (\\HasNoChildren) "/" "Archive"\r\n* LIST (\\HasNoChildren) "/" "INBOX"\r\n* LIST (\\HasNoChildren) "/" "N1-Snoozed"\r\n* LIST (\\HasNoChildren) "/" "Notes"\r\n* LIST (\\HasNoChildren) "/" "UVa"\r\n* LIST (\\HasChildren \\Noselect) "/" "[Gmail]"\r\n* LIST (\\HasNoChildren \\Junk) "/" "[Gmail]/&V4******TvY-"\r\n* LIST (\\HasNoChildren \\Trash) "/" "[Gmail]/&XfJSIJ******O9g-"\r\n* LIST (\\Flagged \\HasNoChildren) "/" "[Gmail]/&XfJS****c-"\r\n* LIST (\\HasNoChildren \\Sent) "/" "[Gmail]/&XfJ******-"\r\n* LIST (\\All \\HasNoChildren) "/" "[Gmail]/&YkBn*******vY-"\r\n* LIST (\\Drafts \\HasNoChildren) "/" "[Gmail]/&******-"\r\n* LIST (\\HasNoChildren \\Important) "/" "[Gmail]/&kc******Q-"\r\n6 OK Success\r\n\n\n----------SMTP----------\n\nSMTP Last Response Code: 0\n\nSMTP Last Response: \n\n\nmailsmtp Last Error Code: 3\n\nmailsmtp Last Error Location: 1' } { pluginIds: [] }
THe Same error with debian 8 on Deepin OS of 64 bits
The same error with Deepin, the server problem is Outlook.com
The same problem with Antergos on private mail server.
@bengotow this issue persists - and I have no responses to my support requests on getmailspring.com - has anyone found a fix yet?
One minute I can send emails and the next I cannot. Very frustrating.
I have the same issue, sometimes with my Gmail account. I use Mailspring on MacOS (10.13.6).
I've noticed that when this happens, I'm connected to my main ISP and I'm able to temporarily bypass the issue by switching to a different internet connection.
My guess – could it have something to do with the Mailspring server refusing connections (temporarily, perhaps) from certain IP addresses?
I've had the same error for weeks now running macOS 10.13.6 with MailSpring 1.4.2, using Fastmail.com as my email provider.
It's a pretty frustrating, and completely random error.
Seeing this issue as well with my Gmail account

I'm using Windows 10 and I've been getting this error almost every time I try to send an email from my private email host. The only thing that works is quitting Mailspring entirely, waiting around 10 seconds, then reopening Mailspring and sending the email again. I can't begin to explain how frustrating this is.
Bump.
Still happens periodically on MacOS 10.14.2 (Mojave), running Mailspring 1.5.5 against Office 365 Exchange.
I cannot reliably reproduce the error, but it does happen 5-10 times a day after sending an email.
I have bailed on mailspring purely because of this error. It literally drove me nuts. No more. Paid the money and bought Postbox which is not as good but at least it works.
This bug is killing mailspring for me. It happens on Arch Linux (Antergos) and Windows 10. It doesn't seem to be OS specific.
Hi! I have the same problem. Does we have news?
I have the same today with GMAIL / OFFICE / OUTLOOK. Ubuntu 18.10, mailspring 1.5.7 ...
Here also the same error since a couple of days.. Ubuntu 18.10 and Mailspring 1.5.7. I already tried uninstalling Mailspring.
Same error for me on Mailspring 1.5.7 and on Mailspring 1.6.0 (Ubuntu 16.04).
Connection Error - Unable to connect to the server / port you provided. (SMTP)
The incoming mail works fine, but outgoing mail fails.
Happening almost every time that I try to send a message on v1.6.0. Have to retry several times before it will go through.
Same problem, Mailspring 1.6.1 on Ubuntu 18.10 with Outlook.
Update: 6th May '19: Worked fine for few days but again I'm facing same issue : Connection Error - Unable to connect to the server / port you provided. (IMAP). Mails stop syncing quiet often and this is particular to gmail, as other mailing services sync fine.
I've have the same issue while connecting mailspring on windows 10. However I'm able to connect other mail service through imap. Please provide some solution to this. default mail sucks on windows 10 !