# Mailrise: Chuyển SMTP Email tới Text Apps như Telegram, Pushover, ...

Vấn đề của email là nó rườm rà. Mailrise giúp chuyển email messages tới telegram, sms, và các email khác.

##### Cài đặt Mailrise

App: [https://github.com/YoRyan/mailrise](https://github.com/YoRyan/mailrise)

Bạn cài với portainer docker compose sau:

```
version: '3'
services:
  mailrise:
    image: 'yoryan/mailrise:latest'
    ports:
      - 8025:8025
    volumes:
      - /home/u220187/docker/mailrise/mailrise.conf:/etc/mailrise.conf # Make sure your local config directory exists
      - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations
    environment:
      PUID: 1000
      PGID: 1000
```

path volume nhớ chỉnh lại cho đúng.

- ssh vào vm node đã cài docker

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/xO5image.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/xO5image.png)

- vào user path vào tạo file mailrise.conf với ở path /home/u220187/docker/mailrise/

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/7Bbimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/7Bbimage.png)

save lại và chạy docker compose như trên.

##### Settings cho smtp client trên router / synology / server của bạn:

Settings smtp cho Mikrotik router :

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/HyCimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/HyCimage.png)

```
Smtp server: ip / dns local name tới docker server
Port: 8025
Tls: no
From: email nào cũng đc
```

To: email nào cũng ổn

Setting smtp Synology Notification:

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/Eneimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/Eneimage.png)

Setting SMTP Email cho IDRAC của DELL:

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/vlFimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/vlFimage.png)

Setting cho UPTIME KUMA:

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/I5himage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/I5himage.png)

...

Nếu bạn có xài ups thì set cho ups với device check, send log email tới và nhận notifcation trên điện thoại.

Ví dụ: microtik router và ups santak đã kết nối usb với tới router.

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/hgNimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/hgNimage.png)

Giả sử bạn đã set smtp setting email cho microtik rồi như hình phía trên. sau đó bạn vào system -&gt; logging

Tạo action trước

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/xSSimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/xSSimage.png)

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/jaqimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/jaqimage.png)

Sau thêm rules với action name pushover

[![image.png](https://wiki.kyluat.com/uploads/images/gallery/2024-06/scaled-1680-/8Wbimage.png)](https://wiki.kyluat.com/uploads/images/gallery/2024-06/8Wbimage.png)

Click apply.

Demo video: [https://youtube.com/shorts/nQ9Ic7--ftg?feature=share](https://youtube.com/shorts/nQ9Ic7--ftg?feature=share)