Re: Lua Push Notification Plugin

2019-04-11 Thread Sami Ketola via dovecot

Hi,

doveadm mailbox metadata get -u victim INBOX 
/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify

or doveadm mailbox metadata set

if you are not using appsuite as your mail frontend then you need to set the 
metadata manually or make sure that your mail frontend does set it.

Sami

> On 11 Apr 2019, at 11.50, Pabsky  wrote:
> 
> Sami,
> 
> the package 'appsuite' is not mentioned in the documentation, also I already 
> enabled imap metadata. 
> 
> What do you mean by 'It's not supposed to be a file. It's supposed to be a 
> attribute on the users INBOX'?
> 
> I'm attaching my dovecot configuration file for you to examine. Thanks Sami!
> 
> On 11/04/2019 4:37 PM, Sami Ketola wrote:
>> 
>> 
>>> On 11 Apr 2019, at 11.00, Pabsky via dovecot >> > wrote:
>>> 
>>> Thanks AKI! I'm a step closer to achieving my goals. 
>>> 
>>> However, I'm getting a new error as indicated from below:
>>> 
>>> Apr 11 01:45:34 lmtp(u...@mydomain.com 
>>> )<20801>: Debug: 
>>> push-notification-ox: Skipped because not active 
>>> (/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify
>>>  METADATA not set)
>>> Apr 11 01:45:34 lmtp(u...@mydomain.com 
>>> )<20801>: Debug: 
>>> push-notification: Push notification transaction completed
>>> 
>>> By the way, the file 
>>> /private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
>>> does not exist on my server.
>> 
>> It's not supposed to be a file. It's supposed to be a attribute on the users 
>> INBOX. Also you need to enable imap metadata or appsuite can't set the 
>> attribute.
>> 
>> Sami
>> 
>> 
> 



Re: Lua Push Notification Plugin

2019-04-11 Thread Sami Ketola via dovecot


> On 11 Apr 2019, at 11.00, Pabsky via dovecot  wrote:
> 
> Thanks AKI! I'm a step closer to achieving my goals. 
> 
> However, I'm getting a new error as indicated from below:
> 
> Apr 11 01:45:34 lmtp(u...@mydomain.com 
> )<20801>: Debug: 
> push-notification-ox: Skipped because not active 
> (/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
> METADATA not set)
> Apr 11 01:45:34 lmtp(u...@mydomain.com 
> )<20801>: Debug: 
> push-notification: Push notification transaction completed
> 
> By the way, the file 
> /private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
> does not exist on my server.

It's not supposed to be a file. It's supposed to be a attribute on the users 
INBOX. Also you need to enable imap metadata or appsuite can't set the 
attribute.

Sami




Re: Lua Push Notification Plugin

2019-04-11 Thread Aki Tuomi via dovecot
It is supposed to be set by OX AppSuite when user logs in. That's why the IMAP 
METADATA extension needs to be enabled. 

Aki

> On 11 April 2019 11:00 Pabsky via dovecot  wrote:
> 
> 
> Thanks AKI! I'm a step closer to achieving my goals. 
> 
> However, I'm getting a new error as indicated from below:
> 
> Apr 11 01:45:34 lmtp(u...@mydomain.com)<20801>: 
> Debug: push-notification-ox: Skipped because not active 
> (/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
> METADATA not set)
> Apr 11 01:45:34 lmtp(u...@mydomain.com)<20801>: 
> Debug: push-notification: Push notification transaction completed
> 
> By the way, the file 
> /private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
> does not exist on my server. 
> 
> Again, I appreciate the help :)
>  
> > On 11 April 2019 07:57 Robust Coding via dovecot  
> > wrote:
> > 
> > 
> > Hi Admin,
> > 
> > I hope you consider reading and addressing my concern promptly.
> > 
> > For the past few days I've been setting up a VPS with cPanel and WHM 
> > pre-installed on Bluehost. I want to enable push notification plugin in 
> > Dovecot2.3.5. I tried OX and Lua plugins and got errors.
> > 
> > For using OX plugin:
> > push_notification_driver = 
> > ox:url=http://staging.mydomain.com/mail-notify/v1 
> > user_from_metadata
> > And got this error on runtime:
> > Error: push-notification-ox: Skipped because unable to get attribute: 
> > Mailbox 
> > attributes not enabled
> > 
>  
> mail_attribute_dict = file:%h/Maildir/dovecot-attributes
> 
> > When using Lua:
> > mail_plugins = $mail_plugins mail_lua notify push_notification 
> > push_notification_lua
> > 
> > plugin {
> >push_notification_driver = lua:file=/path/to/lua/push.lua
> > }
> > And got this order:
> > Plugin 'push_notification_lua' not found from directory /usr/lib64/dovecot
> > 
> 
> You do not have push_notification_lua installed.
> 
> > I think I'm missing something here but I can't figure it out. Please HELP!
> > 
> > Sincerely,
> > John Lopena
> > 
> > -- 
> > 
> > "Become a programmer - Lose your brain's virginity"
> 
> Aki


