Skip to content

Latest commit

 

History

History
96 lines (79 loc) · 5.16 KB

README.md

File metadata and controls

96 lines (79 loc) · 5.16 KB

autconfig

Creates autoconfig for automatic configuration of thunderbird.

Requirements

Needs a running webserver serving the /var/www/autoconfig/autoconfig.php script for all requests. Also a running php-fpm setup.

Role Variables

Name Required/Default Description
autoconfig_server ✔️ Ldap URI for the ldap server.
autoconfig_user_dn ✔️ User DN for the binding user.
autoconfig_password ✔️ Password for binding dn user.
autoconfig_tree ✔️ Base DN for binding.
autoconfig_user_filter ✔️ User filter. %m gets replaced with the mail address of the user. Example: (mail=%m).
autoconfig_id ✔️ The ID used in the Thunderbird autoconfiguration
autoconfig_name ✔️ Name of the configuration
autoconfig_short_name ✔️ Short name of the configuration
autoconfig_incoming_server [] List of list of dicts
autoconfig_outgoing_server [] List of list of dicts
autoconfig_documentation [] List of list of dicts

incoming-server

Name Required/Default Description
hostname ✔️ Hostname for the imap server.
port ✔️ Port for the imap server.
socketType ✔️ SocketType for the imap server (STARTTLS, SSL ...)
authentication ✔️ Authentication for imap server (password-encrypted, password-cleartext ...).

outgoing-server

Name Required/Default Description
hostname ✔️ Hostname for the smtp server.
port ✔️ Port for the smtp server.
socketType ✔️ SocketType for the smtp server (STARTTLS, SSL ...)
authentication ✔️ Authentication for smtp server (password-encrypted, password-cleartext ...).

documentation

Name Required/Default Description
url ✔️ URL for the documentation
de ✔️ German documentation string
en ✔️ English documentation string

Example

autoconfig_server: 'ldaps://ldap.examle.de/';
autoconfig_user_dn: uid=myuser,ou=people,dc=example,dc=de"
autoconfig_password: "mypassword"
autoconfig_tree: dc=base,dc=de
php_fpm_pools:
  - name: autoconfig
    listen: /run/php/php-fpm-autoconfig.sock
    user: www-data
    group: www-data
    listen_owner: www-data
    pm: static
    pm_max_children: 20
    error_log: syslog
served_domains:
  - domains:
    - autoconfig.stuvus.uni-stuttgart.de.
    privkey_path: /etc/ssl/autoconfig_privkey.pem
    fullchain_path: /etc/ssl/autoconfig_fullchain.pem
    default_server: false
    allowed_ip_ranges:
      - 129.69.139.0/25
    https: true
    crypto: true
    root: /var/www/autoconfig
    locations:
      - condition: /
        content: |
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $document_root/autoconfig.php;
          fastcgi_intercept_errors on;
          fastcgi_pass unix:/run/php/php-fpm-autoconfig.sock;
    index_files:
      - autoconfig.php

License

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Author Information