No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. secret_root: '{{ inventory_dir | realpath }}'
  2. secret_name: 'secret'
  3. secret: '{{ secret_root + "/" + secret_name }}'
  4. # must match values in roles/common
  5. db_admin_username: 'postgres'
  6. db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password length=32') }}"
  7. mail_db_username: 'mailuser'
  8. mail_db_password: "{{ lookup('password', secret + '/' + 'mail_db_password length=32') }}"
  9. mail_db_database: 'mailserver'
  10. mail_server_subdomain: "mail"
  11. mail_server_hostname: "{{ mail_server_subdomain }}.{{ domain }}"
  12. mail_server_autoconfig_hostname: "autoconfig.{{ domain }}"
  13. mail_header_privacy: 1
  14. friendly_networks:
  15. - ""
  16. virtual_domains:
  17. - name: "{{ domain }}"
  18. pk_id: 1
  19. doc_root: "/var/www/{{ domain }}"
  20. mail_virtual_users:
  21. - account: "{{ main_user_name }}"
  22. domain: "{{ domain }}"
  23. password: "{{ lookup('password', secret + '/' + 'mail_main_user_password length=20') | doveadm_pw_hash }}"
  24. domain_pk_id: 1
  25. mail_virtual_aliases:
  26. - source: "root@{{ domain }}"
  27. destination: "{{ admin_email }}"
  28. domain_pk_id: 1
  29. - source: "postmaster@{{ domain }}"
  30. destination: "{{ admin_email }}"
  31. domain_pk_id: 1
  32. - source: "webmaster@{{ domain }}"
  33. destination: "{{ admin_email }}"
  34. domain_pk_id: 1
  35. - source: "abuse@{{ domain }}"
  36. destination: "{{ admin_email }}"
  37. domain_pk_id: 1
  38. zpush_timezone: "{{ common_timezone | default('Etc/UTC') }}"