# How to install own chatmail and notification proxy?

**URL:** <https://forum.delta.chat/t/how-to-install-own-chatmail-and-notification-proxy/3190>\
**Category:** Chatmail Relays\
**Tags:** server-config\
**Created:** [July 11, 2024, 8:54am UTC](https://forum.delta.chat/t/how-to-install-own-chatmail-and-notification-proxy/3190 "2024-07-11T08:54:41Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/letter_avatar_proxy/v4/letter/l/ee7513/32.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [November 6, 2024, 9:07pm UTC](https://forum.delta.chat/t/how-to-install-own-chatmail-and-notification-proxy/3190/12 "2024-11-06T21:07:42Z")

</div>

> [@Ivan](#):
>
> > A Delta Chat app obtains a “device token” locally and stores it on the [chatmail](https://delta.chat/chatmail) server.
> 
> When does this happen? On startup?
> 
> And how does DC know which metadata server to contact? Using the DNS entry?

Device token is obtained on startup via Android APIs if you use Google Play version, in F-Droid it is disabled. Then when you connect to chatmail server this is discovered via IMAP capability string `XDELTAPUSH` and stored using IMAP METADATA extension on the server. When a new message arrives, if the token is stored, it is relayed to [notifications.delta.chat](http://notifications.delta.chat) service and it notifies the device that Delta Chat got new messages. Delta Chat then checks all accounts on the device (because [notifications.delta.chat](http://notifications.delta.chat) and Delta Chat application do not know anything about email accounts).

---

_[View the full topic](https://forum.delta.chat/t/how-to-install-own-chatmail-and-notification-proxy/3190)._
