[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Openwebmail
- Subject: Re: [cobalt-users] Openwebmail
- From: Kim Schulz <kim@xxxxxxxxx>
- Date: Thu Oct 3 15:51:01 2002
- Organization: sslug
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
hi again
After a short talk to William, J.A.B. I have come up with an alternative
way to do the www. cleaning for openwebmail users.
in cron you could run a script like:
-------
#!/bin/sh
#cronjob script to update sendmail virtusertable
# by kim Schulz <kim@xxxxxxxxx>
#remove www. from all users in virtusertable
perl -pi -e "s/www\.//g" /etc/virtusertable
#remake the sendmail usermap database
makemap hash /etc/mail/virtusertable < /etc/virtusertable
#Copy the map to a place where openwebmail can find it
cp -f /etc/mail/virtusertable.db \
/home/openwebmail/cgi-bin/openwebmail/etc/etc.virtusertable.db
--------
that should work.
Im not 100% sure if makemap should have hash or dbm as
parameter. according to a howto at raqware.com, the raq's uses hash, but
sendmail's site says dbm. Does anyone know this ?
--
Kim Schulz - Freelance Development | He who laughs has not yet heard
Email : kim @ schulz.dk | the bad news. -- Bertolt
Tlf : 51904262 | Brecht