Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 392 Bytes
#!/bin/sh
# Convert dane_fail_list.dat to a Postfix smtp_tls_policy_maps[1] in postmap format[2]
#
# [1] http://www.postfix.org/postconf.5.html#smtp_tls_policy_maps
# [2] http://www.postfix.org/postmap.1.html
#
# dane_fail_postfix < dane_fail_list.dat > /etc/postfix/tls_policy
nondanepolicy="may"
grep -v '^#' | grep -v '^$' <&0 | \
while read -r line
do
echo "$line $nondanepolicy"
done