darn, a classic error, didn't init the output file, here's better
ROLES="abuse hostmaster info marketing news noc postmaster sales security
support webmaster root tech help"
DOMAINS="`awk / smtp:/i '{print $1}' /etc/postfix/transport.map'`"
MYPATH="/var/tmp"
MYFILE="/to_recipients.roles"
touch $MYPATH$MYFILE
for domain in $DOMAINS ; do
echo "$domain 554 ACL to_reicipients_known unknown user >> $MYPATH$MYFILE
for role in $ROLES ; do
echo "$role@$domain ok" >> $MYPATH$MYFILE
done
done
exit 0
