aboutsummaryrefslogtreecommitdiffstats
path: root/extra/postfix/postfix-pgsql.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/postfix/postfix-pgsql.post-install')
-rw-r--r--[l---------]extra/postfix/postfix-pgsql.post-install20
1 files changed, 19 insertions, 1 deletions
diff --git a/extra/postfix/postfix-pgsql.post-install b/extra/postfix/postfix-pgsql.post-install
index 1e64c6a60f..b8d23833b6 120000..100644
--- a/extra/postfix/postfix-pgsql.post-install
+++ b/extra/postfix/postfix-pgsql.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