X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/d60c3d0624872eacb41ee95e2cc29ae88a0372f9..4ae7df074f5a9241c4e2590562efc45defc9f579:/roles/postfix/templates/mysql_vmail_aliases.cf diff --git a/roles/postfix/templates/mysql_vmail_aliases.cf b/roles/postfix/templates/mysql_vmail_aliases.cf new file mode 100644 index 0000000..26bae72 --- /dev/null +++ b/roles/postfix/templates/mysql_vmail_aliases.cf @@ -0,0 +1,8 @@ +# Map an email address to the actual username/email address mail should go to. +# I do not think that mapping to an alias here will work properly for the sender check, +# so always map to a username. +user = vmail +password = {{ postfix.vmail_mysql_password }} +hosts = localhost +dbname = vmail +query = SELECT user FROM aliases WHERE mail='%s'