From ccb6a986ac6ae652a9b25ffb97538bb82bf9d553 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 6 Jun 2015 20:17:48 +0200 Subject: Provide Thunderbird autoconfiguration. References: - https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration - https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration/FileFormat/HowTo - https://wiki.mozilla.org/Thunderbird:Autoconfiguration:ConfigFileFormat --- roles/wiki/files/etc/nginx/sites-available/website | 3 ++ .../fripost.org/autoconfig/mail/config-v1.1.xml | 39 ++++++++++++++++++++++ roles/wiki/tasks/main.yml | 12 +++++++ 3 files changed, 54 insertions(+) create mode 100644 roles/wiki/files/var/www/fripost.org/autoconfig/mail/config-v1.1.xml diff --git a/roles/wiki/files/etc/nginx/sites-available/website b/roles/wiki/files/etc/nginx/sites-available/website index 0c25f4e..3513510 100644 --- a/roles/wiki/files/etc/nginx/sites-available/website +++ b/roles/wiki/files/etc/nginx/sites-available/website @@ -42,6 +42,9 @@ server { location /minutes/ { alias /var/www/fripost.org/minutes/; } + location /.well-known/autoconfig/ { + alias /var/www/fripost.org/autoconfig/; + } location = /ikiwiki.cgi { return 403; diff --git a/roles/wiki/files/var/www/fripost.org/autoconfig/mail/config-v1.1.xml b/roles/wiki/files/var/www/fripost.org/autoconfig/mail/config-v1.1.xml new file mode 100644 index 0000000..e70b0be --- /dev/null +++ b/roles/wiki/files/var/www/fripost.org/autoconfig/mail/config-v1.1.xml @@ -0,0 +1,39 @@ + + + + fripost.org + + Fripost &endash; demokratisk e-post + Fripost + + + imap.fripost.org + 993 + SSL + %EMAILADDRESS% + password-cleartext + + + + smtp.fripost.org + 587 + STARTTLS + %EMAILADDRESS% + password-cleartext + + + + Configure your email client for Fripost + Konfigurerar din e-postklient för Fripost + + + + + + + %EMAILADDRESS% + + + + + diff --git a/roles/wiki/tasks/main.yml b/roles/wiki/tasks/main.yml index c8a0d0f..7aa4d1d 100644 --- a/roles/wiki/tasks/main.yml +++ b/roles/wiki/tasks/main.yml @@ -99,3 +99,15 @@ - wiki notify: - Restart Nginx + +- name: Create directory /var/www/fripost.org/autoconfig/mail + file: path=/var/www/fripost.org/autoconfig/mail + state=directory + owner=root group=root + mode=0755 + +- name: Copy /var/www/fripost.org/autoconfig/mail/config-v1.1.xml + copy: src=var/www/fripost.org/autoconfig/mail/config-v1.1.xml + dest=/var/www/fripost.org/autoconfig/mail/config-v1.1.xml + owner=root group=root + mode=0644 -- cgit v1.2.3