aboutsummaryrefslogtreecommitdiffstats
path: root/main/postfix/postfix-mysql.post-install
blob: b8d23833b665e32580faebd926e345bf2dadd8d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/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