2022-03-08 19:42:28 +01:00
<?xml version='1.0' encoding='UTF-8'?>
<rougail version= "0.10" >
<services >
<service name= "postfix" target= "multi-user" >
2023-06-23 08:12:05 +02:00
<override engine= "none" />
2023-02-14 14:24:16 +01:00
<certificate format= "pem" authority= "External" type= "server" domain= "submission_domainname" provider= "mail_crt_provider" certificate_type= "variable" > submission_domainname</certificate>
2023-06-23 08:12:05 +02:00
<certificate format= "pem" server= "last_server_name" domain= "last_server_name" authority= "InternalMail" owner= "postfix" type= "server" > postfixlocal</certificate>
2023-02-14 14:24:16 +01:00
<certificate authority= "Mail" owner= "postfix" type= "server" > postfix</certificate>
<certificate authority= "LDAP" owner= "postfix" server= "ldap_server_address" > postfix_ldap_client</certificate>
2022-03-08 19:42:28 +01:00
<file engine= "none" source= "sysuser-postfix.conf" > /sysusers.d/1postfix.conf</file>
<file engine= "none" source= "tmpfile-postfix.conf" > /tmpfiles.d/0postfix.conf</file>
2023-06-23 08:12:05 +02:00
<file engine= "ansible" > /etc/postfix/main.cf</file>
<file engine= "none" > /etc/postfix/master.cf</file>
<file engine= "ansible" > /etc/postfix/relay_passwd</file>
<file engine= "ansible" > /etc/postfix/ldapsource.cf</file>
<file engine= "ansible" > /etc/postfix/sni</file>
<file engine= "ansible" mode= "700" > /sbin/risotto_backup</file>
2022-03-08 19:42:28 +01:00
</service>
<service name= 'dovecot-init' >
2023-06-23 08:12:05 +02:00
<override engine= "none" />
<file engine= "none" > /etc/nginx/default.d/autoconfig.conf</file>
2022-03-08 19:42:28 +01:00
</service>
2022-03-29 16:30:38 +02:00
<service name= 'nginx' >
2023-06-23 08:12:05 +02:00
<file engine= "ansible" source= 'config-v1.1.xml' file_type= "variable" variable= "mail_domains" > well_known_filenames</file>
2022-03-29 16:30:38 +02:00
</service>
<service name= "dovecot" target= "multi-user" >
2023-02-14 14:24:16 +01:00
<certificate authority= "External" type= "server" domain= "imap_domainname" provider= "mail_crt_provider" certificate_type= "variable" > imap_domainname</certificate>
2023-06-23 08:12:05 +02:00
<certificate authority= "IMAP" domain= "last_server_name" owner= "dovecot" type= "server" > dovecot</certificate>
2022-03-08 19:42:28 +01:00
<file engine= "none" source= "sysuser-dovecot.conf" > /sysusers.d/1dovecot.conf</file>
<file engine= "none" source= "tmpfile-dovecot.conf" > /tmpfiles.d/0dovecot.conf</file>
<file engine= 'none' > /etc/dovecot/conf.d/10-logging.conf</file>
<file engine= 'none' > /etc/dovecot/conf.d/10-auth.conf</file>
<file engine= 'none' > /etc/dovecot/conf.d/10-mail.conf</file>
2023-06-23 08:12:05 +02:00
<file engine= "ansible" > /etc/dovecot/conf.d/10-master.conf</file>
<file engine= "ansible" > /etc/dovecot/conf.d/10-ssl.conf</file>
2022-03-08 19:42:28 +01:00
<file engine= 'none' > /etc/dovecot/conf.d/15-ldap.conf</file>
<file engine= 'none' > /etc/dovecot/conf.d/30-service-stats.conf</file>
<file engine= 'none' > /etc/dovecot/conf.d/00-risotto.conf</file>
<!-- plain authentification -->
2023-06-23 08:12:05 +02:00
<file engine= "none" > /etc/dovecot/conf.d/auth-ldap.conf.ext</file>
<file engine= "ansible" > /etc/dovecot/dovecot-ldap.conf.ext</file>
2022-03-08 19:42:28 +01:00
<!-- oauth2 authentification -->
2023-06-23 08:12:05 +02:00
<file engine= "none" > /etc/dovecot/conf.d/auth-oauth2.conf.ext</file>
<file engine= "ansible" > /etc/dovecot/dovecot-oauth2.conf.ext</file>
2022-03-08 19:42:28 +01:00
<!-- internal authentification -->
2023-06-23 08:12:05 +02:00
<file engine= "ansible" filelist= "copy_tests" > /tests/imap.yml</file>
2022-03-08 19:42:28 +01:00
</service>
</services>
<variables >
2022-06-24 19:00:16 +02:00
<family name= "network" >
2022-06-29 11:44:01 +02:00
<variable name= "incoming_ports" redefine= "True" >
2022-06-24 19:00:16 +02:00
<value > 587</value>
<value > 993</value>
2022-03-08 19:42:28 +01:00
</variable>
</family>
2023-06-23 08:12:05 +02:00
<family name= "ldap" >
2022-06-24 19:00:16 +02:00
<family name= "client" >
<variable name= 'ldapclient_family' redefine= "True" >
<value > all</value>
</variable>
<variable name= "ldap_key_file_owner" redefine= "True" >
<value > dovecot</value>
</variable>
</family>
</family>
2023-02-14 14:24:16 +01:00
<family name= "mail" description= "Mail configuration" >
<family name= "domain" description= "Mail domain" leadership= "True" >
2023-08-02 09:26:54 +02:00
<variable name= "mail_domains" type= "domainname" description= "Domaine de courriel géré localement" mandatory= "True" multi= "True" supplier= "LMTP:criteria" test= "example.net" />
2023-02-14 14:24:16 +01:00
<variable name= "mail_domains_calc" type= "domainname" hidden= "True" />
2023-08-02 09:26:54 +02:00
<variable name= "imap_domainname" type= "domainname" description= "Domaine exterieur d'accès au serveur IMAP" mandatory= "True" test= "imap.example.net" />
<variable name= "submission_domainname" type= "domainname" description= "Domaine exterieur d'accès au serveur submission" mandatory= "True" test= "submission.example.net" />
2023-02-14 14:24:16 +01:00
</family>
<variable name= "mail_crt_provider" type= "choice" description= "Autorité de certification signant les certificats des domaines extérieurs" mandatory= "True" >
2023-08-02 09:26:54 +02:00
<value > self-signed</value>
<choice > self-signed</choice>
2023-02-14 14:24:16 +01:00
<choice > letsencrypt</choice>
</variable>
2022-03-08 19:42:28 +01:00
</family>
<family name= "dovecot" description= "IMAP mail server" >
2023-07-31 15:30:32 +02:00
<variable name= "imap_internal_addresses" type= "domainname" description= "IMAP client address" mandatory= "True" provider= "IMAP" multi= "True" />
2022-03-29 16:30:38 +02:00
<variable name= "well_known_filenames" type= "filename" hidden= 'True' multi= "True" />
2022-04-08 18:52:43 +02:00
</family>
2022-12-25 17:08:52 +01:00
<family name= "revprox" >
2022-08-18 10:19:43 +02:00
<family name= "revprox_client" >
2023-08-02 09:26:54 +02:00
<variable name= "revprox_client_external_domainnames" redefine= "True" hidden= "True" />
<variable name= "revprox_client_web_address" redefine= "True" hidden= "True" />
2022-08-18 10:19:43 +02:00
</family>
2022-12-25 17:08:52 +01:00
</family>
2023-08-02 09:26:54 +02:00
<family name= "nginx" hidden= "True" >
2022-08-19 20:30:13 +02:00
<variable name= "nginx_root" redefine= 'True' >
<value > /var/www/html</value>
2022-06-26 19:33:44 +02:00
</variable>
2022-03-08 19:42:28 +01:00
</family>
2023-08-02 09:26:54 +02:00
<!-- just for doc ... -->
<family name= "oauth2_client" hidden= "True" />
2022-03-08 19:42:28 +01:00
</variables>
<constraints >
2023-07-31 15:30:32 +02:00
<!-- fill name="calc_value">
2022-08-18 10:19:43 +02:00
<param type= "variable" > domain_name_eth0</param>
<target > imap_internal_address</target>
2023-07-31 15:30:32 +02:00
</fill-->
2022-05-23 08:49:21 +02:00
<fill name= "calc_value" >
<param type= "variable" > mail_domains</param>
2022-08-18 10:19:43 +02:00
<target > mail_domains_calc</target>
2022-05-23 08:49:21 +02:00
</fill>
2022-03-29 16:30:38 +02:00
<fill name= "calc_value" >
<param > /var/www/html/mail/</param>
<param type= "variable" > mail_domains</param>
<param > /autodiscover/autodiscover.xml</param>
<!-- param>/config - v1.1.xml</param -->
<param name= "join" > </param>
<param name= "multi" type= "boolean" > True</param>
<target > well_known_filenames</target>
</fill>
<fill name= "calc_well_known" >
2022-08-18 10:19:43 +02:00
<param type= "index" />
2022-03-29 16:30:38 +02:00
<param type= "variable" > domain_name_eth0</param>
<param type= "variable" > mail_domains</param>
2022-08-18 10:19:43 +02:00
<target > revprox_client_web_address</target>
</fill>
<fill name= "calc_domains" >
<param type= "variable" > mail_domains</param>
<target > revprox_client_external_domainnames</target>
</fill>
<fill name= "calc_locations" >
<param type= "variable" > revprox_client_external_domainnames</param>
<param type= "index" />
<target > revprox_client_location</target>
2022-03-29 16:30:38 +02:00
</fill>
2022-03-08 19:42:28 +01:00
</constraints>
</rougail>