Last active
August 6, 2018 13:47
-
-
Save dragonmantank/8898fa1ae84ae344709f1954c609c44b to your computer and use it in GitHub Desktop.
Soveriegn postfix change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// roles/mailserver/templates/etc_postfix_pgsql-email2email.cf.j2 | |
user = {{ mail_db_username }} | |
password = {{ mail_db_password }} | |
hosts = 127.0.0.1 | |
dbname = {{ mail_db_database }} | |
query = SELECT email FROM virtual_users WHERE email='%s' | |
// Changed this line in roles/mailserver/templates/etc_postfix_main.cf.j2 | |
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf,pgsql:/etc/postfix/pgsql-email2email.cf | |
// Add this to the following named section in roles/mailserver/tasks/postfix.yml | |
name: Copy additional postfix configuration files | |
// ... | |
- pgsql-email2email.cf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment