aboutsummaryrefslogtreecommitdiffstats
path: root/extra/postfix/postfix-mysql.post-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-03 20:24:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-03 20:24:57 +0000
commit0672c3e0f09200ce6eff4d011dfdca88fbdd3d9f (patch)
tree5aaf68e89159b40af92fab7be8c979662435ab68 /extra/postfix/postfix-mysql.post-install
parentf3d0c8ccdf68c98dc0d529dc9ce63c89c1817826 (diff)
downloadaports-0672c3e0f09200ce6eff4d011dfdca88fbdd3d9f.tar.bz2
aports-0672c3e0f09200ce6eff4d011dfdca88fbdd3d9f.tar.xz
extra/postfix,cyrus-sasl: moved postfix 2.6.1 from testing
Diffstat (limited to 'extra/postfix/postfix-mysql.post-install')
-rw-r--r--[l---------]extra/postfix/postfix-mysql.post-install20
1 files changed, 19 insertions, 1 deletions
diff --git a/extra/postfix/postfix-mysql.post-install b/extra/postfix/postfix-mysql.post-install
index 1e64c6a60f..b8d23833b6 120000..100644
--- a/extra/postfix/postfix-mysql.post-install
+++ b/extra/postfix/postfix-mysql.post-install
@@ -1 +1,19 @@
-postfix-ldap.post-install \ No newline at end of file
+#!/bin/sh
+
+# update the dynamicmaps.cf
+conf=/etc/postfix/dynamicmaps.cf
+
+sed -i -e '/\#\# AUTO BEGIN/,/\#\# AUTO END/d' $conf
+
+(
+echo '## AUTO BEGIN ##'
+if cd /usr/lib/postfix/; then
+ for i in *.so; do
+ m=${i#dict_}
+ m=${m%.so}
+ echo -e "$m\t/usr/lib/postfix/$i\tdict_${m}_open"
+ done
+fi
+
+echo '## AUTO END ##'
+) >> $conf