Opened 4 months ago

Closed 4 months ago

Last modified 4 months ago

#19052 closed defect (fixed)

postfix lmdb changes miss defaults of hash:

Reported by: ken@… Owned by: ken@…
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

Change History (1)

comment:1 by ken@…, 4 months ago

Resolution: fixed
Status: assignedclosed
Last edited 4 months ago by ken@… (previous) (diff)
Note: See TracTickets for help on using tickets.