Send mail service for custom notifications

  • Hi, everyone!


    I'd like to send mails for some custom events. Cron jobs notifications can be configured via web interface, if I got it right (not tested, though...)
    Other useful notification, as an example, is for finished torrente. Here is a thread on the topic: Mail when a torrent finish
    It suggests install/setup steps for a sendmail service. But OMV already has a sendmail service installed and configured for notifications.
    How to use this service? (from scripts, not from web interface)


    Thanks
    MIX

  • Did some further research (on the web, not on my system). Looks like OMV uses postfix for sending mail notifications.
    Will do some tests next days.

  • Thx, that helped me too...
    But in case you don't want to specify a email address in the script, you can refer to the ones defined in OMV by typing the user's name, i.e. root:


    echo "This is the body" | mailx -s "This is the subject" root


    I had some difficulties finding that information, so I decided to add it here.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!