>my to_recipients_bw.map has:
>
>abuse@ ok
>hostmaster@ ok
>info@ ok
>marketing@ ok
>news@ ok
>noc@ ok
>postmaster@ ok
>sales@ ok
>security@ ok
>support@ ok
>webmaster@ ok

ok, based on my previous msg today (and my earlier msg on this topic that 
must have been misleading), here's my mea culpa script, to generate all 
these generic, complete addy's.

Len screws up and you get a free script, is that a deal?

but, the script is untested  :))   (you get you what you pay for!)

#!/bin/sh

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"

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
#######################

Then you have to get to_recipients_known.roles to someplace useful, liked 
cat'ted to your to_recipients_known.map.

Len


Reply via email to