I’m looking for guidance on a best method for getting push notifications working for Dovecot email. One that is friendly for Virtualmin. I’ve recently had a couple of complaints about this not working.
Push notifications are generated by the mobile app, in this case, presumably, the Apple Mail App, which supports the IMAP protocol and should therefore show notifications on the iPhone regardless of the IMAP server that is being used, be it Dovecot or any other.
Dovecot has nothing to do with push notifications per se.
Regardless of the above, push notifications should display whenever the app polls the server. If your users are complaining about notifications not being received on their mobile devices, the cause is likely a permissions issue between the app and iOS.
Working with one end user, he says it works when he is either charging or on WiFi, but does not work when on mobile service. Apple says it doesn’t work with some mail servers. Then I read on the Dovecot docs that LDAP seemed to be the solution. So, mostly I’m wondering what is most friendly to Virtualmin so as not to create a monster (something that has to be hand configured for each user).
I will be able to put my hands on an iPhone tonight to see if the users are simply missing a step or if in fact it does need a push from the Dovecot server. Apple docs show it to be sometimes a multi-step permission process.
The user is of course seeing the email when he opens the app, no matter what the situation is. He is only having the issue when on the mobile network.
I have never had this question before until just recently. I’m wondering if Apple is trying to save battery life or something.
Of interest, neither Apple Mail nor Outlook on his iPhone will show notifications on mobile networks.
Edit:
And I should have said LMTP instead of LDAP. Yup, I’m really a green noob on this.
On their iOS device, let them visit Settings > Mail > Mail Accounts > Fetch New Data (this is iOS 18).
Here, they’ll have to activate “Push” as well as “Fetch” with any option (“Hourly” should be fine) other than “Automatically” which only fetches while on power and Wi-Fi.
All I read you need a extra plugin, IMAP needs the client to sync, it doesn’t push to the clients device.
I asked the most reliable Copilot (haha) I know its frond open in here, but anyway this is the response.
Dovecot itself doesn’t directly handle push notifications for iOS devices like APNs does. However, Dovecot can be configured to work with push notifications through additional plugins and configurations.
Nope , I made this mistake. The extra plugin and configuration is for PUSH notifications to a browser. I have instant email notifications on my my phone from my Virtualmin server.
Dovecot’s Push Notification framework exposes RFC 5423 (Internet Message Store Events) events that occur in Dovecot to a system that can be used to report these events to external services.
So, apparently I did make a bad assumption. You do not need Push on Dovecot for notifications to work on iPhones. However, the iPhone has a bunch of settings in various places which can prevent it from working. So, this is a software/settings issue on iPhones, not something that has changed causing a need to change Dovecot.
Thanks so much for all the replies and information. I was certainly about to waste a lot of time.