[Debconf-video-commits] r153 - in fai-config: files/etc files/etc/postfix files/etc/postfix/main.cf files/etc/postfix/virtual_alias package_config scripts/DEBCONF

holger at alioth.debian.org holger at alioth.debian.org
Tue Aug 5 12:32:53 UTC 2008


Author: holger
Date: 2008-08-05 12:32:52 +0000 (Tue, 05 Aug 2008)
New Revision: 153

Added:
   fai-config/files/etc/postfix/
   fai-config/files/etc/postfix/main.cf/
   fai-config/files/etc/postfix/main.cf/DEBCONF
   fai-config/files/etc/postfix/main.cf/postinst
   fai-config/files/etc/postfix/virtual_alias/
   fai-config/files/etc/postfix/virtual_alias/DEBCONF
   fai-config/files/etc/postfix/virtual_alias/postinst
   fai-config/scripts/DEBCONF/15-postfix
Modified:
   fai-config/package_config/FAIBASE
Log:
install postfix and molly-guard. mail is always send to hostname at layer-acht.org as there is no proper mail server setup to receive the mails

Added: fai-config/files/etc/postfix/main.cf/DEBCONF
===================================================================
--- fai-config/files/etc/postfix/main.cf/DEBCONF	                        (rev 0)
+++ fai-config/files/etc/postfix/main.cf/DEBCONF	2008-08-05 12:32:52 UTC (rev 153)
@@ -0,0 +1,40 @@
+# See /usr/share/postfix/main.cf.dist for a commented, more complete version
+
+
+# Debian specific:  Specifying a file name will cause the first
+# line of that file to be used as the name.  The Debian default
+# is /etc/mailname.
+#myorigin = /etc/mailname
+
+smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
+biff = no
+
+# appending .domain is the MUA's job.
+append_dot_mydomain = no
+
+# Uncomment the next line to generate "delayed mail" warnings
+#delay_warning_time = 4h
+
+# TLS parameters
+smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
+smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
+smtpd_use_tls=yes
+smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
+smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
+
+# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
+# information on enabling SSL in the smtp client.
+
+myhostname = #HOSTNAME#
+alias_maps = hash:/etc/aliases
+alias_database = hash:/etc/aliases
+myorigin = /etc/mailname
+mydestination = localhost
+relayhost = #RELAY#
+mynetworks = 127.0.0.0/8
+mailbox_size_limit = 0
+recipient_delimiter = +
+inet_interfaces = loopback-only
+
+virtual_alias_maps = hash:/etc/postfix/virtual_alias
+local_transport = error:local delivery is disabled

Added: fai-config/files/etc/postfix/main.cf/postinst
===================================================================
--- fai-config/files/etc/postfix/main.cf/postinst	                        (rev 0)
+++ fai-config/files/etc/postfix/main.cf/postinst	2008-08-05 12:32:52 UTC (rev 153)
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+#
+#        (c) 2006,2008 Holger Levsen         holger at layer-acht.org
+#        GPL2 licenced
+#
+
+
+export HOSTNAME=`hostname`
+export RELAY="homer"
+
+# #HOSTNAME# gets replaced by $HOSTNAME and so on...
+
+sed -i "s/#HOSTNAME#/$HOSTNAME/" $2
+sed -i "s/#RELAY#/$RELAY/" $2
+


Property changes on: fai-config/files/etc/postfix/main.cf/postinst
___________________________________________________________________
Name: svn:executable
   + *

Added: fai-config/files/etc/postfix/virtual_alias/DEBCONF
===================================================================
--- fai-config/files/etc/postfix/virtual_alias/DEBCONF	                        (rev 0)
+++ fai-config/files/etc/postfix/virtual_alias/DEBCONF	2008-08-05 12:32:52 UTC (rev 153)
@@ -0,0 +1 @@
+ at localhost		#HOSTNAME#@layer-acht.org

Added: fai-config/files/etc/postfix/virtual_alias/postinst
===================================================================
--- fai-config/files/etc/postfix/virtual_alias/postinst	                        (rev 0)
+++ fai-config/files/etc/postfix/virtual_alias/postinst	2008-08-05 12:32:52 UTC (rev 153)
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+#
+#        (c) 2006,2008 Holger Levsen         holger at layer-acht.org
+#        GPL2 licenced
+#
+
+
+export HOSTNAME=`hostname -f`
+
+# #HOSTNAME# gets replaced by $HOSTNAME and so on...
+
+sed -i "s/#HOSTNAME#/$HOSTNAME/" $2
+


Property changes on: fai-config/files/etc/postfix/virtual_alias/postinst
___________________________________________________________________
Name: svn:executable
   + *

Modified: fai-config/package_config/FAIBASE
===================================================================
--- fai-config/package_config/FAIBASE	2008-08-05 12:07:36 UTC (rev 152)
+++ fai-config/package_config/FAIBASE	2008-08-05 12:32:52 UTC (rev 153)
@@ -20,7 +20,8 @@
 sl psmisc
 zsh mc tree screen 
 ethtool sudo
-mailutils
+mailutils postfix
+molly-guard
 
 #ethtool because mii-tool doesnt support gigabit
 

Added: fai-config/scripts/DEBCONF/15-postfix
===================================================================
--- fai-config/scripts/DEBCONF/15-postfix	                        (rev 0)
+++ fai-config/scripts/DEBCONF/15-postfix	2008-08-05 12:32:52 UTC (rev 153)
@@ -0,0 +1,14 @@
+#! /bin/sh
+
+#
+#        (c) 2008 Holger Levsen         holger at layer-acht.org
+#        GPL2 licenced
+#
+
+# don't restart postfix twice for the MAILSERVER
+ifclass MAILSERVER && exit 0
+
+fcopy -r -M /etc/postfix
+$ROOTCMD postmap /etc/postfix/virtual_alias
+$ROOTCMD /etc/init.d/postfix restart
+


Property changes on: fai-config/scripts/DEBCONF/15-postfix
___________________________________________________________________
Name: svn:executable
   + *




More information about the Debconf-video-commits mailing list