summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-07-12 14:30:23 +0000
committerJonas Smedegaard <dr@jones.dk>2007-07-12 14:30:23 +0000
commite99fc9651be67635a69566d43bf253fea76c1ebf (patch)
tree842c610a3e4446da4d81ffe8ef7abe8f8b96226c /postfix
parent9f43e4459eb10c4b22f80fa1121de439471a257c (diff)
Make sure sender_access file exist and is postmap'ed.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 0c42fc4..e77bae5 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -3,7 +3,7 @@
# /etc/local-COMMON/postfix/postfix.sh
# Copyright 2002-2004 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: postfix.sh,v 1.41 2007-07-12 14:01:23 jonas Exp $
+# $Id: postfix.sh,v 1.42 2007-07-12 14:30:23 jonas Exp $
#
# Auto-tweak plain installed postfix Debian package
#
@@ -117,6 +117,12 @@ $postconf -e "`getlinesfromfile smtpd_sender_restrictions reject_rhsbl_sender`"
$postconf -e "`getlinesfromfile smtpd_recipient_restrictions reject_maps_rbl=reject_rbl_client=maps_rbl_domains`"
$postconf -e "`getlinesfromfile smtpd_data_restrictions`"
+# Make sure sender_access file (used in smtpd_sender_restrictions) exist
+# FIXME: somehow do this step only if enabled in smtpd_sender_restrictions
+touch "$confdir/sender_access"
+postmap "$confdir/sender_access"
+$postconf -e "unverified_sender_reject_code = 550"
+
# TLS breaks postfix if no SASL modules available (and doesn't make sense either)
# (change the test if using some other modules and avoid the plain ones)
if [ -n "$pftls" ] && [ -n "$sasl2" ] && [ -f /etc/ssl/certs/postfix.pem ]; then