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">
|
|
|
|
<override/>
|
2023-02-14 14:24:16 +01:00
|
|
|
<certificate authority="Mail" owner="postfix" type="server" domain="postfix_mail_hostname" provider="postfix_crt_provider">postfix</certificate>
|
|
|
|
<certificate authority="InternalMail" type="server" domain="domain_name_eth" certificate_type="variable" format="pem">domain_name_eth</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>
|
|
|
|
<file>/etc/postfix/main.cf</file>
|
|
|
|
<file>/etc/postfix/lmtp</file>
|
|
|
|
<file>/etc/postfix/sni</file>
|
|
|
|
<file engine="none">/etc/postfix/master.cf</file>
|
|
|
|
</service>
|
|
|
|
<service name="saslauthd">
|
|
|
|
<file>/etc/sasl2/smtpd.conf</file>
|
|
|
|
</service>
|
|
|
|
<service name="opendkim" target="multi-user">
|
|
|
|
<file engine="none" source="sysuser-opendkim.conf">/sysusers.d/0opendkim.conf</file>
|
|
|
|
<file>/etc/opendkim.conf</file>
|
|
|
|
<file>/etc/opendkim/KeyTable</file>
|
|
|
|
<file>/etc/opendkim/SigningTable</file>
|
|
|
|
<file>/etc/opendkim/TrustedHosts</file>
|
|
|
|
<file file_type="variable" owner="opendkim" mode="400" source="opendkim.key" variable="postfix_relay_domains">opendkim_keys</file>
|
|
|
|
</service>
|
|
|
|
<service name="opendmarc" target="multi-user">
|
|
|
|
<file engine="none" source="sysuser-opendmarc.conf">/sysusers.d/0opendmarc.conf</file>
|
|
|
|
<file engine="none" source="tmpfile-opendmarc.conf">/tmpfiles.d/0opendmarc.conf</file>
|
|
|
|
<file>/etc/opendmarc.conf</file>
|
|
|
|
</service>
|
|
|
|
</services>
|
|
|
|
<variables>
|
2022-06-24 19:00:16 +02:00
|
|
|
<family name="network">
|
2022-06-29 11:44:01 +02:00
|
|
|
<variable name="outgoing_ports" redefine="True">
|
|
|
|
<value>25</value>
|
|
|
|
</variable>
|
|
|
|
<variable name="incoming_ports" redefine="True">
|
2022-06-24 19:00:16 +02:00
|
|
|
<value>25</value>
|
|
|
|
</variable>
|
|
|
|
</family>
|
2022-03-08 19:42:28 +01:00
|
|
|
<family name="postfix" description="Postfix mail server">
|
|
|
|
<variable name="postfix_mail_hostname" type="domainname" description="Nom de domaine extérieur du serveur de courriel" mandatory="True"/>
|
2023-02-14 14:24:16 +01:00
|
|
|
<variable name="postfix_crt_provider" type="choice" description="Autorité de certification signant le certificat du domaine extérieur" mandatory="True">
|
|
|
|
<value>autosigne</value>
|
|
|
|
<choice>autosigne</choice>
|
|
|
|
<choice>letsencrypt</choice>
|
|
|
|
</variable>
|
2023-01-17 21:43:32 +01:00
|
|
|
<variable name="postfix_relay_domains" type="domainname" description="Local LTMP domain" multi="True" hidden="True"/>
|
2022-08-18 10:19:43 +02:00
|
|
|
<variable name='postfix_relay_authentifications' description="Authentification sur le relai SMTP" multi="True" provider="SMTP"/>
|
2022-03-08 19:42:28 +01:00
|
|
|
<family name="local_authentification_" description="Local server authentification" dynamic='postfix_relay_authentifications'>
|
2022-08-18 10:19:43 +02:00
|
|
|
<variable name="local_authentification_password_" type="secret" auto_save="False" provider="SMTP:password"/>
|
2022-12-25 17:08:52 +01:00
|
|
|
<variable name="postfix_relay_ip_" type="ip" hidden="True"/>
|
2022-03-08 19:42:28 +01:00
|
|
|
</family>
|
|
|
|
</family>
|
|
|
|
<family name="opendkim">
|
|
|
|
<variable name="opendkim_keys" type="filename" description="Keys filename" multi="True" hidden="True"/>
|
|
|
|
</family>
|
|
|
|
</variables>
|
|
|
|
<constraints>
|
|
|
|
<fill name="calc_value">
|
|
|
|
<param>/etc/opendkim/keys/</param>
|
|
|
|
<param type="variable">postfix_relay_domains</param>
|
|
|
|
<param>.key</param>
|
|
|
|
<param name="join"></param>
|
|
|
|
<param name="multi" type="boolean">True</param>
|
|
|
|
<target>opendkim_keys</target>
|
|
|
|
</fill>
|
2022-12-25 17:08:52 +01:00
|
|
|
<fill name="get_ip">
|
|
|
|
<param type="information">zones</param>
|
|
|
|
<param type="suffix"/>
|
|
|
|
<target>postfix_relay_ip_</target>
|
|
|
|
</fill>
|
2022-03-08 19:42:28 +01:00
|
|
|
</constraints>
|
|
|
|
</rougail>
|