diff options
Diffstat (limited to 'mail/sendmail/files/smmsp.sh')
-rwxr-xr-x | mail/sendmail/files/smmsp.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mail/sendmail/files/smmsp.sh b/mail/sendmail/files/smmsp.sh new file mode 100755 index 00000000000..d842f31dfc4 --- /dev/null +++ b/mail/sendmail/files/smmsp.sh @@ -0,0 +1,28 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: smmsp.sh,v 1.1 2006/06/06 22:03:36 adrianp Exp $ +# + +# REQUIRE: mail + +# The only function of the smmsp process is to push locally +# collected mail (which got stuck in the local client queue) +# to a more fully functional smtp relay. It is not a fully +# functional smtp daemon. +# +# It can, however, be used as a completely unprivileged +# replacement for hosts that were previously using a "null +# client" configuration and a smart relay. + +. /etc/rc.subr + +name="smmsp" +rcvar=$name +command="/usr/sbin/sendmail" +pidfile="@VARBASE@/spool/clientmqueue/sm-client.pid" +required_files="/etc/mail/submit.cf" +smbin="@PREFIX@/libexec/sendmail/sendmail" +smmsp_flags="-Lsm-msp-queue -Ac -q30m" + +load_rc_config $name +run_rc_command "$1" |