# !/bin/bash
#
# Build all virtual mailbox maps from one source

# section: paths
SOURCE=/etc/postfix/vhcs2/domains
VMAP=/etc/postfix/maps/helo_check
AWK=/usr/bin/awk
POSTMAP=/usr/sbin/postmap

# section: build
# build $helo_check
$AWK '{printf ("%s \t550 Dont use my hostname\n",$1)}' $SOURCE > $VMAP
$POSTMAP hash:$VMAP


