Adopted Postfix from Victor.
This commit is contained in:
parent
4a2e3878a1
commit
808d59273a
153
postfix/.footprint
Normal file
153
postfix/.footprint
Normal file
@ -0,0 +1,153 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/postfix/
|
||||
-rw-r--r-- root/root etc/postfix/TLS_LICENSE
|
||||
-rw-r--r-- root/root etc/postfix/access
|
||||
-rw-r--r-- root/root etc/postfix/access.db (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/aliases
|
||||
-rw-r--r-- root/root etc/postfix/aliases.db (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/body-checks (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/canonical
|
||||
-rw-r--r-- root/root etc/postfix/canonical.db (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/generic
|
||||
-rw-r--r-- root/root etc/postfix/header-checks (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/header_checks
|
||||
-rw-r--r-- root/root etc/postfix/main.cf
|
||||
-rw-r--r-- root/root etc/postfix/main.cf.default
|
||||
-rw-r--r-- root/root etc/postfix/makedefs.out
|
||||
-rw-r--r-- root/root etc/postfix/master.cf
|
||||
-rw-r--r-- root/root etc/postfix/mime-header-checks (EMPTY)
|
||||
-rwxr-xr-x root/root etc/postfix/post-install
|
||||
-rw-r--r-- root/root etc/postfix/postfix-files
|
||||
-rwxr-xr-x root/root etc/postfix/postfix-script
|
||||
-rw-r--r-- root/root etc/postfix/relay-domains (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/relocated
|
||||
-rw-r--r-- root/root etc/postfix/relocated.db (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/transport
|
||||
-rw-r--r-- root/root etc/postfix/transport.db (EMPTY)
|
||||
-rw-r--r-- root/root etc/postfix/virtual
|
||||
-rw-r--r-- root/root etc/postfix/virtual.db (EMPTY)
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/postfix
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
lrwxrwxrwx root/root usr/bin/mailq -> ../../usr/sbin/sendmail
|
||||
lrwxrwxrwx root/root usr/bin/newaliases -> ../../usr/sbin/sendmail
|
||||
drwxr-xr-x root/root usr/lib/
|
||||
drwxr-xr-x root/root usr/lib/postfix/
|
||||
-rwxr-xr-x root/root usr/lib/postfix/anvil
|
||||
-rwxr-xr-x root/root usr/lib/postfix/bounce
|
||||
-rwxr-xr-x root/root usr/lib/postfix/cleanup
|
||||
-rwxr-xr-x root/root usr/lib/postfix/discard
|
||||
-rwxr-xr-x root/root usr/lib/postfix/error
|
||||
-rwxr-xr-x root/root usr/lib/postfix/flush
|
||||
-rwxr-xr-x root/root usr/lib/postfix/lmtp
|
||||
-rwxr-xr-x root/root usr/lib/postfix/local
|
||||
-rwxr-xr-x root/root usr/lib/postfix/master
|
||||
-rwxr-xr-x root/root usr/lib/postfix/nqmgr
|
||||
-rwxr-xr-x root/root usr/lib/postfix/oqmgr
|
||||
-rwxr-xr-x root/root usr/lib/postfix/pickup
|
||||
-rwxr-xr-x root/root usr/lib/postfix/pipe
|
||||
-rwxr-xr-x root/root usr/lib/postfix/proxymap
|
||||
-rwxr-xr-x root/root usr/lib/postfix/qmgr
|
||||
-rwxr-xr-x root/root usr/lib/postfix/qmqpd
|
||||
-rwxr-xr-x root/root usr/lib/postfix/scache
|
||||
-rwxr-xr-x root/root usr/lib/postfix/showq
|
||||
-rwxr-xr-x root/root usr/lib/postfix/smtp
|
||||
-rwxr-xr-x root/root usr/lib/postfix/smtpd
|
||||
-rwxr-xr-x root/root usr/lib/postfix/spawn
|
||||
-rwxr-xr-x root/root usr/lib/postfix/tlsmgr
|
||||
-rwxr-xr-x root/root usr/lib/postfix/trivial-rewrite
|
||||
-rwxr-xr-x root/root usr/lib/postfix/verify
|
||||
-rwxr-xr-x root/root usr/lib/postfix/virtual
|
||||
drwxr-xr-x root/root usr/man/
|
||||
drwxr-xr-x root/root usr/man/man1/
|
||||
-rw-r--r-- root/root usr/man/man1/mailq.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/newaliases.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postalias.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postcat.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postconf.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postdrop.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postfix.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postkick.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postlock.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postlog.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postmap.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postqueue.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/postsuper.1.gz
|
||||
-rw-r--r-- root/root usr/man/man1/sendmail.1.gz
|
||||
drwxr-xr-x root/root usr/man/man5/
|
||||
-rw-r--r-- root/root usr/man/man5/access.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/aliases.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/body_checks.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/canonical.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/cidr_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/generic.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/header_checks.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/ldap_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/master.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/mysql_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/nisplus_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/pcre_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/pgsql_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/postconf.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/regexp_table.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/relocated.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/transport.5.gz
|
||||
-rw-r--r-- root/root usr/man/man5/virtual.5.gz
|
||||
drwxr-xr-x root/root usr/man/man8/
|
||||
-rw-r--r-- root/root usr/man/man8/anvil.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/bounce.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/cleanup.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/defer.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/discard.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/error.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/flush.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/lmtp.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/local.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/master.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/oqmgr.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pickup.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/pipe.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/proxymap.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/qmgr.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/qmqpd.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/scache.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/showq.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/smtp.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/smtpd.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/spawn.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/tlsmgr.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/trace.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/trivial-rewrite.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/verify.8.gz
|
||||
-rw-r--r-- root/root usr/man/man8/virtual.8.gz
|
||||
drwxr-xr-x root/root usr/sbin/
|
||||
-rwxr-xr-x root/root usr/sbin/postalias
|
||||
-rwxr-xr-x root/root usr/sbin/postcat
|
||||
-rwxr-xr-x root/root usr/sbin/postconf
|
||||
-rwxr-sr-x root/postdrop usr/sbin/postdrop
|
||||
-rwxr-xr-x root/root usr/sbin/postfix
|
||||
-rwxr-xr-x root/root usr/sbin/postkick
|
||||
-rwxr-xr-x root/root usr/sbin/postlock
|
||||
-rwxr-xr-x root/root usr/sbin/postlog
|
||||
-rwxr-xr-x root/root usr/sbin/postmap
|
||||
-rwxr-sr-x root/postdrop usr/sbin/postqueue
|
||||
-rwxr-xr-x root/root usr/sbin/postsuper
|
||||
-rwxr-xr-x root/root usr/sbin/sendmail
|
||||
drwxr-xr-x root/root var/
|
||||
drwxr-xr-x root/root var/spool/
|
||||
drwxr-xr-x root/root var/spool/postfix/
|
||||
drwx------ mail/root var/spool/postfix/active/
|
||||
drwx------ mail/root var/spool/postfix/bounce/
|
||||
drwx------ mail/root var/spool/postfix/corrupt/
|
||||
drwx------ mail/root var/spool/postfix/defer/
|
||||
drwx------ mail/root var/spool/postfix/deferred/
|
||||
drwx------ mail/root var/spool/postfix/flush/
|
||||
drwx------ mail/root var/spool/postfix/hold/
|
||||
drwx------ mail/root var/spool/postfix/incoming/
|
||||
drwx-wx--- mail/postdrop var/spool/postfix/maildrop/
|
||||
drwxr-xr-x mail/root var/spool/postfix/pid/
|
||||
drwx------ mail/root var/spool/postfix/private/
|
||||
drwx--x--- mail/postdrop var/spool/postfix/public/
|
||||
drwx------ mail/root var/spool/postfix/saved/
|
||||
drwx------ mail/root var/spool/postfix/trace/
|
3
postfix/.md5sum
Normal file
3
postfix/.md5sum
Normal file
@ -0,0 +1,3 @@
|
||||
036054f7aa13ecec9c0cbe5c7a140e32 aliases
|
||||
8d63077e848f33acae248568c8d85841 postfix-2.2.7.tar.gz
|
||||
d18be5c17604f9c712a28339ff0f61cb postfix.rc
|
62
postfix/Pkgfile
Normal file
62
postfix/Pkgfile
Normal file
@ -0,0 +1,62 @@
|
||||
# Description: Postfix Mail Transport Agent (MTA)
|
||||
# URL: http://www.postfix.org
|
||||
# Maintainer: Simon Gloßner, viper at hometux dot de
|
||||
# Packager: Victor, victord at users dot berlios dot de
|
||||
# Depends on: cyrus-sasl, openssl, db
|
||||
|
||||
name=postfix
|
||||
version=2.2.7
|
||||
release=1
|
||||
source=(ftp://postfix.ulimit.org/postfix/official/$name-$version.tar.gz
|
||||
aliases postfix.rc)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
_CCARGS="$CCARGS -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS"
|
||||
_AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"
|
||||
|
||||
make tidy
|
||||
make makefiles DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
|
||||
make DEBUG="" OPT="$CFLAGS" CCARGS="$_CCARGS" AUXLIBS="$_AUXLIBS"
|
||||
|
||||
sh ./postfix-install -non-interactive install_root=$PKG \
|
||||
mail_owner=mail \
|
||||
setgid_group=postdrop \
|
||||
config_directory=/etc/postfix \
|
||||
manpage_directory=/usr/man \
|
||||
daemon_directory=/usr/lib/postfix \
|
||||
command_directory=/usr/sbin \
|
||||
queue_directory=/var/spool/postfix \
|
||||
sendmail_path=/usr/sbin/sendmail \
|
||||
newaliases_path=/usr/bin/newaliases \
|
||||
mailq_path=/usr/bin/mailq
|
||||
|
||||
#
|
||||
# Set proper permissions
|
||||
#
|
||||
( cd $PKG/var/spool/postfix
|
||||
chown mail *
|
||||
chgrp postdrop public maildrop )
|
||||
|
||||
( cd $PKG/usr/sbin
|
||||
chgrp postdrop postqueue postdrop
|
||||
chmod g+s postqueue postdrop )
|
||||
|
||||
#
|
||||
# Add .gz extensions to manpages (pkgmk compresses them)
|
||||
#
|
||||
( cd $PKG/etc/postfix
|
||||
cp postfix-files temp-files
|
||||
cat temp-files | grep -v LICENSE | sed 's#\(/man[0-9]/[a-zA-Z0-9_-]\+\.[0-9]\):#\1\.gz:#' > postfix-files
|
||||
rm -f temp-files LICENSE )
|
||||
|
||||
install -D -m 00644 ../aliases $PKG/etc/postfix/aliases
|
||||
install -D -m 00755 ../postfix.rc $PKG/etc/rc.d/postfix
|
||||
|
||||
touch $PKG/etc/postfix/{aliases,access,canonical,relocated,transport,virtual}.db
|
||||
touch $PKG/etc/postfix/relay-domains
|
||||
touch $PKG/etc/postfix/header-checks
|
||||
touch $PKG/etc/postfix/body-checks
|
||||
touch $PKG/etc/postfix/mime-header-checks
|
||||
}
|
54
postfix/README
Normal file
54
postfix/README
Normal file
@ -0,0 +1,54 @@
|
||||
|
||||
REQUIREMENTS
|
||||
|
||||
1. Remove Sendmail. Postfix and Sendmail can NOT coexist.
|
||||
|
||||
2. Group "postdrop" MUST exist and MUST be empty.
|
||||
|
||||
PRE-INSTALL
|
||||
|
||||
pkgrm sendmail
|
||||
groupadd postdrop
|
||||
|
||||
NOTICE: If upgrading from 1.x.x / 2.0 / 2.1 series: STOP postfix
|
||||
before update.
|
||||
|
||||
AFTER upgrading from an older release DO NOT copy the old
|
||||
master.cf/main.cf files over the new files. Instead, you MUST
|
||||
let the Postfix installation procedure update the existing
|
||||
configuration files with new service entries.
|
||||
|
||||
Please consult postfix release notes on Postfix website for
|
||||
further update details.
|
||||
|
||||
POST-INSTALL
|
||||
|
||||
cd /etc/postfix
|
||||
|
||||
sh post-install \
|
||||
manpage_directory=/usr/man \
|
||||
command_directory=/usr/sbin \
|
||||
config_directory=/etc/postfix \
|
||||
setgid_group=postdrop \
|
||||
mail_owner=mail \
|
||||
upgrade-package
|
||||
|
||||
sh post-install \
|
||||
command_directory=/usr/sbin \
|
||||
config_directory=/etc/postfix \
|
||||
setgid_group=postdrop \
|
||||
mail_owner=mail \
|
||||
create-missing
|
||||
|
||||
Rebuild hash maps:
|
||||
|
||||
/usr/sbin/postalias /etc/postfix/aliases
|
||||
/usr/sbin/postmap hash:/etc/postfix/{virtual,relocated,access,transport}
|
||||
|
||||
MISCELLANEOUS
|
||||
|
||||
The packager of this port (Victor) also supplied an example
|
||||
configuration and some notes. I've separated them from this port. You
|
||||
can get them here:
|
||||
|
||||
http://hometux.de/crux/postfix_victor.tar.gz
|
35
postfix/aliases
Normal file
35
postfix/aliases
Normal file
@ -0,0 +1,35 @@
|
||||
######################################################################
|
||||
# Run "newaliases" after updating this file.
|
||||
######################################################################
|
||||
|
||||
######################################################################
|
||||
# Basic system aliases
|
||||
######################################################################
|
||||
MAILER-DAEMON: postmaster
|
||||
postmaster: root
|
||||
hostmaster: root
|
||||
|
||||
######################################################################
|
||||
# General redirections for pseudo accounts and common names
|
||||
######################################################################
|
||||
abuse: postmaster
|
||||
bin: root
|
||||
daemon: root
|
||||
decode: root
|
||||
games: root
|
||||
mail: root
|
||||
named: root
|
||||
nobody: root
|
||||
system: root
|
||||
uucp: root
|
||||
ftp: root
|
||||
postfix: root
|
||||
manager: root
|
||||
dumper: root
|
||||
operator: root
|
||||
webmaster: root
|
||||
|
||||
######################################################################
|
||||
# Person who should get root's mail.
|
||||
######################################################################
|
||||
#root: user@hostname
|
21
postfix/post-install
Executable file
21
postfix/post-install
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /etc/postfix
|
||||
|
||||
/bin/sh post-install \
|
||||
manpage_directory=/usr/man \
|
||||
command_directory=/usr/sbin \
|
||||
config_directory=/etc/postfix \
|
||||
setgid_group=postdrop \
|
||||
mail_owner=mail \
|
||||
upgrade-package
|
||||
|
||||
/bin/sh post-install \
|
||||
command_directory=/usr/sbin \
|
||||
config_directory=/etc/postfix \
|
||||
setgid_group=postdrop \
|
||||
mail_owner=mail \
|
||||
create-missing
|
||||
|
||||
/usr/sbin/postalias /etc/postfix/aliases
|
||||
/usr/sbin/postmap hash:/etc/postfix/{virtual,relocated,access,transport}
|
52
postfix/postfix.rc
Normal file
52
postfix/postfix.rc
Normal file
@ -0,0 +1,52 @@
|
||||
#!/bin/sh
|
||||
######################################################################
|
||||
# postfix: starts/stops postfix daemon
|
||||
# description: Postfix is a Mail Transport Agent, which is the program
|
||||
# that moves mail from one machine to another.
|
||||
######################################################################
|
||||
|
||||
daemon="/usr/sbin/postfix"
|
||||
config="/etc/postfix"
|
||||
|
||||
######################################################################
|
||||
# Sanity Check
|
||||
######################################################################
|
||||
[ -x $daemon ] || exit 1
|
||||
|
||||
######################################################################
|
||||
# Uncomment these if you want to rebuild aliases on restart
|
||||
######################################################################
|
||||
#/usr/sbin/postalias hash:$config/aliases
|
||||
#/usr/sbin/postmap hash:$config/{access,canonical,relocated,transport,virtual}
|
||||
#/usr/sbin/postmap hash:$config/access.{client,helo,sender,recpnt}
|
||||
|
||||
######################################################################
|
||||
# Start/Stop/Reload/Status Functions
|
||||
######################################################################
|
||||
status() {
|
||||
base=${daemon##*/}
|
||||
dpid=`pidof -o $$ -o $PPID -o %PPID -x ${base}`
|
||||
if [ "$dpid" != "" ]; then
|
||||
echo "${base} (pid $dpid) is running..."
|
||||
elif [ -s /var/run/${base}.pid ]; then
|
||||
echo "${base} is dead but pid file exists..."
|
||||
else
|
||||
echo "${base} is stopped."
|
||||
fi
|
||||
return
|
||||
}
|
||||
######################################################################
|
||||
# See how we were called
|
||||
######################################################################
|
||||
case "$1" in
|
||||
start) $daemon start ;;
|
||||
stop) $daemon stop ;;
|
||||
reload) $daemon reload ;;
|
||||
restart) $daemon reload ;;
|
||||
status) status ;;
|
||||
abort) $daemon abort ;;
|
||||
flush) $daemon flush ;;
|
||||
check) $daemon check ;;
|
||||
*) echo "Usage: $0 {start|stop|reload|restart|status|abort|flush|check}" ; exit 1 ;;
|
||||
esac
|
||||
exit $?
|
4
postfix/pre-install
Executable file
4
postfix/pre-install
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
/usr/bin/pkgrm sendmail
|
||||
/usr/sbin/groupadd postdrop
|
Loading…
x
Reference in New Issue
Block a user