- rework SASL OPTIONS Dovecot SASL does not need any dependency, from now it will be always build into postfix - EAI is now mandantory, else mails can be lost - add support for FreeBSD 10.3 mailwrapper (install mailer.conf into LOCALBASE/mail instead /etc/mail) - add better reload support to rc script - display correct path in pkg-message - add support for postfix-sasl slave port - remove nativ SPF support, patch is no longer maintained and there are alternatives in the ports tree - remove VDA support (seems VDA project is dead and unmaintaned) Many Thanks to all testers! PR: 195662 PR: 205162
52 lines
1.2 KiB
Bash
52 lines
1.2 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: postfix mail
|
|
# REQUIRE: %%REQUIRE%%
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable postfix:
|
|
# postfix_enable (bool): Set it to "YES" to enable postfix.
|
|
# Default is "NO".
|
|
# postfix_pidfile (path): Set full path to master.pid.
|
|
# Default is "/var/spool/postfix/pid/master.pid".
|
|
# postfix_procname (command): Set command that start master. Used to verify if
|
|
# postfix is running.
|
|
# Default is "%%PREFIX%%/libexec/postfix/master".
|
|
# postfix_flags (str): Flags passed to postfix-script on startup.
|
|
# Default is "".
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="postfix"
|
|
rcvar=postfix_enable
|
|
|
|
load_rc_config $name
|
|
|
|
: ${postfix_enable:="NO"}
|
|
: ${postfix_pidfile:="/var/spool/postfix/pid/master.pid"}
|
|
: ${postfix_procname:="%%PREFIX%%/libexec/postfix/master"}
|
|
|
|
start_cmd=${name}_start
|
|
stop_cmd=${name}_stop
|
|
extra_commands="reload"
|
|
reload_cmd="${name}_reload"
|
|
|
|
pidfile=${postfix_pidfile}
|
|
procname=${postfix_procname}
|
|
|
|
postfix_start() {
|
|
%%PREFIX%%/sbin/postfix ${postfix_flags} start
|
|
}
|
|
|
|
postfix_stop() {
|
|
%%PREFIX%%/sbin/postfix ${postfix_flags} stop
|
|
}
|
|
|
|
postfix_reload() {
|
|
%%PREFIX%%/sbin/postfix ${postfix_flags} reload
|
|
}
|
|
|
|
run_rc_command "$1"
|