[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Strange happenings



Thanks, Ken - we don't do mail on this server.

Mike

Michael D. Bathrick
President
BerkshireNet, Inc
126 Fenn Street
Pittsfield, MA 01201
(413) 442-7805

-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Ken Marcus -
Precision Web Hosting
Sent: Tuesday, February 17, 2004 4:00 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-users] Strange happenings


: 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





_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users