[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Open Web Mail and RAQ Mailing list problem
- Subject: Re: [cobalt-users] Open Web Mail and RAQ Mailing list problem
- From: Kim Schulz <kim@xxxxxxxxx>
- Date: Sat Sep 13 07:51:01 2003
- Organization: sslug
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Sat, 13 Sep 2003 09:17:28 -0400 (EDT)
Thom LaCosta <baltimoremd@xxxxxxxxxxxxxxx> wrote:
> On Sat, 13 Sep 2003, Alfredo Musse T. wrote:
>
> > > Has anyone played with a script to do global modifications of
> > virtusertable to delete the www > from the domain name?
> >
> > I have this on an hourly cron on my Raq 4
> >
> > http://list.cobalt.com/pipermail/cobalt-users/2003-January/084050.html
>
> Thanks....but you say
>
> The only detail is that you need to wait until the next hour before
> use openwebmail when creating a new user
>
> if the new user is created after the cron job, will the address get
> corrected the next time cron runs?
>
> If that's true, maybe have the cron job run more often?
we have taken it a bit further and edited the admserver gui a bit (just
added one line).
this is what we have done on our RaQ3 boxes:
open /usr/admserv/cgi-bin/.cobalt/siteUserAdd/siteUserAdd.cgi
find line 133 and add
system("/path/to/you/hourly/runned/script");
here it looks like (with the lines around it:
if ($ret) { # generate error message
$info='<IMG SRC="/.cobalt/images/bang.gif" ALIGN=CENTER>' . $ret;
print "location: $siteUserAddScriptURL\?group=$group&info=$info\n\n";
} else {
system("/etc/cron.hourly/update-own.sh");
print "location: $siteUserListScriptURL\n\n";
}
On raq4 etc. it should be fairly simple to do the same.
This runs the update script every time you add a new user.
ohh btw! my update script looks like this:
#!/bin/bash
# create a current copy of the VirtUserTable for OpenWebmail
cp /etc/virtusertable /etc/virtusertable.owm
perl -pi -e "s/www\.//g" /etc/virtusertable.owm
Best regards
Kim Schulz