__postfix_postmap breaks when using hashes #188

Closed
opened 2021-11-20 15:21:03 +00:00 by ungleich-gitea · 2 comments

Created by: telmich

__postfix_postmap "hash:/etc/postfix/transport"

results in

INFO: mailman.ungleich.ch: Executing code for __postfix_postmap/hash:/etc/postfix/transport
postmap: fatal: dict_mkmap_func: unsupported dictionary type: /hash: Is the postfix-/hash package installed?
ERROR: mailman.ungleich.ch: Command failed: ssh -o User=root -q mailman.ungleich.ch __object_id=hash:/etc/postfix/transport __object=/var/lib/cdist/object/__postfix_postmap/hash:/etc/postfix/transport/.cdist /bin/sh -e /var/lib/cdist/object/__postfix_postmap/hash:/etc/postfix/transport/.cdist/code-remote

problem: the / should not be there in case it is a hash

*Created by: telmich* __postfix_postmap "hash:/etc/postfix/transport" results in INFO: mailman.ungleich.ch: Executing code for __postfix_postmap/hash:/etc/postfix/transport postmap: fatal: dict_mkmap_func: unsupported dictionary type: /hash: Is the postfix-/hash package installed? ERROR: mailman.ungleich.ch: Command failed: ssh -o User=root -q mailman.ungleich.ch __object_id=hash:/etc/postfix/transport __object=/var/lib/cdist/object/__postfix_postmap/hash:/etc/postfix/transport/.cdist /bin/sh -e /var/lib/cdist/object/__postfix_postmap/hash:/etc/postfix/transport/.cdist/code-remote problem: the / should not be there in case it is a hash
ungleich-gitea added the
Stale
label 2021-11-20 15:21:03 +00:00
Author
Owner

closed

closed
Author
Owner

Created by: telmich

@asteven I saw that I can (should) use the filename directly with postmap (so my problem does not really exist), HOWEVER I saw in postmap(1) that there are actually various db types to be supported.

What do you think about adding --type to the type, to be used in front of the filename / as the db type?

*Created by: telmich* @asteven I saw that I can (should) use the filename directly with postmap (so my problem does not really exist), HOWEVER I saw in postmap(1) that there are actually various db types to be supported. What do you think about adding --type to the type, to be used in front of the filename / as the db type?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#188
No description provided.