I’m using MIAB and have connected one mailbox to my Outlook app on iOS - this has been configured via IMAP/SMTP.
Emails do come through, but only when the app is opened. I don’t get any push notifications on my home screen, or as a banner on my phone when it’s open.
Other mail accounts I have on there such as Google do, and send notifications - but my MIAB account does not. Notifications etc are enabled on the MIAB account, it just does not seem to work.
When using the exchange option, it accepts the credentials but it does not work. No emails pull through, it does not receive new emails, nor allow sending.
Once added, it says it’s downloading messages - but quickly gets back to ‘Nothing Left to Read’ and that’s the end. iMAP does work, but not with push notifications.
Also check the log file /var/log/z-push/Z-Push.log to see if there is any activity at all and post the last few lines of the log, removing any identifying info.
Yes, that URL works and prompts for a username and password. Entering my email address and the password shows the z-Push page and says GET not supported.
See below the last few lines from the log, this seems to repeat an awful lot:
20/08/2023 18:31:46 [313842] [FATAL] [EMAIL] Exception: (ProvisioningRequiredException) - Retry after sending a PROVISION command
20/08/2023 18:32:18 [313864] [ERROR] [EMAIL] LoopDetection->ProcessLoopDetectionPreviousConnectionFailed(): Command 'Sync' at 20/08/2023 18:30:41 with pid '313598' terminated unexpectedly or is still running.
20/08/2023 18:32:18 [313864] [ERROR] [EMAIL] Please check your logs for this PID and errors like PHP-Fatals or Apache segmentation faults and report your results to the Z-Push dev team.
20/08/2023 18:32:19 [313873] [FATAL] [EMAIL] Fatal error: /usr/local/lib/z-push/backend/imap/imap.php:1132 - Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, bool given in /usr/local/lib/z-push/backend/imap/imap.php:1132
Stack trace:
#0 /usr/local/lib/z-push/backend/imap/imap.php(1132): implode()
#1 /usr/local/lib/z-push/lib/default/diffbackend/exportchangesdiff.php(160): BackendIMAP->GetMessage()
#2 /usr/local/lib/z-push/lib/request/sync.php(1199): ExportChangesDiff->Synchronize()
#3 /usr/local/lib/z-push/lib/request/sync.php(956): Sync->syncFolder()
#4 /usr/local/lib/z-push/lib/request/requestprocessor.php(116): Sync->Handle()
#5 /usr/local/lib/z-push/index.php(107): RequestProcessor::HandleRequest()
#6 {main}
thrown (1)
20/08/2023 18:32:35 [313976] [FATAL] [EMAIL] Exception: (ProvisioningRequiredException) - Retry after sending a PROVISION command
I have commented out the line as requested, but the normal Exchange email add method still did not work, and when going back to IMAP, notifications were not coming through. This is all I see in the z-push-error.log file now:
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:32:57 [ 4483] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:33:13 [ 4568] [FATAL] [EMAIL] Exception: (ProvisioningRequiredException) - Retry after sending a PROVISION command
21/08/2023 09:33:47 [ 4590] [WARN] [EMAIL] Mobile loop detected! Messages sent to the mobile will be restricted to 1 items in order to identify the conflict
21/08/2023 09:33:50 [ 4590] [FATAL] [EMAIL] WBXMLException: Loop count in while too high, code 'syncSynchronize' exceeded max. amount of permitted loops - code: 0 - file: /usr/local/lib/z-push/lib/wbxml/wbxmldecoder.php:61
21/08/2023 09:33:50 [ 4590] [FATAL] [EMAIL] WBXML 10K debug data: AwFqAEVcT0sDezUwYWZlNjIxLTk0ODAtNDFjMC1hNGNlLWRkY2M5MjdhMTg4Mn0xAAFSA2kvZTgxYTAyZDQAAV4DMAABVQMyNQABV1sDMAABWAM1AAEBAQFVAzI1AAEB
21/08/2023 09:33:50 [ 4590] [FATAL] [EMAIL] Exception: (WBXMLException) - Loop count in while too high, code 'syncSynchronize' exceeded max. amount of permitted loops
21/08/2023 09:33:50 [ 4590] [FATAL] [EMAIL] Request could not be processed correctly due to a WBXMLException. Please report this including the 'WBXML debug data' logged. Be aware that the debug data could contain confidential information.
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection broken (server response) (errflg=2) (8)
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
21/08/2023 09:33:50 [ 4590] [WARN] [EMAIL] Unknown:0 Unknown: [CLOSED] IMAP connection lost (errflg=2) (8)
The IMAP connection lost message is constant up until now, I just found a brief snippet of the other message (I believe at the time of reconnecting the mailbox to Outlook IOS), so thought I’d put that in too.
Do you mean you are selecting IMAP as the connection method on the iPhone, and viewing this?
Do you mind setting up another user, through the mail-in-a-box admin web interface, that has an empty mailbox, remove the existing exchange co nection on your iPhone, and try to connect using the Exchange add connection method for this new user?
Yes, when manually entering IMAP credentials (instead of ActiveSync) I can send and receive emails, but no notification pop up. I have to manually to into Outlook then they appear, rather than notifying me.
I have removed all Exchange emails on my Outlook and created a new test mailbox with no emails, added to Exchange and still the same issue. Emails are not showing up to the inbox, and emails sent from the inbox do not appear in the recipient inbox, same as it was before.
Sorry for the slow response, I got side tracked testing the Outlook app on Android.
After testing with the Android Outlook app it looks like it might be trying to use EWS (Exchange Web Services) not solely ActiveSync. This makes it more challenging to get it working with Z-Push, as Z-Push only supports ActiveSync.
I decided to see if I could get Notifications working with IMAP with the Outlook android app, and the experience is pretty much the same as you have described it with your iPhone. I messaged their in app support and received this message:
Please accept our apologies. This notification issue has been reported and we are aware and investigating. Unfortunately, I don’t have information on when a fix will be rolled out. I appreciate your understanding
Thank you
I can suggest that you try to set up your account with Apple Mail using the Exchange option, I believe other MIAB users have had success with that. But I think you have reasons why you want to use the Outlook app.