> On 03/03/2021 06:30 刘莹莹 <[email protected]> wrote:
> 
> 
> config:
> mail_attribute_dict = file:%h/dovecot-attributes
> mailbox_list_index=yes
> plugin {
> push_notification_driver = dlog
> push_notification_driver = ox:url=http://127.0.0.1:80/notify-example.php 
> (http://127.0.0.1/notify-example.php)
> }
> protocol imap {
> mail_plugins = autocreate notify push_notification
> imap_metadata = yes
> }
> protocol lda {
> mail_plugins = autocreate notify push_notification
> log_path = /var/log/lda.log
> }
> Error:
> Debug: push-notification-ox: Skipped because not active 
> (/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
> METADATA not set)
> 
> 
>

Hi!

This is because ox plugin is intended to be used with Open-Xchange AppSuite. 
The http-notify metadata is set by appsuite when notifications should be sent.

We encourage you to use Lua to write your own notifications, there are examples 
in 
https://doc.dovecot.org/configuration_manual/push_notification/#lua-push-notifications

Also, you cannot load two push notification drivers like that, the correct 
syntax is

push_notification_driver = dlog
push_notification_driver2 = ox:url=http://127.0.0.1:80/notify-example.php

Aki

Reply via email to