Closed bmansvk closed 4 years ago
The device has to be registered to receive push notifications. The first message only indicates an event in dovecot that COULD lead to a APN.
Sorry "freeswa", I didn't understand your answer. I have my device registered to xapsd (see above xapsd.json). Dovecot always notifies xapsd about new mail, then xapsd should send APNS notification to my device. But this happens at most in 2-3% of new mails.
Why xapsd does not send APNS notification to Apple Push gateway (no "sending notification" message).
You wrote:
It seems that notification is send when registration message appears before notification message.
But that's a prerequisite. Your json also implies that the user who registered on the IMAP connection is not the same as the INBOX owner.
Thanks for the clue. Dovecot sometimes send notification to xapsd with username as "username", sometimes as "username@domain.com". I don't know why. But I modified dovecot user to login as "username@domain.com", not as "username" which I had this configured before. Now it works...
@bmansvk Did you set xaps_user_lookup in you dovecot config?
No I didn't. I was not aware of this configuration item. Sometimes dovecot notifies xapsd as "user", sometimes as "user@domain.com".
I changed dovecot to login user to IMAP as user@domain.com and now each time dovecot notifies xapsd as user@domain.com.
Maybe xaps_user_lookup solves the issue. But I was not aware of this config item...
Ok, thanks for reporting back :)
I have an issue with xapsd-daemon. I have configured xapsd-daemon with xapsd-plugin-dovecot under RHEL8.
When mail arrives, I can see, that dovecot is notifying xapsd-daemon. Log output:
But it seems that xapsd-daemon does not send message to Apple push servers.
But sometimes it works. Log output:
It seems that notification is send when registration message appears before notification message.
My xapsd.json:
Probability ratio, that PUSH message is delivered is around 2-3%. Most of the emails does not trigger PUSH. Does anybody know what is the issue?