#19052 closed defect (fixed)
postfix lmdb changes miss defaults of hash:
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 12.1 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description
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
Note:
See TracTickets
for help on using tickets.
Fixed in sha:r12.0-1055-g99492e8e