diff options
author | pav <pav@FreeBSD.org> | 2005-02-15 21:25:45 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-02-15 21:25:45 +0000 |
commit | 82a19759ab2fbd7d936d9a583c813cd7ed0f9a56 (patch) | |
tree | 350e27f40546ee02e7366b2a7cbaf54175d115ef /mail/milter-bogom/files | |
parent | 0a9baaa10d272059f790be33585da070e0e52ef2 (diff) | |
download | FreeBSD-ports-82a19759ab2fbd7d936d9a583c813cd7ed0f9a56.zip FreeBSD-ports-82a19759ab2fbd7d936d9a583c813cd7ed0f9a56.tar.gz |
Sendmail milter to interface with bogofilter
PR: ports/77472
Submitted by: Victor Balada Diaz <victor@alf.dyndns.ws>
Diffstat (limited to 'mail/milter-bogom/files')
-rw-r--r-- | mail/milter-bogom/files/milter-bogom.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mail/milter-bogom/files/milter-bogom.sh b/mail/milter-bogom/files/milter-bogom.sh new file mode 100644 index 0000000..6e3a96c --- /dev/null +++ b/mail/milter-bogom/files/milter-bogom.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +case "$1" in + start) + if [ -f LOCALBASE/sbin/bogom ] + then + LOCALBASE/sbin/bogom -u root & > /dev/null + echo -n ' milter-bogom' + fi + ;; + stop) + killall bogom + sleep 3 # wait for bogom to exit + ;; + + *) + echo "" + echo "Usage: `basename $0` { start | stop }" + echo "" + ;; +esac +exit 0; |