Web Hosting Talk







View Full Version : mails for 2 domains


joachim
03-09-2002, 09:44 PM
Hello all,
I have a raq 3 and have a customer with 2 domains.
One I have in the httpd.conf file as ServerAlias.
Now, how can I manage that mail for the second
domain is forwarded to a certain email account
without having 2 sites separately?


Joachim

jks
03-09-2002, 10:35 PM
Originally posted by joachim
Hello all,
I have a raq 3 and have a customer with 2 domains.
One I have in the httpd.conf file as ServerAlias.
Now, how can I manage that mail for the second
domain is forwarded to a certain email account
without having 2 sites separately?


Joachim

Add a line to the virtusertable file like this:

@extradomain.com %1@otherdomain.com

Save it, and then remake the .db file:

makemap hash virtusertable.db < virtusertable

And then restart sendmail:

/etc/rc.d/init.d/sendmail restart