I generally rewrite any domain aliases that I am willing to accept in
canonical maps. After I export my imail users I trim the list down to only
the domains and users I am willing to accept. I have some domains with as
many as 16 aliases. Since we don't do [EMAIL PROTECTED] I strip that
first. Helps on the size of the db on the gateways.
Snip from my script. Probably an easier way to do it but this is my brew.
Probably will wrap all to hell.
/usr/bin/perl -pi.bak -e 's/\cM//g' $homedir/config/imailusers.txt
grep @ $homedir/config/imailusers.txt |\
grep -v @mail. |\
grep -v @anything I want out \
> $homedir/config/tmp/newlist.txt
mv $homedir/config/imailusers.txt $homedir/config/imailusers-$nowdate
cat $homedir/config/tmp/newlist.txt | cut -d @ -f 2 | uniq -i \
> $homedir/config/tmp/domains.txt
sort -u -o $homedir/config/tmp/domains.txt $homedir/config/tmp/domains.txt
egrep @ $homedir/config/tmp/newlist.txt |\
awk '{print $1 " OK"}' > $homedir/config/tmp/newlist.tmp
egrep . $homedir/config/tmp/domains.txt |\
awk '{print $1 " 550 Unknown user; No such mailbox"}'\
>> $homedir/config/tmp/newlist.tmp
cp $homedir/config/tmp/newlist.tmp $mappath/unknown.map
/usr/sbin/postmap $mappath/unknown.map
DustyC
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Len Conrad
Sent: Friday, September 05, 2003 1:15 AM
To: [EMAIL PROTECTED]
Subject: [IMGate] Re: check_recipient_maps
>[EMAIL PROTECTED]
>
>There will be about 100k of users here
no problem for hash .db. the alternative would be use Sleepcat .gdb
Len