What it is
Outwright gets push from Stalwart, from Dovecot with our script and from Microsoft 365. For any other IMAP server, a program you run watches the inbox and tells Outwright when mail arrives. In the account's settings in Outwright, choose Push for a server without push, under the Notifications switch while push from the server is not on, and you get a push address. Whatever posts to it wakes your iPhone, and the phone then fetches the new mail from your server itself.
Your password stays with your program; Outwright's relay never sees it. The address says nothing about your account, and what is posted to it carries nothing of your mail. Anyone who has the address can wake your phone and nothing more; removing the address in the app ends it. Push is part of the paid app.
The protocol
- New mail:
POSTan empty body to the address. The answer is202. - The check: when you tap Check in the app, Outwright saves a message to the Inbox whose
subject is
Outwright push check <nonce>, already read and deleted, and removes it when the check ends. Postcheck:<nonce>to the address; push turns on when it arrives. 404: the address is gone (push was switched off).429: more than 120 posts in an hour; try later. Bodies are at most 128 bytes.- Post only for new mail in the Inbox, not for your own saved copies or flag changes, and post once for a burst.
curl -X POST https://push.outwright.app/v1/channels/…/plain curl -X POST --data 'check:<nonce>' https://push.outwright.app/v1/channels/…/plainAn example program
outwright-imap-push is an example that works: it watches each Inbox you configure with IMAP IDLE (or polling where the server has none) and posts to the address. You build its container yourself from the repository and configure it with a file. It is an example, not a supported product: what we support is the address and its protocol.
Several phones
On another iPhone or iPad, open the same account's Push for a server without push, paste the address your program already uses, and tap Check. The program needs no change.