has Postfix new location of aliases.db?

Sahil Tandon sahil at tandon.net
Fri Jun 5 04:25:04 UTC 2009


On Thu, 04 Jun 2009, Miroslav Lachman wrote:

[...]

> As you can see, file /etc/mail/aliases was modified (target of symlink)  
> and then aliases.db was generated by `newaliases` command as 
> /etc/aliases.db
>
> Above is with postfix-2.5.6,1 on FreeBSD 7.2-RELEASE #0: Fri May  1  
> 08:49:13 UTC 2009    GENERIC  i386
>
> This is with new postfix-2.6.1,1:
> # postconf -d | grep aliases
> alias_database = hash:/etc/mail/aliases
> alias_maps = hash:/etc/mail/aliases

This was introduced with ports/134728, in which ALIAS_DB_MAP is compiled
in as hash:/etc/mail/aliases.  I've rolled this back to the default value,
which is system-dependent and chosen by ${WRKSRC}/src/util/sys_defs.h, which
in turn relies on the ${WRKSRC}/makedefs script.

> newaliases_path = /usr/local/bin/newaliases

This is intentional and a good thing.  In mail/postfix prior to 2.6.x, the
change was made in main.cf instead of being compiled in as a default; this
is why you do not see it when viewing the *default* postconf output in 2.5.x;
try postconf newaliases_path (i.e. without the -d flag).

> And this is with older postfix-2.5.6,1:
> # postconf -d | grep aliases
> alias_database = hash:/etc/aliases
> alias_maps = hash:/etc/aliases
>
> There is definitely incompatible change in defaults :o(

Indeed.  The attached patch (also filed as ports/135273) updates Postfix to
2.6.2 and makes the aforementioned changes.  As a result, I don't think we
need to touch ports/UPDATING.

-- 
Sahil Tandon <sahil at tandon.net>
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/postfix/Makefile,v
retrieving revision 1.146
diff -u -r1.146 Makefile
--- Makefile	4 Jun 2009 07:45:27 -0000	1.146
+++ Makefile	5 Jun 2009 03:51:28 -0000
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	postfix
-PORTVERSION=	2.6.1
-PORTREVISION=	1
+PORTVERSION=	2.6.2
 PORTEPOCH=	1
 CATEGORIES=	mail ipv6
 MASTER_SITES=	ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \
@@ -99,7 +98,6 @@
 			-DDEF_DATA_DIR=\\\"/var/db/postfix\\\" \
 			-DDEF_MAIL_OWNER=\\\"postfix\\\" \
 			-DDEF_SGID_GROUP=\\\"maildrop\\\" \
-			-DALIAS_DB_MAP=\\\"hash:/etc/mail/aliases\\\"
 
 # Default requirement for postfix rc script
 _REQUIRE=		LOGIN cleanvar
@@ -194,6 +192,7 @@
 .endif
 
 .if defined(WITH_VDA)
+IGNORE=			wait for a new VDA patch that works with ${PORTVERSION}
 PATCH_SITES+=		http://vda.sourceforge.net/VDA/
 PATCHFILES+=		postfix-${PORTVERSION}-vda-ng.patch.gz
 PATCH_DIST_STRIP=	-p1
@@ -232,7 +231,6 @@
 		s!^(manpage_directory =)!\1 ${PREFIX}/man!g;\
 		s!^((html|readme)_directory =)!\1 ${READMEDIR}!g;\
 		\!^\#alias_database = dbm:/etc/mail/aliases$$!d;\
-		s!/etc/aliases!/etc/mail/aliases!g;\
 		s!(:|= )/etc/postfix!\1$$config_directory!g;\
 		s!/etc/postfix!${ETCDIR}!g;\
 		s!^(sample_directory =)!\1 ${ETCDIR}!g;\
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/mail/postfix/distinfo,v
retrieving revision 1.100
diff -u -r1.100 distinfo
--- distinfo	26 May 2009 13:36:08 -0000	1.100
+++ distinfo	5 Jun 2009 03:51:28 -0000
@@ -1,6 +1,3 @@
-MD5 (postfix/postfix-2.6.1.tar.gz) = 737bbc245da9c72c174893397f70ae86
-SHA256 (postfix/postfix-2.6.1.tar.gz) = ccad7fb855e31c57f3551244b76be5906fcdcde09d5a6ccd144ae144e1df203c
-SIZE (postfix/postfix-2.6.1.tar.gz) = 3324194
-MD5 (postfix/postfix-2.6.1-vda-ng.patch.gz) = 33d62623badc3f754ac9620e3ed2c3b8
-SHA256 (postfix/postfix-2.6.1-vda-ng.patch.gz) = cbc924891385b1ca7ca82b5bce89b9eadac53eca772c1291db1307b8a2eef720
-SIZE (postfix/postfix-2.6.1-vda-ng.patch.gz) = 12662
+MD5 (postfix/postfix-2.6.2.tar.gz) = 1f0edbd521d2b0473626f4d61e8bb4eb
+SHA256 (postfix/postfix-2.6.2.tar.gz) = 025acf080bbe279cbc6e8e6806ecd0f99af41c8ca384fcb2f7631988f73d5f7c
+SIZE (postfix/postfix-2.6.2.tar.gz) = 3323255


More information about the freebsd-ports mailing list