Closed toebivankenoebi closed 5 years ago
Added the possibility of configuring the default_database_type for all database type that support postmap.
defaults/main.yml: postfix_default_database_type: hash templates/etc/postfix/main.j2: replace hash with variable name {{ postfix_default_database_type }} handlers/main.yml: replace hash with variable name {{ postfix_default_database_type }}
postfix_default_database_type: hash
hash
{{ postfix_default_database_type }}
Can be configured in playbook for example like: postfix_default_database_type: btree
postfix_default_database_type: btree
can be configured the same way as sender_canonical_maps
Added the possibility to add header checks
Needs at least two options: pattern, action Optionally can handle a third option: text
pattern
action
text
Added task, handler, lines in main.cfg and a header_checks.j2 template  It can be configured like the following:
postfix_header_checks: - pattern: '<some pattern>' action: "<action>" , action like "REPLACE" text: "<some optional text if needed>" - pattern ....
Additional option: postfix_header_check_format default: regexp
postfix_header_check_format
Configures /etc/postfix/main.cfg: smtp_header_checks = {{ postfix_header_check_format }}:/etc/postfix/header_checks
smtp_header_checks = {{ postfix_header_check_format }}:/etc/postfix/header_checks
Configures /etc/postfix/header_checks: {{ pattern }} {{ action }} {{ text }}
{{ pattern }} {{ action }} {{ text }}
Hi, what's the ETA for this PR ?
Can someone make this PR up-2-date?
Looks good! Thanks for resolving the conflicts
default_database_type
Added the possibility of configuring the default_database_type for all database type that support postmap.
defaults/main.yml:
postfix_default_database_type: hash
templates/etc/postfix/main.j2: replacehash
with variable name{{ postfix_default_database_type }}
handlers/main.yml: replacehash
with variable name{{ postfix_default_database_type }}
Can be configured in playbook for example like:
postfix_default_database_type: btree
recipient_canonical_maps
can be configured the same way as sender_canonical_maps
header_checks
Added the possibility to add header checks
Needs at least two options:
pattern
,action
Optionally can handle a third option:text
Added task, handler, lines in main.cfg and a header_checks.j2 template  It can be configured like the following:
Additional option:
postfix_header_check_format
default: regexpConfigures /etc/postfix/main.cfg:
smtp_header_checks = {{ postfix_header_check_format }}:/etc/postfix/header_checks
Configures /etc/postfix/header_checks:
{{ pattern }} {{ action }} {{ text }}