Skip to content

Instantly share code, notes, and snippets.

@dragonmantank
Last active August 6, 2018 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragonmantank/8898fa1ae84ae344709f1954c609c44b to your computer and use it in GitHub Desktop.
Save dragonmantank/8898fa1ae84ae344709f1954c609c44b to your computer and use it in GitHub Desktop.
Soveriegn postfix change
// 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