﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
19052	postfix lmdb changes miss defaults of hash:	ken@…	ken@…	"Building postfix-3.8.3 for a desktop machine which will only use it to send to my local server, I used the command in the book,
{{{
echo 'default_database_type = lmdb' >> /etc/postfix/main.cf
}}}

but when I ran 'newaliases' that failed:
{{{
postalias: fatal: unsupported map type: hash
}}}

The reason is that the defaults (in /etc/postfix/main.cf.default) include:
{{{
alias_database = hash:/etc/aliases
alias_maps = lmdb:/etc/aliases
}}}

That default file is headed
{{{
# DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE
# TEXT HERE JUST SHOWS DEFAULT SETTINGS BUILT INTO POSTFIX.
#
}}}

So I added two more echo commands:
{{{
echo 'alias_database = lmdb:/etc/aliases' >> /etc/postfix/main.cf
echo 'alias_maps = lmdb:/etc/aliases' >> /etc/postfix/main.cf
}}}

and with those 'newaliases' succeeds and created the lmdb:
{{{
-rw-r--r-- 1 root root    71 Dec 23 17:38 /mnt/lfs/etc/aliases
-rw-r--r-- 1 root root 12288 Dec 23 21:49 /mnt/lfs/etc/aliases.lmdb
}}}"	defect	closed	normal	12.1	BOOK	git	medium	fixed		
