Procházet zdrojové kódy

postfixadmin configuration

master
rodič
revize
997bdf21a5
9 změnil soubory, kde provedl 27 přidání a 2 odebrání
  1. +6
    -2
      tasks/postfixadmin.yml
  2. +21
    -0
      templates/main.cf.j2
  3. +0
    -0
      templates/sql/mysql_virtual_alias_domain_catchall_maps.cf.j2
  4. +0
    -0
      templates/sql/mysql_virtual_alias_domain_mailbox_maps.cf.j2
  5. +0
    -0
      templates/sql/mysql_virtual_alias_domain_maps.cf.j2
  6. +0
    -0
      templates/sql/mysql_virtual_alias_maps.cf.j2
  7. +0
    -0
      templates/sql/mysql_virtual_domains_maps.cf.j2
  8. +0
    -0
      templates/sql/mysql_virtual_mailbox_limit_maps.cf.j2
  9. +0
    -0
      templates/sql/mysql_virtual_mailbox_maps.cf.j2

+ 6
- 2
tasks/postfixadmin.yml Zobrazit soubor

@@ -4,11 +4,15 @@
file:
path: /etc/postfix/sql/
state: directory
mode: u=rwx,g=rx,o=
group: postfix

- name: postfix sql map configuration
- name: postfixadmin sql map configuration
template:
src: "{{item}}.j2"
src: sql/{{item}}.j2
dest: /etc/postfix/sql/{{item}}
mode: u=rwx,g=rx,o=
group: postfix
with_items:
- mysql_virtual_alias_domain_catchall_maps.cf
- mysql_virtual_alias_domain_maps.cf


+ 21
- 0
templates/main.cf.j2 Zobrazit soubor

@@ -42,3 +42,24 @@ mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all

virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
virtual_alias_maps =
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
virtual_mailbox_maps =
proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf

# if you let postfix store your mails directly (without using maildrop, dovecot deliver etc.)
#virtual_mailbox_base = /var/mail/vmail
# or whereever you want to store the mails

# Additional for quota support
#virtual_create_maildirsize = yes
#virtual_mailbox_extended = yes
#virtual_mailbox_limit_maps = mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
#virtual_overquota_bounce = yes

templates/mysql_virtual_alias_domain_catchall_maps.cf.j2 → templates/sql/mysql_virtual_alias_domain_catchall_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_alias_domain_mailbox_maps.cf.j2 → templates/sql/mysql_virtual_alias_domain_mailbox_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_alias_domain_maps.cf.j2 → templates/sql/mysql_virtual_alias_domain_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_alias_maps.cf.j2 → templates/sql/mysql_virtual_alias_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_domains_maps.cf.j2 → templates/sql/mysql_virtual_domains_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_mailbox_limit_maps.cf.j2 → templates/sql/mysql_virtual_mailbox_limit_maps.cf.j2 Zobrazit soubor


templates/mysql_virtual_mailbox_maps.cf.j2 → templates/sql/mysql_virtual_mailbox_maps.cf.j2 Zobrazit soubor


Načítá se…
Zrušit
Uložit