add back a version of Postfix from the 3.5 "past stable" branch, for two

reasons:

- despite static linking, there are still some problems with the flavours
that pull in a dependency that uses libressl, at least when that dep is
making a TLS connection (e.g. to database servers on another machine).

- to provide a version of Postfix that is still able to use libressl
rather than pulling in openssl, as upstream's more recent stable versions
require. as a post on mailop points out in relation to a recent issue
with OpenSSL, "MTAs usually do a lot of outbound TLS acting as clients
to remote servers, but opportunistically (disabled cert validation)"
so SMTP clients will see many certs that might not make it through
CA validation checks.

ok with Brad (maintainer)
This commit is contained in:
sthen 2022-11-01 20:39:16 +00:00
parent ab729ea001
commit abc700a2d2
16 changed files with 725 additions and 0 deletions

View File

@ -1,4 +1,13 @@
SUBDIR =
SUBDIR += stable35
SUBDIR += stable35,ldap
SUBDIR += stable35,ldap,sasl2
SUBDIR += stable35,mysql
SUBDIR += stable35,mysql,sasl2
SUBDIR += stable35,pgsql
SUBDIR += stable35,pgsql,sasl2
SUBDIR += stable35,sasl2
SUBDIR += stable
SUBDIR += stable,ldap
SUBDIR += stable,ldap,sasl2

View File

@ -0,0 +1,5 @@
VERSION= 3.5.17
MASTER_SITES= ${MASTER_SITE_POSTFIX:=official/}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (postfix/postfix-3.5.17.tar.gz) = nLdyCkWBBZeWiMYouRtKFsk1DIWvbJfhAVjzh/0iNW8=
SIZE (postfix/postfix-3.5.17.tar.gz) = 4625699

View File

@ -0,0 +1,14 @@
#!/bin/sh
if [ ! -f /etc/mailer.conf.pre-postfix ]; then
echo "can't find /etc/mailer.conf.pre-postfix, postfix not disabled"
exit 1
fi
if [ -f /etc/mailer.conf ]; then
mv -f /etc/mailer.conf /etc/mailer.conf.postfix
mv -f /etc/mailer.conf.pre-postfix /etc/mailer.conf
echo "postfix mailer.conf disabled, old mailer.conf enabled"
else
echo "can't find /etc/mailer.conf, postfix not disabled"
fi

View File

@ -0,0 +1,18 @@
#!/bin/sh
if [ -f /etc/mailer.conf.postfix ]; then
if [ -f /etc/mailer.conf ]; then
mv -f /etc/mailer.conf /etc/mailer.conf.pre-postfix
echo "old /etc/mailer.conf saved as /etc/mailer.conf.pre-postfix"
fi
mv -f /etc/mailer.conf.postfix /etc/mailer.conf
echo "postfix /etc/mailer.conf enabled"
echo ""
echo "NOTE: rc.conf changes are required to disable your previous MTA and"
echo " start Postfix, e.g.:"
echo ""
echo "rcctl stop smtpd; rcctl disable smtpd"
echo "rcctl enable postfix; rcctl start postfix"
else
echo "can't find /etc/mailer.conf.postfix, postfix not enabled"
fi

View File

