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

RE: [cobalt-users] Raq4 and Virtual Email Setup



> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Markus Bangerter
> Sent: 26 June 2003 09:32
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] Raq4 and Virtual Email Setup
>
>
> hi
>
> i'm using a raq4 with all the latest updates installed and
> want to do 'virtual hosting' for web and mail; so the raq
> has only one ip-address for all the sites hosted on it.
>
> i installed the first virtual site; let's say www.abc.com
> with the following site settings:
> ip-address:  192.168.22.4
> host-name:   www
> domain-name: abc.com
> web-server alias:   www.abc.com
> email.server alias: mail.abc.com
>
> then i added a user with the name 'username'.
>
> so the email-address for this user should be: username@xxxxxxx
>
> if i login to open webmail the email-address instead is
> username@xxxxxxxxxxx ?! why
>
> i don't have a domain www.abc.com (only abc.com)
>
> do i have something forgotten to configure ?
>
> many thanks for your response
>
> regards, Markus

Hi Markus

OWM does use the user@xxxxxxxxxxxxxx as standard,the only fully automatic NO
USER INPUT solution that I have
Found, is detailed below. It is sooooo easy even I managed to set it up!!
All new users have
the www removed within 1 hour without anyone lifting a finger.


A fix which I use from Bill B (thanks Bill)

<snip>

Using an idea suggested by Kim Schulz, I have came up with this and it
works for all users:

As root, Create a copy of the virtusertable for OWM:
   cd /etc/mail
   cp virtusertable virtusertable.owm
   perl -pi -e "s/www\.//g" virtusertable.owm

Set this up as a script to run hourly from cron.

Add this line to openwebmail.conf
   virtusertable           /etc/mail/virtusertable.owm

This will remove the 'www' from everyone, no need to reset any options.

- Bill B.
 <snip>


This make a copy of the virtusertable every hour which owm then uses, simple
and it works!!

Regards