Ok, I got a file with:
tulsa.com 554 ACL to_recipients_known unknown user
[EMAIL PROTECTED] ok
[EMAIL PROTECTED] ok
[EMAIL PROTECTED] ok
..
.. all the roles repeat.
for all domains
THATS SWEET!! Thank you.
Now, at the end of that file, I would add
[EMAIL PROTECTED] ok
and they should get all the 'good' stuff.
I'll see how that works tomorrow.
I'm not going to violate my cardinal rule. Don't mess with users email
and walk away. I'll implement tomorrow and watch! And report back.
Thank you, Len.
David
On Wed, 2003-02-12 at 18:39, Len Conrad wrote:
>
>
> 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
>
>