aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcbuechler <cbuechler>2005-01-31 01:23:36 +0000
committercbuechler <cbuechler>2005-01-31 01:23:36 +0000
commit8d843ef0ef51a79934242b0fa6fde2c2dbea3aeb (patch)
treec2d74fd5539c3c1c07360dbf385367b7d3f02d77
parentdb58bb91fc06fc5b88dff6faa108fdf2e660f28d (diff)
downloadpfsense-packages-8d843ef0ef51a79934242b0fa6fde2c2dbea3aeb.tar.gz
pfsense-packages-8d843ef0ef51a79934242b0fa6fde2c2dbea3aeb.tar.bz2
pfsense-packages-8d843ef0ef51a79934242b0fa6fde2c2dbea3aeb.zip
no message
-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>