04f01c205f
pkgsrc changes: - consolidate several patches into site.config.m4 - pkgsrc LDFLAGS should always be used - don't bother specifying file owner/group anywhere except in Makefile - create include/sm/os/sm_os_netbsd.h to fix warnings and OS specific stuff - install mail.local and rmail - convert to use res_n* functions - allows for linking against threaded libraries - add a TODO file - PR/35249 - Loren M. Lang - can't find libraries on Linux, this should be fixed by using pkgsrc LDFLAGS - PR/46694 - Makoto Fujiwara - bring back netbsd-proto.mc from when sendmail was part of the base system - PR/47207 - Richard Palo - let pkgsrc infrastructure handle file ownership and group - PR/48566 - Emmanuel Dreyfus - always set _FFR_USE_GETPWNAM_ERRNO on NetBSD - roll ffr_tls_1 and the suggested ffr_tls_ec into one new ffr_tls option - not enabled by default because it changes behaviour 8.14.9/8.14.9 2014/05/21 SECURITY: Properly set the close-on-exec flag for file descriptors (except stdin, stdout, and stderr) before executing mailers. Fix a misformed comment in conf.c: "/*" within comment which may cause a compilation error on some systems. Problem reported by John Beck of Oracle. DEVTOOLS: Fix regression in auto-detection of libraries when only shared libraries are available. Problem reported by Bryan Costales.
30 lines
767 B
Bash
Executable file
30 lines
767 B
Bash
Executable file
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: smmsp.sh,v 1.3 2014/06/15 20:48:49 jnemeth 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
|
|
pidfile="@VARBASE@/spool/clientmqueue/sm-client.pid"
|
|
required_files="/etc/mail/submit.cf"
|
|
extra_commands="reload"
|
|
|
|
smbin="@PREFIX@/libexec/sendmail/sendmail"
|
|
smmsp_flags="-Lsm-msp-queue -Ac -q30m"
|
|
command=$smbin
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|