Closed adborden closed 3 years ago
postmap fails with this error if you run it with the regexp hash type. It's not well documented, but it seems you shouldn't run postmap when using the regexp database type.
postalias: fatal: unsupported dictionary type: regexp. Is the postfix-regexp package installed?
Running the role with this configuration:
postfix_install: - postfix - postfix-pcre # needed for regexp database type - mailutils - libsasl2-2 - sasl2-bin - libsasl2-modules postfix_default_database_type: regexp postfix_recipient_canonical_maps: - recipient: /./ rewrite: root
Ansible output:
RUNNING HANDLER [oefenweb.postfix : new aliases] ************************************************************************************************************* fatal: [catalog-harvester-next1tf.internal.sandbox.datagov.us]: FAILED! => {"changed": true, "cmd": ["newaliases"], "delta": "0:00:01.008573", "end": "2020-06-19 22:31:53.948906", "msg": "non-zero return code", "rc": 1, "start": "2020-06-19 22:31:52.940333", "stderr": "postalias: fatal: unsupported dictionary type: regexp. Is the postfix-regexp package installed?", "stderr_lines": ["postalias: fatal: unsupported dictionary type: regexp. Is the postfix-regexp package installed?"], "stdout": "", "stdout_lines": []}
Fixed in https://github.com/Oefenweb/ansible-postfix/releases/tag/v3.2.0
postmap fails with this error if you run it with the regexp hash type. It's not well documented, but it seems you shouldn't run postmap when using the regexp database type.
Running the role with this configuration:
Ansible output: