dataset/seed/relay-mail-client/dictionaries/20_smtp_client.xml

45 lines
2 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<rougail version="0.10">
<services>
<service name="smtp" manage="False">
<certificate authority="InternalMail" server="smtp_relay_address">smtp</certificate>
</service>
</services>
<variables>
<family name="smtp" description="Client SMTP">
<variable name="smtp_relay_address" type="domainname" description="Nom de domaine du serveur SMTP" mandatory="True" supplier="SMTP"/>
<variable name="smtp_relay_ip" type="ip" hidden="True"/>
<variable name="smtp_client_ip" type="ip" hidden="True" mandatory="True"/>
<variable name="smtp_relay_user" description="Relay username" mandatory="True" hidden="True"/>
<variable name="smtp_relay_password" type="secret" description="Relay password" mandatory="True" hidden="True" supplier="SMTP:password"/>
</family>
</variables>
<constraints>
<fill name="get_local_smtp_info">
<param type="variable">smtp_relay_ip</param>
<param type="variable">domain_name_eth</param>
<param type="variable">network_eth</param>
<param name="normalize" type="boolean">True</param>
<target>smtp_relay_user</target>
</fill>
<fill name="get_password">
<param name="server_name" type="variable">smtp_relay_address</param>
<param name="username" type="variable">domain_name_eth0</param>
<param name="description">local authentification</param>
<param name="type">cleartext</param>
<param name="hide" type="variable">hide_secret</param>
<target>smtp_relay_password</target>
</fill>
<fill name="get_ip">
<param type="information">zones</param>
<param type="variable">smtp_relay_address</param>
<target>smtp_relay_ip</target>
</fill>
<fill name="get_local_smtp_info">
<param type="variable">smtp_relay_ip</param>
<param type="variable">ip_eth</param>
<param type="variable">network_eth</param>
<target>smtp_client_ip</target>
</fill>
</constraints>
</rougail>