Dovecot plugin and Push Mail
Steffan Cline
steffan at hldns.com
Thu Oct 8 15:23:16 UTC 2015
I’m posting this here and will in a couple other places to see if anyone has any experience with this and knows what I can do.
My setup is CentOS 6 with postfix, procmail and dovecot administered via Virtualmin.
Postfix of course receives the email. Procmail uses it’s hooks to run the email through spam assassin and clamd. After than procmail hands it off to dovecot/deliver to drop it in the user’s mail box.
I use the following plugin for dovecot with the daemon to provide Apple push mail for iPhones.
https://github.com/st3fan/dovecot-xaps-daemon
https://github.com/st3fan/dovecot-xaps-plugin
For the most part, this works awesome but have run into a bit of a race issue with notification of mail in a particular instance.
On my computer I use Outlook for Mac which says it supports IDLE but is broken. When an email comes in, I ALWAYS get the notification via the dovecpt plugin for a push since Outlook is checking IMAP every 2 minutes.
On a buddy’s setup, he uses Apple Mail which supports IDLE that actually works. When his email client is connected from his laptop, it does actually maintain a persistent connection and NEVER receives a notification from the dovecot plugin because I’m guessing dovecot/deliver sees that the email was received by the desktop client.
I’m not sure how to make the plugin ALWAYS give a push. Is it a dovecot config? A bug in the plugin? I’m not sure.
Suggestions?
Thank you,
Steffan Cline
602-793-0014
More information about the dovecot
mailing list