@ -0,0 +1,87 @@
#!/bin/sh
#
# Post-installation setup of postfix
PATH=/bin:/usr/bin:/sbin:/usr/sbin
CONFIG_DIR=${SYSCONFDIR}/postfix
SAMPLE_CONFIG_DIR=${PREFIX}/share/examples/postfix
SPOOL_DIR=/var/spool/postfix
DATA_DIR=/var/postfix
# Function: set up the postfix spool dir / chroot area
#
do_spooldir()
{
echo "-> Creating Postfix spool directory and chroot area under $SPOOL_DIR"
[ -d $SPOOL_DIR ] || install -d -o root -g wheel -m 755 $SPOOL_DIR
[ -d $SPOOL_DIR/etc ] || install -d -o root -g wheel -m 755 $SPOOL_DIR/etc
[ -d $SPOOL_DIR/dev ] || install -d -o root -g wheel -m 755 $SPOOL_DIR/dev
for file in hosts localtime resolv.conf services ; do
install -o root -g wheel -m 644 /etc/$file $SPOOL_DIR/etc
done
echo "-> Creating Postfix data directory under $DATA_DIR"
[ -d $DATA_DIR ] || install -d -o _postfix -g wheel -m 700 $DATA_DIR
}
# Function: replace sendmail binaries with postfix
#
do_mailwrapper()
{
echo "-> Creating /etc/mailer.conf.postfix"
cat <<MAILER | sed "s@y0y0y0@$PREFIX@g" >/etc/mailer.conf.postfix
sendmail y0y0y0/sbin/sendmail
send-mail y0y0y0/sbin/sendmail
mailq y0y0y0/sbin/sendmail
newaliases y0y0y0/sbin/sendmail
MAILER
chown root:wheel /etc/mailer.conf.postfix
chmod 644 /etc/mailer.conf.postfix
}
# Function: install the postfix configuration files from the samples
#
do_configs()
{
POSTFIX="${PREFIX}/sbin/postfix"
if [ -d $CONFIG_DIR ]; then
if [ ! -d $CONFIG_DIR/postfix-files.d ]; then
install -d -o root -g wheel -m 755 $CONFIG_DIR/postfix-files.d
fi
for file in main.cf.proto master.cf.proto postfix-files ; do
if [ ! -f $CONFIG_DIR/$file ]; then
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/$file $CONFIG_DIR
fi
done
echo ""
$POSTFIX upgrade-configuration
echo ""
echo "+---------------"
echo "| The existing configuration files in $CONFIG_DIR have been preserved."
echo "| You may want to compare them to the current sample files,"
echo "| $SAMPLE_CONFIG_DIR, and update your configuration as needed."
echo "+---------------"
echo ""
else
install -d -o root -g wheel -m 755 $CONFIG_DIR
install -d -o root -g wheel -m 755 $CONFIG_DIR/postfix-files.d
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/* $CONFIG_DIR
echo "+---------------"
echo "| Configuration files have been installed in $CONFIG_DIR."
echo "| Please update these files to meet your needs."
echo "+---------------"
fi
$POSTFIX set-permissions
$POSTFIX check
}
if [ "$1" = "install" ]; then
do_mailwrapper
do_spooldir
fi
do_configs

View File

@ -0,0 +1,18 @@
Index: conf/main.cf
--- conf/main.cf.orig
+++ conf/main.cf
@@ -133,6 +133,9 @@ mail_owner = postfix
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
+# OpenBSD is IPv6-capable - use all available address families.
+inet_protocols = all
+
# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
# proxy or network address translation unit. This setting extends
@@ -673,4 +676,3 @@ sample_directory =
# readme_directory: The location of the Postfix README files.
#
readme_directory =
-inet_protocols = ipv4

View File

@ -0,0 +1,111 @@
Index: conf/master.cf
--- conf/master.cf.orig
+++ conf/master.cf
@@ -9,12 +9,12 @@
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (no) (never) (100)
# ==========================================================================
-smtp inet n - n - - smtpd
-#smtp inet n - n - 1 postscreen
-#smtpd pass - - n - - smtpd
-#dnsblog unix - - n - 0 dnsblog
-#tlsproxy unix - - n - 0 tlsproxy
-#submission inet n - n - - smtpd
+smtp inet n - y - - smtpd
+#smtp inet n - y - 1 postscreen
+#smtpd pass - - y - - smtpd
+#dnsblog unix - - y - 0 dnsblog
+#tlsproxy unix - - y - 0 tlsproxy
+#submission inet n - y - - smtpd
# -o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
@@ -26,7 +26,7 @@ smtp inet n - n - -
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
-#smtps inet n - n - - smtpd
+#smtps inet n - y - - smtpd
# -o syslog_name=postfix/smtps
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
@@ -37,33 +37,33 @@ smtp inet n - n - -
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
-#628 inet n - n - - qmqpd
-pickup unix n - n 60 1 pickup
-cleanup unix n - n - 0 cleanup
-qmgr unix n - n 300 1 qmgr
-#qmgr unix n - n 300 1 oqmgr
-tlsmgr unix - - n 1000? 1 tlsmgr
-rewrite unix - - n - - trivial-rewrite
-bounce unix - - n - 0 bounce
-defer unix - - n - 0 bounce
-trace unix - - n - 0 bounce
-verify unix - - n - 1 verify
-flush unix n - n 1000? 0 flush
+#628 inet n - y - - qmqpd
+pickup unix n - y 60 1 pickup
+cleanup unix n - y - 0 cleanup
+qmgr unix n - y 300 1 qmgr
+#qmgr unix n - y 300 1 oqmgr
+tlsmgr unix - - y 1000? 1 tlsmgr
+rewrite unix - - y - - trivial-rewrite
+bounce unix - - y - 0 bounce
+defer unix - - y - 0 bounce
+trace unix - - y - 0 bounce
+verify unix - - y - 1 verify
+flush unix n - y 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
-smtp unix - - n - - smtp
-relay unix - - n - - smtp
+smtp unix - - y - - smtp
+relay unix - - y - - smtp
-o syslog_name=postfix/$service_name
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
-showq unix n - n - - showq
-error unix - - n - - error
-retry unix - - n - - error
-discard unix - - n - - discard
+showq unix n - y - - showq
+error unix - - y - - error
+retry unix - - y - - error
+discard unix - - y - - discard
local unix - n n - - local
virtual unix - n n - - virtual
-lmtp unix - - n - - lmtp
-anvil unix - - n - 1 anvil
-scache unix - - n - 1 scache
+lmtp unix - - y - - lmtp
+anvil unix - - y - 1 anvil
+scache unix - - y - 1 scache
postlog unix-dgram n - n - 1 postlogd
#
# ====================================================================
@@ -98,21 +98,21 @@ postlog unix-dgram n - n - 1
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
-# flags=DRX user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
+# flags=DRX user=_cyrus argv=/usr/local/libexec/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
-# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
+# flags=R user=_cyrus argv=/usr/local/libexec/cyrus-imapd/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
#uucp unix - n n - - pipe
-# flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
+# flags=Fqhu user=_uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# ====================================================================
#

View File

@ -0,0 +1,27 @@
Index: makedefs
--- makedefs.orig
+++ makedefs
@@ -300,22 +300,7 @@ case "$SYSTEM.$RELEASE" in
;;
DragonFly.*) SYSTYPE=DRAGONFLY
;;
- OpenBSD.2*) SYSTYPE=OPENBSD2
- ;;
- OpenBSD.3*) SYSTYPE=OPENBSD3
- ;;
- OpenBSD.4*) SYSTYPE=OPENBSD4
- ;;
- OpenBSD.5*) SYSTYPE=OPENBSD5
- : ${CC=cc}
- : ${SHLIB_SUFFIX=.so.1.0}
- : ${SHLIB_CFLAGS=-fPIC}
- : ${SHLIB_LD="${CC} -shared"' -Wl,-soname,${LIB}'}
- : ${SHLIB_RPATH='-Wl,-rpath,${SHLIB_DIR}'}
- : ${SHLIB_ENV="LD_LIBRARY_PATH=`pwd`/lib"}
- : ${PLUGIN_LD="${CC} -shared"}
- ;;
- OpenBSD.6*) SYSTYPE=OPENBSD6
+ OpenBSD.*) SYSTYPE=OPENBSD
: ${CC=cc}
: ${SHLIB_SUFFIX=.so.1.0}
: ${SHLIB_CFLAGS=-fPIC}

View File

@ -0,0 +1,12 @@
Index: src/tls/tls_certkey.c
--- src/tls/tls_certkey.c.orig
+++ src/tls/tls_certkey.c
@@ -149,7 +149,7 @@ static void init_pem_load_state(pem_load_state_t *st,
/* use_chain - load cert, key and chain into ctx or ssl */
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL
+#if OPENSSL_VERSION_NUMBER >= 0x1010100fUL && !defined(LIBRESSL_VERSION_NUMBER)
static int use_chain(pem_load_state_t *st)
{
int ret;

View File

@ -0,0 +1,13 @@
Index: src/tls/tls_server.c
--- src/tls/tls_server.c.orig
+++ src/tls/tls_server.c
@@ -518,7 +518,9 @@ TLS_APPL_STATE *tls_server_init(const TLS_SERVER_INIT_
* ticket decryption callback already (since 2.11) asks OpenSSL to
* avoid issuing new tickets when the presented ticket is re-usable.
*/
+#ifndef LIBRESSL_VERSION_NUMBER
SSL_CTX_set_num_tickets(server_ctx, 1);
+#endif
}
#endif
if (!ticketable)

View File

@ -0,0 +1,13 @@
Index: src/util/sys_defs.h
--- src/util/sys_defs.h.orig
+++ src/util/sys_defs.h
@@ -32,8 +32,7 @@
|| defined(FREEBSD8) || defined(FREEBSD9) || defined(FREEBSD10) \
|| defined(FREEBSD11) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \
- || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \
- || defined(OPENBSD5) || defined(OPENBSD6) \
+ || defined(OPENBSD) \
|| defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \
|| defined(NETBSD4) || defined(NETBSD5) || defined(NETBSD6) \
|| defined(NETBSD7) \

View File

@ -0,0 +1,14 @@
Postfix attempts to be fast, easy to administer, and secure, while at the
same time being sendmail compatible enough to not upset existing users.
Thus, the outside has a sendmail-ish flavor, but the inside is completely
different.
Extra features always included:
- table lookups using PCRE (Perl-Compatible Regular Expression), SQLite
- authenticated SMTP using Dovecot SASL
Optional features included using flavors:
- authenticated SMTP using Cyrus SASL v2
- table lookups using LDAP, MySQL, PostgreSQL

View File

@ -0,0 +1,13 @@
Postfix can be set up to replace smtpd entirely. Please read the
documentation at file://${PREFIX}/share/doc/postfix/html/index.html or
${HOMEPAGE} carefully before you decide to do this!
To replace smtpd with Postfix you have to install a new mailer.conf
using the following command:
${PREFIX}/sbin/postfix-enable
If you want to restore smtpd, this is done using the following command:
${PREFIX}/sbin/postfix-disable

View File

@ -0,0 +1,352 @@
@option is-branch
@conflict postfix-*
@newgroup _postfix:507
@newgroup _postdrop:508
@newuser _postfix:507:507:daemon:Postfix Daemon:/var/empty:/sbin/nologin
@unexec-delete ${PREFIX}/sbin/postfix-disable
@unexec-delete rm -f /etc/mailer.conf.postfix
@extra ${SYSCONFDIR}/postfix/
@extra /var/postfix/
@extra /var/spool/postfix/
libexec/postfix/
@bin libexec/postfix/anvil
@bin libexec/postfix/bounce
@bin libexec/postfix/cleanup
@bin libexec/postfix/discard
@bin libexec/postfix/dnsblog
@bin libexec/postfix/error
@bin libexec/postfix/flush
@bin libexec/postfix/lmtp
@bin libexec/postfix/local
@bin libexec/postfix/master
@bin libexec/postfix/nqmgr
@bin libexec/postfix/oqmgr
@bin libexec/postfix/pickup
@bin libexec/postfix/pipe
libexec/postfix/post-install
libexec/postfix/postfix-script
libexec/postfix/postfix-tls-script
libexec/postfix/postfix-wrapper
@bin libexec/postfix/postlogd
libexec/postfix/postmulti-script
@bin libexec/postfix/postscreen
@bin libexec/postfix/proxymap
@bin libexec/postfix/qmgr
@bin libexec/postfix/qmqpd
@bin libexec/postfix/scache
@bin libexec/postfix/showq
@bin libexec/postfix/smtp
@bin libexec/postfix/smtpd
@bin libexec/postfix/spawn
@bin libexec/postfix/tlsmgr
@bin libexec/postfix/tlsproxy
@bin libexec/postfix/trivial-rewrite
@bin libexec/postfix/verify
@bin libexec/postfix/virtual
@man man/man1/mailq.1
@man man/man1/newaliases.1
@man man/man1/postalias.1
@man man/man1/postcat.1
@man man/man1/postconf.1
@man man/man1/postdrop.1
@man man/man1/postfix-tls.1
@man man/man1/postfix.1
@man man/man1/postkick.1
@man man/man1/postlock.1
@man man/man1/postlog.1
@man man/man1/postmap.1
@man man/man1/postmulti.1
@man man/man1/postqueue.1
@man man/man1/postsuper.1
@man man/man1/posttls-finger.1
@man man/man1/qshape.1
@man man/man1/sendmail.1
@man man/man5/access.5
@man man/man5/aliases.5
@man man/man5/body_checks.5
@man man/man5/bounce.5
@man man/man5/canonical.5
@man man/man5/cidr_table.5
@man man/man5/generic.5
@man man/man5/header_checks.5
@man man/man5/ldap_table.5
@man man/man5/lmdb_table.5
@man man/man5/master.5
@man man/man5/memcache_table.5
@man man/man5/mysql_table.5
@man man/man5/nisplus_table.5
@man man/man5/pcre_table.5
@man man/man5/pgsql_table.5
@man man/man5/postconf.5
@man man/man5/postfix-wrapper.5
@man man/man5/regexp_table.5
@man man/man5/relocated.5
@man man/man5/socketmap_table.5
@man man/man5/sqlite_table.5
@man man/man5/tcp_table.5
@man man/man5/transport.5
@man man/man5/virtual.5
@man man/man8/anvil.8
@man man/man8/bounce.8
@man man/man8/cleanup.8
@man man/man8/defer.8
@man man/man8/discard.8
@man man/man8/dnsblog.8
@man man/man8/error.8
@man man/man8/flush.8
@man man/man8/lmtp.8
@man man/man8/local.8
@man man/man8/master.8
@man man/man8/oqmgr.8
@man man/man8/pickup.8
@man man/man8/pipe.8
@man man/man8/postlogd.8
@man man/man8/postscreen.8
@man man/man8/proxymap.8
@man man/man8/qmgr.8
@man man/man8/qmqpd.8
@man man/man8/scache.8
@man man/man8/showq.8
@man man/man8/smtp.8
@man man/man8/smtpd.8
@man man/man8/spawn.8
@man man/man8/tlsmgr.8
@man man/man8/tlsproxy.8
@man man/man8/trace.8
@man man/man8/trivial-rewrite.8
@man man/man8/verify.8
@man man/man8/virtual.8
sbin/mailq
sbin/newaliases
@bin sbin/postalias
@bin sbin/postcat
@bin sbin/postconf
@mode 2755
@group _postdrop
@bin sbin/postdrop
@mode
@group
@bin sbin/postfix
sbin/postfix-disable
sbin/postfix-enable
sbin/postfix-install
@bin sbin/postkick
@bin sbin/postlock
@bin sbin/postlog
@bin sbin/postmap
@bin sbin/postmulti
@mode 2755
@group _postdrop
@bin sbin/postqueue
@mode
@group
@bin sbin/postsuper
@bin sbin/posttls-finger
sbin/qshape
@bin sbin/sendmail
share/doc/postfix/
share/doc/postfix/html/
share/doc/postfix/html/ADDRESS_CLASS_README.html
share/doc/postfix/html/ADDRESS_REWRITING_README.html
share/doc/postfix/html/ADDRESS_VERIFICATION_README.html
share/doc/postfix/html/BACKSCATTER_README.html
share/doc/postfix/html/BASIC_CONFIGURATION_README.html
share/doc/postfix/html/BUILTIN_FILTER_README.html
share/doc/postfix/html/CDB_README.html
share/doc/postfix/html/COMPATIBILITY_README.html
share/doc/postfix/html/CONNECTION_CACHE_README.html
share/doc/postfix/html/CONTENT_INSPECTION_README.html
share/doc/postfix/html/DATABASE_README.html
share/doc/postfix/html/DB_README.html
share/doc/postfix/html/DEBUG_README.html
share/doc/postfix/html/DSN_README.html
share/doc/postfix/html/ETRN_README.html
share/doc/postfix/html/FILTER_README.html
share/doc/postfix/html/FORWARD_SECRECY_README.html
share/doc/postfix/html/INSTALL.html
share/doc/postfix/html/IPV6_README.html
share/doc/postfix/html/LDAP_README.html
share/doc/postfix/html/LINUX_README.html
share/doc/postfix/html/LMDB_README.html
share/doc/postfix/html/LOCAL_RECIPIENT_README.html
share/doc/postfix/html/MAILDROP_README.html
share/doc/postfix/html/MILTER_README.html
share/doc/postfix/html/MULTI_INSTANCE_README.html
share/doc/postfix/html/MYSQL_README.html
share/doc/postfix/html/NFS_README.html
share/doc/postfix/html/OVERVIEW.html
share/doc/postfix/html/PACKAGE_README.html
share/doc/postfix/html/PCRE_README.html
share/doc/postfix/html/PGSQL_README.html
share/doc/postfix/html/POSTSCREEN_README.html
share/doc/postfix/html/QSHAPE_README.html
share/doc/postfix/html/RESTRICTION_CLASS_README.html
share/doc/postfix/html/SASL_README.html
share/doc/postfix/html/SCHEDULER_README.html
share/doc/postfix/html/SMTPD_ACCESS_README.html
share/doc/postfix/html/SMTPD_POLICY_README.html
share/doc/postfix/html/SMTPD_PROXY_README.html
share/doc/postfix/html/SOHO_README.html
share/doc/postfix/html/SQLITE_README.html
share/doc/postfix/html/STANDARD_CONFIGURATION_README.html
share/doc/postfix/html/STRESS_README.html
share/doc/postfix/html/TLS_LEGACY_README.html
share/doc/postfix/html/TLS_README.html
share/doc/postfix/html/TUNING_README.html
share/doc/postfix/html/UUCP_README.html
share/doc/postfix/html/VERP_README.html
share/doc/postfix/html/VIRTUAL_README.html
share/doc/postfix/html/XCLIENT_README.html
share/doc/postfix/html/XFORWARD_README.html
share/doc/postfix/html/access.5.html
share/doc/postfix/html/aliases.5.html
share/doc/postfix/html/anvil.8.html
share/doc/postfix/html/bounce.8.html
share/doc/postfix/html/canonical.5.html
share/doc/postfix/html/cidr_table.5.html
share/doc/postfix/html/cleanup.8.html
share/doc/postfix/html/defer.8.html
share/doc/postfix/html/discard.8.html
share/doc/postfix/html/dnsblog.8.html
share/doc/postfix/html/error.8.html
share/doc/postfix/html/flush.8.html
share/doc/postfix/html/generic.5.html
share/doc/postfix/html/header_checks.5.html
share/doc/postfix/html/index.html
share/doc/postfix/html/ldap_table.5.html
share/doc/postfix/html/lmtp.8.html
share/doc/postfix/html/local.8.html
share/doc/postfix/html/mailq.1.html
share/doc/postfix/html/master.5.html
share/doc/postfix/html/master.8.html
share/doc/postfix/html/memcache_table.5.html
share/doc/postfix/html/mysql_table.5.html
share/doc/postfix/html/newaliases.1.html
share/doc/postfix/html/nisplus_table.5.html
share/doc/postfix/html/oqmgr.8.html
share/doc/postfix/html/pcre_table.5.html
share/doc/postfix/html/pgsql_table.5.html
share/doc/postfix/html/pickup.8.html
share/doc/postfix/html/pipe.8.html
share/doc/postfix/html/postalias.1.html
share/doc/postfix/html/postcat.1.html
share/doc/postfix/html/postconf.1.html
share/doc/postfix/html/postconf.5.html
share/doc/postfix/html/postdrop.1.html
share/doc/postfix/html/postfix-logo.jpg
share/doc/postfix/html/postfix-manuals.html
share/doc/postfix/html/postfix-wrapper.5.html
share/doc/postfix/html/postfix.1.html
share/doc/postfix/html/postkick.1.html
share/doc/postfix/html/postlock.1.html
share/doc/postfix/html/postlog.1.html
share/doc/postfix/html/postlogd.8.html
share/doc/postfix/html/postmap.1.html
share/doc/postfix/html/postmulti.1.html
share/doc/postfix/html/postqueue.1.html
share/doc/postfix/html/postscreen.8.html
share/doc/postfix/html/postsuper.1.html
share/doc/postfix/html/proxymap.8.html
share/doc/postfix/html/qmgr.8.html
share/doc/postfix/html/qmqp-sink.1.html
share/doc/postfix/html/qmqp-source.1.html
share/doc/postfix/html/qmqpd.8.html
share/doc/postfix/html/qshape.1.html
share/doc/postfix/html/regexp_table.5.html
share/doc/postfix/html/relocated.5.html
share/doc/postfix/html/sendmail.1.html
share/doc/postfix/html/showq.8.html
share/doc/postfix/html/smtp-sink.1.html
share/doc/postfix/html/smtp-source.1.html
share/doc/postfix/html/smtp.8.html
share/doc/postfix/html/smtpd.8.html
share/doc/postfix/html/spawn.8.html
share/doc/postfix/html/sqlite_table.5.html
share/doc/postfix/html/tcp_table.5.html
share/doc/postfix/html/tlsproxy.8.html
share/doc/postfix/html/trace.8.html
share/doc/postfix/html/transport.5.html
share/doc/postfix/html/trivial-rewrite.8.html
share/doc/postfix/html/verify.8.html
share/doc/postfix/html/virtual.5.html
share/doc/postfix/html/virtual.8.html
share/doc/postfix/readme/
share/doc/postfix/readme/AAAREADME
share/doc/postfix/readme/ADDRESS_CLASS_README
share/doc/postfix/readme/ADDRESS_REWRITING_README
share/doc/postfix/readme/ADDRESS_VERIFICATION_README
share/doc/postfix/readme/BACKSCATTER_README
share/doc/postfix/readme/BASIC_CONFIGURATION_README
share/doc/postfix/readme/BUILTIN_FILTER_README
share/doc/postfix/readme/CDB_README
share/doc/postfix/readme/COMPATIBILITY_README
share/doc/postfix/readme/CONNECTION_CACHE_README
share/doc/postfix/readme/CONTENT_INSPECTION_README
share/doc/postfix/readme/DATABASE_README
share/doc/postfix/readme/DB_README
share/doc/postfix/readme/DEBUG_README
share/doc/postfix/readme/DSN_README
share/doc/postfix/readme/ETRN_README
share/doc/postfix/readme/FILTER_README
share/doc/postfix/readme/FORWARD_SECRECY_README
share/doc/postfix/readme/INSTALL
share/doc/postfix/readme/IPV6_README
share/doc/postfix/readme/LDAP_README
share/doc/postfix/readme/LINUX_README
share/doc/postfix/readme/LMDB_README
share/doc/postfix/readme/LOCAL_RECIPIENT_README
share/doc/postfix/readme/MAILDROP_README
share/doc/postfix/readme/MEMCACHE_README
share/doc/postfix/readme/MILTER_README
share/doc/postfix/readme/MULTI_INSTANCE_README
share/doc/postfix/readme/MYSQL_README
share/doc/postfix/readme/NFS_README
share/doc/postfix/readme/OVERVIEW
share/doc/postfix/readme/PACKAGE_README
share/doc/postfix/readme/PCRE_README
share/doc/postfix/readme/PGSQL_README
share/doc/postfix/readme/POSTSCREEN_README
share/doc/postfix/readme/QSHAPE_README
share/doc/postfix/readme/RELEASE_NOTES
share/doc/postfix/readme/RESTRICTION_CLASS_README
share/doc/postfix/readme/SASL_README
share/doc/postfix/readme/SCHEDULER_README
share/doc/postfix/readme/SMTPD_ACCESS_README
share/doc/postfix/readme/SMTPD_POLICY_README
share/doc/postfix/readme/SMTPD_PROXY_README
share/doc/postfix/readme/SOHO_README
share/doc/postfix/readme/SQLITE_README
share/doc/postfix/readme/STANDARD_CONFIGURATION_README
share/doc/postfix/readme/STRESS_README
share/doc/postfix/readme/TLS_LEGACY_README
share/doc/postfix/readme/TLS_README
share/doc/postfix/readme/TUNING_README
share/doc/postfix/readme/ULTRIX_README
share/doc/postfix/readme/UUCP_README
share/doc/postfix/readme/VERP_README
share/doc/postfix/readme/VIRTUAL_README
share/doc/postfix/readme/XCLIENT_README
share/doc/postfix/readme/XFORWARD_README
share/examples/postfix/
share/examples/postfix/LICENSE
share/examples/postfix/TLS_LICENSE
share/examples/postfix/access
share/examples/postfix/aliases
share/examples/postfix/bounce.cf.default
share/examples/postfix/canonical
share/examples/postfix/generic
share/examples/postfix/header_checks
share/examples/postfix/main.cf
share/examples/postfix/main.cf.default
share/examples/postfix/main.cf.proto
share/examples/postfix/makedefs.out
share/examples/postfix/master.cf
share/examples/postfix/master.cf.proto
share/examples/postfix/postfix-files
@comment share/examples/postfix/postfix-files.d/
share/examples/postfix/relocated
share/examples/postfix/transport
share/examples/postfix/virtual
@exec-add PREFIX=%D SYSCONFDIR=${SYSCONFDIR} ${PREFIX}/sbin/postfix-install install
@exec-update PREFIX=%D SYSCONFDIR=${SYSCONFDIR} ${PREFIX}/sbin/postfix-install upgrade
@rcscript ${RCDIR}/postfix

View File

@ -0,0 +1,17 @@
#!/bin/ksh
daemon="${TRUEPREFIX}/libexec/postfix/master"
. /etc/rc.d/rc.subr
pexp="${daemon}.*"
rc_start() {
rc_exec "${TRUEPREFIX}/sbin/postfix ${daemon_flags} start"
}
rc_stop() {
${TRUEPREFIX}/sbin/postfix stop
}
rc_cmd $1