#!/bin/sh # chkconfig: 345 79 29 # description: sendmail mail filter allowing validation of vdomain user \ # existence right at the "mail from" protocol level # processname: vmilter if [ ! -f /usr/lib/linuxconf/lib/vmilter ] ; then echo This Linuxconf package was compiled on a system where >&2 echo sendmail-devel was not installed >&2 echo "vdomaincheck won't work" >&2 echo Aborting... >&2 exit 1 fi case $1 in start) echo Starting the vdomaincheck mail filter /usr/lib/linuxconf/lib/vmilter -p unix:/var/run/vmilter.sock & touch /var/lock/subsys/vdomaincheck ;; stop) echo Stopping the vdomaincheck mail filter killall vmilter rm -f /var/lock/subsys/vdomaincheck ;; restart) $0 stop $0 start ;; status) if killall -0 vmilter 2>/dev/null then echo vdomaincheck is running else echo vdomaincheck is not running fi ;; esac