Author Topic: Aquamail suddenly stopped sending and receiving iCloud messages  (Read 5303 times)

Ilfracombe

  • Newbie
  • *
  • Posts: 20
Aquamail was working fine till this morning on my Nexus 5.
Suddenly I can't send or receive messages.
I get the messages:
Error sending outgoing messages. Network Error. Connection closed by peer.
Error synchronising mail- Network Error

There's nothing wrong with iCloud account. I can receive and send messages with Mail.app on my Macbook.
As far as I can tell, I did nothing to bring this on. I first could not forward a message, then I realised I couldn't receive messages either.
So what has gone wrong with my Aquamail app on my Nexus, and what can I do about it?

Ilfracombe

  • Newbie
  • *
  • Posts: 20
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #1 on: July 31, 2015, 05:18:09 pm »
There is now a big red banner saying "persistent outgoing server network errors"

What's going on?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #2 on: July 31, 2015, 05:18:55 pm »
Just what it says -- network errors most likely caused by something external to the app.

Try rebooting the phone, if it doesn't help, please capture the issue in the app's debug log.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Ilfracombe

  • Newbie
  • *
  • Posts: 20
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #3 on: July 31, 2015, 06:07:13 pm »
Thanks. I've rebooted the phone a couple of times but it made no difference. I've made the debug log file, but I'll need to export it to my macbook so I can send it to you. How do I do that? (I have no idea where the log file is)
(I'm actually using that Nexus 5 to tether to my Macbook, so it's weird that there's a network error on the phone but not on the macbook)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #4 on: July 31, 2015, 06:44:57 pm »
"where the log file is"

It should be visible at the root of the phone's storage when you connect it to the Mac. The filename is log-AquaMail.txt

"it's weird that there's a network error on the phone but not on the macbook"

There is nothing weird about that.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Ilfracombe

  • Newbie
  • *
  • Posts: 20
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #5 on: August 01, 2015, 09:08:28 am »
OK Thanks. I sent it to your gmail address as advised

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #6 on: August 01, 2015, 12:25:06 pm »
Copying my response here in case there are others with same issue (and I expect there will be).

-----

Thank you for the log.

All of a sudden, the outgoing mail server, smtp.mac.com, does not "want" to enter STARTTLS (encrypted) mode.

I know it's worked fine for a long time, and the settings in AquaMail (smtp.mac.com / port 587 / STARTTLS) are from Apple's support site.

I can reproduce the issue without any mail apps at all, using the command line "openssl" tool in Linux:

- iCloud accounts (@me.com / @icloud.com) use smtp.mail.me.com:

$ openssl s_client -crlf -starttls smtp -connect smtp.mail.me.com:587
...
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : AES128-GCM-SHA256

- @mac.com accounts use a different server name, smtp.mac.com:

$ openssl s_client -crlf -starttls smtp -connect smtp.mac.com:587
...
139950998923128:error:1409E0E5:SSL routines:SSL3_WRITE_BYTES:ssl handshake failure:s3_pkt.c:617:

So they (Apple) messed something up on the server side.

You may want to try turning off STARTTLS (encryption). I can only assume that this is how your desktop mail app is set up, since it continues to work.

Long press the account -> account setup -> Manual -> Next

You'll be looking at detailed outgoing server settings

Change "encryption" from "STARTTLS" to "None", press Next to try and validate.

-----

Reporting the issue to Apple support and including the openssl snippets from above should help too (I hope).
« Last Edit: August 01, 2015, 12:29:33 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #7 on: August 02, 2015, 03:09:53 am »
BTW - tried K9 Mail, same exact error at same exact command.

I'm not surprised, the error when using openssl was already conclusive enough.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

annen

  • Newbie
  • *
  • Posts: 1
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #8 on: August 19, 2015, 12:25:02 am »
Hi, I have been having this problem but just found a fix so thought I add it here in case others experience the same issue.

The Outgoing Server settings should read:
Server name: smtp.mail.me.com
SSL Required: Yes
If you see an error message when using SSL, try using TLS or STARTTLS instead.
Port: 587
SMTP Authentication Required: Yes
Username: your full email address

The Server settings were showing as: smtp.mac.com which worked perfectly until a few days ago.  Not sure why it changed but working fine now once I made that one change.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Aquamail suddenly stopped sending and receiving iCloud messages
« Reply #9 on: August 19, 2015, 09:58:30 pm »
@annen --

Can you confirm that smtp.mail.me.com works for @mac accounts (not only @me / @icloud accounts)?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/