explain the difference between alias_maps and alias_database

This commit is contained in:
Florian Ermisch 2017-08-24 13:35:24 +02:00 committed by Wurzel Kollektiv
parent c60c3bab6f
commit f514881e5a
2 changed files with 5 additions and 1 deletions

View file

@ -36,6 +36,9 @@ postfix:
# Alias
alias_maps: hash:/etc/aliases
# This is the list of files for the newaliases
# cmd to process (see postconf(5) for details).
# Only local hash/btree/dbm files:
alias_database: hash:/etc/aliases
# Virtual users

View file

@ -1,7 +1,7 @@
{%- from "postfix/map.jinja" import postfix with context -%}
{%- set config = salt['pillar.get']('postfix:config', {}) -%}
{#- TODO: alias_maps probably belongs here, too: #}
{%- set processed_parameters = [
'aliases_file',
'virtual_alias_maps',
'smtp_sasl_password_maps',
'sender_canonical_maps',
@ -74,6 +74,7 @@
{%- endif %}
{{ set_parameter('myhostname', grains['fqdn']) }}
{#- TODO: The following two may not be the same: #}
{{ set_parameter('alias_maps', 'hash:' ~ postfix.aliases_file) }}
{{ set_parameter('alias_database', 'hash:' ~ postfix.aliases_file) }}
{{ set_parameter('mydestination', [grains['fqdn'], 'localhost', 'localhost.localdomain', grains['domain']]) }}