Re: Lua Push Notification Plugin

2019-04-11 Thread Pabsky via dovecot

Thanks AKI! I'm a step closer to achieving my goals.

However, I'm getting a new error as indicated from below:

Apr 11 01:45:34 lmtp(u...@mydomain.com)<20801>:*Debug: push-notification-ox: Skipped because not active 
(/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify 
METADATA not set)*
Apr 11 01:45:34 lmtp(u...@mydomain.com)<20801>:*Debug: push-notification: Push notification transaction completed *By the way, the file/private/vendor/vendor.dovecot/pvt/server/vendor/vendor.dovecot/http-notify* 
*does not exist on my server.


Again, I appreciate the help :)
**

On 11 April 2019 07:57 Robust Coding via dovecot  wrote:


Hi Admin,

I hope you consider reading and addressing my concern promptly.

For the past few days I've been setting up a VPS with cPanel and WHM 
pre-installed on Bluehost. I want to enable push notification plugin in 
Dovecot2.3.5. I tried OX and Lua plugins and got errors.


For using OX plugin:
push_notification_driver = ox:url=http://staging.mydomain.com/mail-notify/v1  
user_from_metadata

And got this error on runtime:
Error: push-notification-ox: Skipped because unable to get attribute: Mailbox 
attributes not enabled




mail_attribute_dict = file:%h/Maildir/dovecot-attributes


When using Lua:
mail_plugins = $mail_plugins mail_lua notify push_notification 
push_notification_lua


plugin {
   push_notification_driver = lua:file=/path/to/lua/push.lua
}
And got this order:
Plugin 'push_notification_lua' not found from directory /usr/lib64/dovecot



You do not have push_notification_lua installed.


I think I'm missing something here but I can't figure it out. Please HELP!

Sincerely,
John Lopena

--

"Become a programmer - Lose your brain's virginity"


Aki



Re: Lua Push Notification Plugin

2019-04-10 Thread Aki Tuomi via dovecot


> On 11 April 2019 07:57 Robust Coding via dovecot  wrote:
> 
> 
> Hi Admin,
> 
> I hope you consider reading and addressing my concern promptly.
> 
> For the past few days I've been setting up a VPS with cPanel and WHM 
> pre-installed on Bluehost. I want to enable push notification plugin in 
> Dovecot2.3.5. I tried OX and Lua plugins and got errors.
> 
> For using OX plugin:
> push_notification_driver = ox:url=http://staging.mydomain.com/mail-notify/v1 
> user_from_metadata
> And got this error on runtime:
> Error: push-notification-ox: Skipped because unable to get attribute: Mailbox 
> attributes not enabled
> 

mail_attribute_dict = file:%h/Maildir/dovecot-attributes

> When using Lua:
> mail_plugins = $mail_plugins mail_lua notify push_notification 
> push_notification_lua
> 
> plugin {
>push_notification_driver = lua:file=/path/to/lua/push.lua
> }
> And got this order:
> Plugin 'push_notification_lua' not found from directory /usr/lib64/dovecot
> 

You do not have push_notification_lua installed.

> I think I'm missing something here but I can't figure it out. Please HELP!
> 
> Sincerely,
> John Lopena
> 
> -- 
> 
> "Become a programmer - Lose your brain's virginity"

Aki


Lua Push Notification Plugin

2019-04-10 Thread Robust Coding via dovecot
Hi Admin,

I hope you consider reading and addressing my concern promptly.

For the past few days I've been setting up a VPS with cPanel and WHM
pre-installed on Bluehost. I want to enable push notification plugin in
Dovecot2.3.5. I tried OX and Lua plugins and got errors.

For using OX plugin:

push_notification_driver =
ox:url=http://staging.mydomain.com/mail-notify/v1 user_from_metadata

And got this error on runtime:
*Error: push-notification-ox: Skipped because unable to get attribute:
Mailbox attributes not enabled*

When using Lua:

mail_plugins = $mail_plugins mail_lua notify push_notification
push_notification_luaplugin {   push_notification_driver =
lua:file=/path/to/lua/push.lua}

And got this order:
*Plugin 'push_notification_lua' not found from directory /usr/lib64/dovecot*

I think I'm missing something here but I can't figure it out. Please HELP!

Sincerely,
John Lopena

-- 
*"Become a programmer - Lose your brain's virginity"*