[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] aliasrestore.cgi for raq4
- Subject: Re: [cobalt-users] aliasrestore.cgi for raq4
- From: "Ken Marcus - Precision Web Hosting" <kenmarcus@xxxxxxxxxxxxxxxx>
- Date: Mon Jun 23 12:15:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> > today our Raq4 admin GUI got crazy and we can't edit sites
property but,
> > clicking on wrench, we got File not found .
> > Besides we have the MX trouble and nobody receives mail.
> >
> > Sun suggest to use their fixsite.pl but I don't wan't to write
again every
> > alias!!
> >
> > I know that somebody solved this trouble using a file called
> > aliasrestore.cgi.
> > Is this correct?
> > Please could anybody publish it and share his experience?
You do need to run the fixsite.pl
It will not break the local-host-names and the virtusertable, they are
already broken.
Do the following:
cd ~admin
wget http://www.precisionweb.net/ken/fixsite.txt
#that is just a copy of Sun's fixsite.pl file
mv fixsite.txt fixsite.pl
chmod 700 fixsite.pl
./fixsite.pl
That will fix your siteadmins.
Then either go back and re-add the mail server aliases
to all your sites, or follow the steps below adapted from:
http://list.cobalt.com/pipermail/cobalt-users/2003-February/086552.html
#the 2 lines below actually add the domain name,
#and then the mail.doamnname back to the /etc/mail/local-host-names
#note there are only 2 lines below so if they are
#wrapped in your display you will need ot recombine them
ls /home/sites/|awk -F '.' ' {if ($0 ~ /www/) {print $2"."$3}}' >>
/etc/mail/local-host-names
ls /home/sites/|awk -F '.' ' {if ($0 ~ /www/) {print "mail."$2"."$3}}'
>> /etc/mail/local-host-names
#the 2 lines below create the entries you'll need to paste in the the
route section of the virtuesertable
ls /home/sites/ |awk -F '.' ' {if ($0 ~ /www/) {print
"@"$2"."$3"\t%1@www."$2"."$3}}' > /tmp/newvirt
ls /home/sites/ |awk -F '.' ' {if ($0 ~ /www/) {print
"@mail."$2"."$3"\t%1@www."$2"."$3}}' >> /tmp/newvirt
#copy the text from the newvirt file to the route section of the
/etc/mail/virtusertable
cat /tmp/newvirt
pico -w /etc/mail/virtusertable
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
/etc/rc.d/init.d/sendmail restart
To prevent this problem in the future,
1. before deleting a site always go to the Site Settings for that site
and click Save. (Also it should not be suspended when you delete it.)
2. Then go back to the Man Menu and delete it.
----
Ken Marcus
Precision Web Hosting
mailto:ken@xxxxxxxxxxxxxxxx
http://www.precisionweb.net