[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Strange happenings
- Subject: Re: [cobalt-users] Strange happenings
- From: "Ken Marcus - Precision Web Hosting" <ken@xxxxxxxxxxxxxxxx>
- Date: Tue Feb 17 13:00:01 2004
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
: RE: [cobalt-users] Strange happenings
> Perfect - that did it.
>
> Mike
>
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Zeffie
> Sent: Tuesday, February 17, 2004 1:37 AM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: Re: [cobalt-users] Strange happenings
>
>
> > Just finished moving the last of my customers from the RAQ3 to a RAQ4
> > - I try to go to the manage page which takes me to
> > https://raq4.berkshire.net:81/.cobalt/siteManage/www.customer.com/
> > (not the real page) and I get a "page not found" - this happens with
> > all the sites including some filler sites I had to add to put in to
> > put a couple of sites into the right directories. Anyone have any
> > ideas? Mike
>
> This sounds like a common problem...
> run this
> ftp://www.zeffie.com/raq4/fixsite.pl
>
Normally when the siteadmins are gone, that also means that all the mail
server aliases are gone.
The fix for that is below:
#this will not fix sites with more than one domain pointing to 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
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 newvirt file to the route section of the /etc/mail/virtusertable
cat /tmp/newvirt
pico -w /etc/mail/virtusertable
(paste the text displayed by the cat above into the route section of the
virtusertable)
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
Then:
/etc/rc.d/init.d/sendmail stop
killall -9 sendmail
/etc/rc.d/init.d/sendmail start
/usr/local/sbin/swatch
Then check the mail.sites manually
----
Ken Marcus
Precision Web Hosting
ken@xxxxxxxxxxxxxxxx
http://www.precisionweb.net