summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-07-11 17:29:53 +0000
committerJonas Smedegaard <dr@jones.dk>2007-07-11 17:29:53 +0000
commit5bebcb79e8a4b0c519c19cb19eca3ff34e0e425c (patch)
treed7cc003516007100d7cd5a22d7308e13e12b0a4c /postfix
parent6aee26ba11f4ee3da08d5eab3c5b7eaeb9425c61 (diff)
Add REDPILL-specific postfix config.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/mkpostfixconfig.sh12
-rw-r--r--postfix/permit_mx_backup_networks108
2 files changed, 120 insertions, 0 deletions
diff --git a/postfix/mkpostfixconfig.sh b/postfix/mkpostfixconfig.sh
new file mode 100755
index 0000000..682f89b
--- /dev/null
+++ b/postfix/mkpostfixconfig.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+basedir="/etc/local-REDPILL"
+
+domains="$(cat "$basedir/realms" | sed 's/#.*//')"
+
+echo '' > "$basedir/postfix/permit_mx_backup_networks"
+for domain in $domains; do
+ cat "$basedir/$domain/mailnetworks" >> "$basedir/postfix/permit_mx_backup_networks"
+done
diff --git a/postfix/permit_mx_backup_networks b/postfix/permit_mx_backup_networks
new file mode 100644
index 0000000..e322337
--- /dev/null
+++ b/postfix/permit_mx_backup_networks
@@ -0,0 +1,108 @@
+
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#bitbase.dk (colocation Broadcom)
+83.133.64.38/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#dgi-huset.dk (ADSL TeleDK)
+80.166.109.186/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#homebase.dk (WLAN Sonofon)
+62.121.169.66/32
+
+#homebase.dk (ADSL Unotel)
+87.57.151.214/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#haakansson.com (ADSL TeleDK)
+62.242.210.184/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#idraetsdaghojskolen.dk (ADSL Tiscali)
+217.157.178.135/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#jones.dk (WLAN Sonofon)
+213.83.190.243/32
+
+#jones.dk (ADSL TDC via munksoegaard.dk)
+80.166.186.182/32
+#
+# List of networks with trusted primary MX hosts.
+# (add primary domain name of the network as hint)
+#
+# Used by Postfix. Example usage:
+#
+# mx_backup_networks = /etc/local-COMMON/postfix/mx_networks
+# smtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_recipient, reject_unauth_destination
+#
+# $Id: permit_mx_backup_networks,v 1.1 2007-07-11 17:29:53 jonas Exp $
+#
+
+#107b.dk (ADSL Tiscali)
+213.237.80.158/32
+
+#107b.dk temp
+195.184.109.89/32