aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/postfix.xml44
1 files changed, 19 insertions, 25 deletions
diff --git a/packages/postfix.xml b/packages/postfix.xml
index 4b9574a2..0d40e30b 100644
--- a/packages/postfix.xml
+++ b/packages/postfix.xml
@@ -26,30 +26,24 @@
<description>Enter the hostname of this system to be used by Postfix. (ex: mail.example.com)</description>
<type>input</type>
</field>
- <field>
- <fielddescr>Domain</fielddescr>
- <fieldname>domain</fieldname>
- <description>Enter the domain here (ex: example.com)</description>
- <type>input</type>
- </field>
<field>
- <fielddescr>Mail Server IP</fielddescr>
- <fieldname>mailserverip</fieldname>
- <description>Enter the IP of the mail server to forward to here.</description>
- <type>input</type>
+ <type>rowhelper</type>
+ <rowhelper>
+ <rowhelperfield>
+ <fielddescr>Domain</fielddescr>
+ <fieldname>domain</fieldname>
+ <description>Enter the domain here (ex: example.com)</description>
+ <type>input</type>
+ </rowhelperfield>
+ <rowhelperfield>
+ <fielddescr>Mail Server IP</fielddescr>
+ <fieldname>mailserverip</fieldname>
+ <description>Enter the domain here (ex: example.com)</description>
+ <type>input</type>
+ </rowhelperfield>
+ </rowhelper>
</field>
-
</fields>
- <adddeleteeditpagefields>
- <columnitem>
- <fielddescr>Domain</fielddescr>
- <fieldname>forwardeddomain</fieldname>
- </columnitem>
- <columnitem>
- <fielddescr>Mail Server IP</fielddescr>
- <fieldname>mailserverip</fieldname>
- </columnitem>
- </adddeleteeditpagefields>
<!-- fields gets invoked when the user adds or edits a item. the following items
will be parsed and rendered for the user as a gui with input, and selectboxes. -->
<custom_add_php_command>
@@ -62,14 +56,14 @@
<template>
<filename>/usr/local/etc/postfix/main.cf</filename>
<templatecontents>
- myhostname = hostname\n
- mydomain = primarydomain\n
- relay_domains = domain
+ myhostname = hostname_fieldvalue\n
+ mydomain = primarydomain_fieldvalue\n
+ relay_domains = domain_fieldvalue
</templatecontents>
</template>
<template>
<filename>/usr/local/etc/postfix/transport</filename>
- <templatecontents>domain smtp:[mailserverip]</templatecontents>
+ <templatecontents>domain_fieldvalue smtp:[mailserverip_fieldvalue]</templatecontents>
</template>
</templates>