diff options
Diffstat (limited to 'config/postfix.xml')
-rw-r--r-- | config/postfix.xml | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/config/postfix.xml b/config/postfix.xml new file mode 100644 index 00000000..65b4d11f --- /dev/null +++ b/config/postfix.xml @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd"> +<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?> +<packagegui> + <copyright> + <![CDATA[ +/* $Id$ */ +/* ========================================================================== */ +/* + authng.xml + part of pfSense (http://www.pfSense.com) + Copyright (C) 2007 to whom it may belong + All rights reserved. + + Based on m0n0wall (http://m0n0.ch/wall) + Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>. + All rights reserved. + */ +/* ========================================================================== */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. + */ +/* ========================================================================== */ + ]]> + </copyright> + <description>Describe your package here</description> + <requirements>Describe your package requirements here</requirements> + <faq>Currently there are no FAQ items provided.</faq> + <name>postfix</name> + <version>1.1.12_1</version> + <title>Services: Postfix Forwarder</title> + <savetext>Change</savetext> + <preoutput>yes</preoutput> + <aftersaveredirect>pkg_edit.php?xml=postfix.xml&id=1</aftersaveredirect> + <menu> + <name>Postfix Forwarder</name> + <tooltiptext>Configure Postfix Forwarder</tooltiptext> + <section>Services</section> + <url>pkg_edit.php?xml=postfix.xml&id=1</url> + </menu> + <fields> + <field> + <fielddescr>Primary Domain</fielddescr> + <fieldname>primarydomain</fieldname> + <description>Enter your primary domain. (ex: example.com)</description> + <type>input</type> + </field> + <field> + <fielddescr>My Hostname</fielddescr> + <fieldname>hostname</fieldname> + <description>Enter the hostname of this system to be used by Postfix. (ex: mail.example.com)</description> + <type>input</type> + </field> + <field> + <fielddescr>none</fielddescr> + <fieldname>none</fieldname> + <type>rowhelper</type> + <rowhelper> + <rowhelperfield> + <fielddescr>Domain</fielddescr> + <fieldname>domain</fieldname> + <description>Enter the domain here (ex: example.com)</description> + <type>input</type> + <size>20</size> + </rowhelperfield> + <rowhelperfield> + <fielddescr>Mail Server IP</fielddescr> + <fieldname>mailserverip</fieldname> + <description>Enter the mail server IP to forward to here.</description> + <type>input</type> + <size>20</size> + </rowhelperfield> + </rowhelper> + </field> + </fields> + <custom_add_php_command> + </custom_add_php_command> + <start_command>/usr/local/sbin/postfix start</start_command> + <restart_command>/usr/local/sbin/postmap /usr/local/etc/postfix/transport ; /usr/local/sbin/postfix reload</restart_command> + <custom_php_install_command> + </custom_php_install_command> + <custom_php_deinstall_command> + </custom_php_deinstall_command> + <templates> + <template> + <filename>/usr/local/etc/postfix/main.cf</filename> + <templatecontents> +myhostname = hostname_fieldvalue \n +mydomain = primarydomain_fieldvalue \n +relay_domains = domain_fieldvalue[ ] \n + </templatecontents> + </template> + <template> + <filename>/usr/local/etc/postfix/transport</filename> + <templatecontents>domain_fieldvalue smtp:[mailserverip_fieldvalue]\n</templatecontents> + </template> + </templates> +</packagegui> |