Push Notification clarification (MessageNew w/o LMTP or LDA)

Aki Tuomi aki.tuomi at open-xchange.com
Thu May 9 09:14:13 EEST 2019


On 9.5.2019 9.01, Christian Balzer via dovecot wrote:
> Hello,
>
> Both the examples on the Push Notification wiki page and the XAPS plugin
> docs seem to suggest or state that LMTP/LDA is required.

It is required.


> However IMAP IDLE notifications work without either of these (please no
> religious discussion of why Dovecot LMTP is the best thing since sliced
> bread and that everybody should use it).

Without any religion, the IMAP IDLE notifications work because they
notify about different thing. The IDLE notifies about *changes* to
mailbox (detected or caused), while push notifications work when message
is actually delivered or saved.

Also push notifications cannot happen if mail is delivered outside
dovecot, because it won't see them until the client logs in.

> The LUA part of the push notification docs however states that events other
> than MessageNew are supported.
>
> So my question is, when not using LMTP/LDA and a LUA script and of course
> the correct mail_plugins definition (either global or for IMAP), will a
> message delivery trigger MessageNew?
>
> Regards,
>
> Christian

No. Only LDA or LMTP based delivery will trigger MessageNew.
Copying/moving message, using IMAP APPEND or doveadm save will trigger
MessageAppend.

Aki




More information about the dovecot mailing list