# [[Mailrise]] _Created: 2025-10-06_ | #apprise/mailrise | [[Apprise]] A small SMTP server that converts incoming emails into [[Apprise]] notifications, so any email‑only app or device can trigger pushes to services like Pushover, Discord, or Slack using simple recipient addresses - **Homepage**: <https://github.com/YoRyan/mailrise> The best part of using such a proxy to even send to a mail relayhost is that you can tighly control the destination email addresses which are accepted in a very flexible and simple way. ## Configuration A basic configuration is an YAML file like this: ```yaml configs: watchtower: urls: - "pover://USER@TOKEN?priority=low" ``` ### Listening port By default, the Mailrise server listens on port 8025. This can be configured with the top level config `listen.port` ### Email routing So with an email to an user `[email protected]` will get routed to the Pushover notification configured above. - The domain `mailrise.xyz` is the default domain if the id above ("watchtower") doesn't have one. - You can use a full email address to route for arbitrary email addresses. - You can even use a [fnmatch](https://docs.python.org/3/library/fnmatch.html) (Unix shell-style wildcards, not regex) email pattern. ### Environment secrets You can pickup the URL from an environment variable like this: ```yaml ... urls: - !env_var MY_SECRET_URL` ``` ### Message formatting You can override the message formatting on a per email basis. Here is an example from the docs. The variables you can use are: - `subject` - `from` - `body` - `to` ```yaml configs: telegram_and_discord: urls: - tgram://MY_BOT_TOKEN - discord://WEBHOOK_ID/WEBHOOK_TOKEN mailrise: title_template: "Urgent: ${body}" body_template: "" body_format: text ``` This also shows how the same email can send notification to multiple destinations.