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

Re: [cobalt-users] Remove www from Openwebmail users (was Openwebmail)



Fix for the Raq2's

Put this in your cron.* folders and/or call it from crontab.

-=-=-=-=-=-=-
#!/bin/sh
# cronjob script to update sendmail virtusertable for OWM
# Perl by Kim Schulz
# Shell by Jay Summers inspired by William J.A. Brillinger

# Make a copy of the virtusertable to work on
/bin/cp -f /etc/virtusertable /etc/virtusertable.owm

# remove www. from all users in virtusertable
/usr/bin/perl -pi -e "s/www\.//g" /etc/virtusertable.owm

# All done. Just make sure that the new virtusertable is
# referenced in the openwebmail.conf file.
# eg. virtusertable<TAB>/etc/virtusertable.owm
-=-=-=-=-=-=-

hth,
j
-- 
http://www.bizmanuals.com