Send Openmediavault notifications to your preferred notification service instead of using mail

  • I already posted this as an answer on another thread and since I searched for a solution to get notifications to my gotify instance for a while now. I did not find a well documented solution. Here is my way of getting notified via gotify (but any other notification service is possible. Apprise supports multiple notification services.


    1) Create a mailrise docker container on the OMV server with docker compose:

    Code
    services:  
        mailrise:    
            image: yoryan/mailrise    
            container_name: mailrise    
            restart: unless-stopped    
            ports:      
                - 8025:8025    
            volumes:      
                - ./mailrise.conf:/etc/mailrise.conf:ro

    the mailrise.conf has to be set. I am using a config for receiving notifications via gotify which is shown below, but this can be configured using any apprise url structure.

    The URL is from apprise and can be seen in the apprise gotify notify docs :

    Code
    configs:
    # You can send to this config with "gotify@mailrise.xyz".
    #
    gotify:  urls:    - gotifys://URL/API


    Then set the OMV notification settings accordingly:

    SMTP-server: 192.168.1.2 (change this to your OMV instance local IP-adress.)

    SMTP-port: 8025

    Encryption: None

    Sender email: any@any.com

    recipient email gotify@mailrise.xyz (change according to the mailrise.conf)

    This forwards mail received to my gotify instance and notifies me.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!