---

postfixadmin_version: '3.3.10'
postfixadmin_installation_prefix: /opt/postfixadmin

postfixadmin_default_language: en

postfixadmin_database_type: mysqli
postfixadmin_database_host: localhost
postfixadmin_database_user: postfixadmin
postfixadmin_database_user_host: localhost
postfixadmin_database_name: postfixadmin
postfixadmin_database_socket: /run/mysqld/mysqld.sock
postfixadmin_database_port: 0  # socket by default
postfixadmin_database_prefix: ''

postfixadmin_smtp_server: localhost
postfixadmin_smtp_port: 25
postfixadmin_smtp_client: '{{ ansible_fqdn }}'

postfixadmin_encrypt: 'php_crypt:BLOWFISH'
postfixadmin_password_validation:
  '/.{5}/': 'password_too_short 5'
  '/([a-zA-Z].*){3}/': 'password_no_characters 3'
  '/([0-9].*){2}/': 'password_no_digits 2'

postfixadmin_generate_password: no
postfixadmin_show_password: no
postfixadmin_page_size: 25

postfixadmin_default_aliases:
  abuse: 'abuse@{{ ansible_domain }}'
  hostmaster: 'hostmaster@{{ ansible_domain }}'
  postmaster: 'postmaster@{{ ansible_domain }}'
  webmaster: 'webmaster@{{ ansible_domain }}'

postfixadmin_domain_path: yes
postfixadmin_domain_in_mailbox: no

postfixadmin_aliases: 10
postfixadmin_mailboxes: 10
postfixadmin_maxquota: 10
postfixadmin_domain_quota_default: 2048
postfixadmin_quota: no
postfixadmin_domain_quota: yes

postfixadmin_transport: no
postfixadmin_transport_options:
  - lmtp:unix:private/dovecot-lmtp
postfixadmin_alias_domain: yes
postfixadmin_backup: no
postfixadmin_sendmail: yes
postfixadmin_sendmail_all_admins: no
postfixadmin_fetchmail: yes
postfixadmin_forgotten_user_password_reset: yes
postfixadmin_forgotten_admin_password_reset: no
postfixadmin_password_expiration: no
postfixadmin_show_header_text: no
postfixadmin_header_text: ':: Postfix Admin ::'
postfixadmin_show_footer_text: yes
postfixadmin_footer_text: 'Return to change-this-to-your.domain.tld'
postfixadmin_footer_link: 'http://change-this-to-your.domain.tld'
postfixadmin_emailcheck_resolve_domain: yes
postfixadmin_welcome_text: |
  Hi,

  Welcome to your new mail account. You can manage your account at
  {{ postfixadmin_base_url }}/users/login.php

  If you have any problems or questions, feel free send us an email to
  {{ postfixadmin_admin_email }}.

  Regards
  {{ postfixadmin_admin_name }}

postfixadmin_create_mailbox_subdirs_prefix: ''
postfixadmin_base_url: 'http://localhost/postfixadmin'

postfixadmin_bootstrap_login_user: root
postfixadmin_bootstrap_login_password: ''  # attempt passwordless root login by default
postfixadmin_bootstrap_base_url: '{{ postfixadmin_base_url }}'
postfixadmin_database_postfix_user_host: localhost
postfixadmin_database_postfix_user: postfix
postfixadmin_database_postfix_hosts: 'unix:/run/mysqld/mysqld.sock'
postfixadmin_database_dovecot_user: postfix
postfixadmin_database_dovecot_hosts: '/run/mysqld/mysqld.sock'
# This permits disabled users to still read their mail, but will not allow them to send mail.
postfixadmin_permit_inactive_user_nosmtp: no
# allow login as <user> in addition to <user>@<domain>
# Only set this when when you're only serving a single domain or can otherwise avoid conflicts
postfixadmin_permit_localpart_login: no

postfixadmin_additional_config: ''

virtual_mail_home: /home/virtual
virtual_mail_uid: virtual
virtual_mail_gid: virtual