diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-02 20:24:06 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-02 20:24:06 +0000 |
commit | 76a68720b1213a9b63b1ac060b0cf7171bd02a19 (patch) | |
tree | 544f1c9bfd6458d0991ce753711f0d75c88c0040 /mail/masqmail/files/masqmail.sh | |
parent | Add mod_log_mysql 1.0. (diff) |
Add MasqMail, a mail server designed for hosts that do not have a permanent
internet connection eg. a home network or a single host at home. It has
special support for connections to different ISPs. It replaces sendmail or
other MTAs such as qmail or exim.
PR: ports/65178
Submitted by: Andrey Slusar <vasallia@ukr.net>
Notes
Notes:
svn path=/head/; revision=108202
Diffstat (limited to 'mail/masqmail/files/masqmail.sh')
-rw-r--r-- | mail/masqmail/files/masqmail.sh | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mail/masqmail/files/masqmail.sh b/mail/masqmail/files/masqmail.sh new file mode 100644 index 000000000000..1af2b245b8dc --- /dev/null +++ b/mail/masqmail/files/masqmail.sh @@ -0,0 +1,63 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: mail +# REQUIRE: LOGIN +# KEYWORD: FreeBSD shutdown +# we make mail start late, so that things like .forward's are not +# processed until the system is fully operational + +# +# Add the following lines to /etc/rc.conf to enable masqmail: +# +#masqmail_enable="YES" +# +# See masqmail(8) for flags +# + +. %%RC_SUBR%% + +name=masqmail +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/masqmail +required_dirs=/var/log/masqmail +required_files=%%PREFIX%%/etc/masqmail/masqmail.conf + +start_precmd=start_precmd +stop_postcmd=stop_postcmd + +extra_commands="reload" + +start_precmd() +{ + case $sendmail_enable in + [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) + warn "sendmail_enable should be set to NONE" + ;; + [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0) + case $sendmail_submit_enable in + [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1) + warn "sendmail_submit_enable should be set to NO" + ;; + esac + ;; + [Nn][Oo][Nn][Ee]) + ;; + esac +} + +stop_postcmd() +{ + rm -f $pidfile +} + +# set defaults + +masqmail_enable=${masqmail_enable:-"NO"} +masqmail_flags=${masqmail_flags:-"-bd -q30m"} + +load_rc_config $name +run_rc_command "$1" |