dataset/seed/postfix-relay/dictionaries/30_postfix.xml

90 lines
4.2 KiB
XML
Raw Normal View History

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/>
<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>
<file>/etc/pki/ca-trust/source/anchors/ca_MailServer.crt</file>
<file>/etc/pki/tls/certs/postfix.crt</file>
2022-03-15 22:25:05 +01:00
<file source="sni.pem" file_type="variable" mode="400" variable="domain_name_eth">postfix_pem_files</file>
2022-03-08 19:42:28 +01:00
<file owner="root" group="postfix" mode="440">/etc/pki/tls/private/postfix.key</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-25 08:11:37 +02:00
<variable name="dns_client_address" redefine="True"/>
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"/>
2022-03-20 21:15:45 +01:00
<variable name="postfix_relay_domains" type="domainname" description="Domaine de courriel généré localement" multi="True" mandatory="True" hidden="True"/>
2022-03-08 19:42:28 +01:00
<variable name='postfix_relay_authentifications' description="CA certificate" hidden='True' multi="True" provider="mail"/>
<family name="local_authentification_" description="Local server authentification" dynamic='postfix_relay_authentifications'>
<variable name="local_authentification_ip_" type="ip" provider="mail_ip"/>
2022-06-24 19:00:16 +02:00
<variable name="local_authentification_password_" type="secret" auto_save="False" provider="mail_password"/>
2022-03-08 19:42:28 +01:00
</family>
2022-03-20 21:15:45 +01:00
<variable name='postfix_pem_files' type="filename" hidden='True' multi='True'/>
2022-03-08 19:42:28 +01:00
</family>
<family name="opendkim">
<variable name="opendkim_keys" type="filename" description="Keys filename" multi="True" hidden="True"/>
</family>
</variables>
<constraints>
2022-06-25 08:11:37 +02:00
<fill name="get_provider_name">
<param type="variable">zone_name_eth0</param>
<param>ExternalDNS</param>
<target>dns_client_address</target>
</fill>
2022-03-08 19:42:28 +01:00
<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>
<fill name="get_password">
<param name="server_name" type="variable">domain_name_eth0</param>
<param name="username" type="suffix"/>
<param name="description">local authentification</param>
<param name="type">cleartext</param>
2022-06-24 19:00:16 +02:00
<param name="hide" type="variable">hide_secret</param>
2022-03-08 19:42:28 +01:00
<target>local_authentification_password_</target>
</fill>
<fill name="calc_value">
<param>/etc/postfix/certs/</param>
<param type="variable">domain_name_eth</param>
<param>.pem</param>
<param name="join"></param>
<param name="multi" type="boolean">True</param>
<target>postfix_pem_files</target>
</fill>
</constraints>
</rougail>