postfix: fixed alias_maps/alias_database options in main.cf

This commit is contained in:
Simon Gloßner 2007-08-11 14:58:49 +02:00
parent b8808646e3
commit 80d5cffc68
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,4 @@
be543b65525f544386a2d8395ea19cdf aliases
ceba0cde05d12baa0ba2ed69fbb96b42 postfix-2.4.5.tar.gz
8bee559587e2ccbaf0aadd88b6ca339a postfix.patch
d18be5c17604f9c712a28339ff0f61cb postfix.rc

View File

@ -8,11 +8,13 @@ name=postfix
version=2.4.5
release=1
source=(ftp://ftp.porcupine.org/mirrors/postfix-release/official/$name-$version.tar.gz
aliases postfix.rc)
aliases postfix.rc postfix.patch)
build() {
cd $name-$version
patch -p1 < $SRC/postfix.patch
_CCARGS="$CCARGS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl -DUSE_TLS -I/usr/include/openssl"
_AUXLIBS="-L/usr/lib -lsasl2 -lssl -lcrypto"

19
postfix/postfix.patch Normal file
View File

@ -0,0 +1,19 @@
diff -Nru postfix-2.4.5/conf/main.cf postfix-2.4.5-new/conf/main.cf
--- postfix-2.4.5/conf/main.cf 2006-03-25 03:38:54.000000000 +0100
+++ postfix-2.4.5-new/conf/main.cf 2007-08-11 14:51:26.000000000 +0200
@@ -376,6 +376,7 @@
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
+alias_maps = hash:/etc/postfix/aliases
# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
@@ -386,6 +387,7 @@
#alias_database = dbm:/etc/mail/aliases
#alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
+alias_database = $alias_maps
# ADDRESS EXTENSIONS (e.g., user+foo)
#