#!/bin/sh
case "$2" in
up|down|vpn-up|vpn-down)
/bin/systemctl try-restart sendmail.service || :
;;
esac