summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2007-07-24 00:33:14 +0000
committerJonas Smedegaard <dr@jones.dk>2007-07-24 00:33:14 +0000
commit6e0eec464ca524f7a3e83a770f01d393a6dd768a (patch)
tree40d7aa9f70937dbdc9bf0dc38f47bf8e6d0e28d5 /postfix
parent3264d79afa32f5ce17245266c61595a5af4baeaf (diff)
Fix resolving thisrealm (instead of thisdomain).
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/postfix.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/postfix/postfix.sh b/postfix/postfix.sh
index 411c8a8..a85237d 100755
--- a/postfix/postfix.sh
+++ b/postfix/postfix.sh
@@ -3,7 +3,7 @@
# /etc/local-COMMON/postfix/postfix.sh
# Copyright 2002-2007 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: postfix.sh,v 1.53 2007-07-24 00:29:24 jonas Exp $
+# $Id: postfix.sh,v 1.54 2007-07-24 00:33:14 jonas Exp $
#
# Auto-tweak plain installed postfix Debian package
#
@@ -64,10 +64,10 @@ catallfilesfromotherrealms() {
[ -f "$realmsdir/realms" ] || exit 0
realms="$(cat "$realmsdir/realms" | sed 's/#.*//')"
- thisdomain="$(dnsdomainname)"
+ thisrealm="$(cat /etc/local-ORG/realm || dnsdomainname | tr '[a-z]' '[A-Z]')"
for realm in $realms; do
- if [ "$thisdomain" != "$realm" ]; then
+ if [ "$thisrealm" != "$realm" ]; then
cat "$realmsdir/$realm/$file"
fi
done