extend postfix: vmail and more
[ansible.git] / roles / postfix / templates / mysql_vmail_senders.cf
diff --git a/roles/postfix/templates/mysql_vmail_senders.cf b/roles/postfix/templates/mysql_vmail_senders.cf
new file mode 100644 (file)
index 0000000..de5dcd6
--- /dev/null
@@ -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 senders WHERE sender='%s'