On 29/01/2008, at 11.45, Jes Kasper Klittum wrote:
> Hello blues,
>
> Deleting a user semi-failed on one of your server, so some remnants
> may be on the server, however, I cannot find them. We deleted a
> user called xxx and this user had the alias "info" aliased to it.
> Because deletion crashed the alias was not deleted from
> virtusertable. I deleted the alias manually and ran:
>
> makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
>
> Now, when I try to create the alias "info" on another user on the
> site, then I get the error that the alias is already used, but info
> is not created as a username, alias or mailinglist on the site?
>
> This is what happens in messages:
>
> Jan 29 11:34:35 bq11 cced(smd)[11290]: client 8:[48:3733]: SET
> 6035 . Email "aliases" "=" "&info&"
> Jan 29 11:34:35 bq11 cced(smd)[11290]: client 8:handlers/base/email/
> personal.pl: CREATE EmailAlias fqdn = "www.xxx.dk" site = site271
> action = "m.info" alias = info
> Jan 29 11:34:35 bq11 cced(smd)[11290]: handler handlers/base/email/
> validate_alias.pl failed
> Jan 29 11:34:36 bq11 cced(smd)[11290]: client 8:handlers/base/email/
> personal.pl: CREATE failed
> Jan 29 11:34:36 bq11 cced(smd)[11290]: handler handlers/base/email/
> personal.pl failed
> Jan 29 11:34:36 bq11 cced(smd)[11290]: client 8:[48:3733]: SET failed
> Jan 29 11:34:36 bq11 cced(smd)[11290]: client 8:[48:3733]: SET
> 6035 . Email "vacationMsg" "=" "" "vacationOn" "=" "0"
> Jan 29 11:34:36 bq11 cced(smd)[11290]: client 8:[48:3733]: SET
> succeeded
>
> I checked if ll the users has the alias "info" attached by finding
> the OID's for site271 and then checking OID.Email for "info" but
> none of them has got this alias attached.
>
> I would appreciate if someone could help me to find what is blocking.
Hi Jes
This will check for alias on at specific site:
#!/bin/bash
for i in $(grep $1 /usr/sausalito/codb/objects/*/.site | cut -d"." -
f1); do
if [ -e $i/.alias]
then
grep -l $2 $i/.alias
fi
done
#### SCRIPT END ###
Usage: ./script site271 info
Will return '/usr/sausalito/codb/objects/83/.alias'
--
Rene