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

Re: [cobalt-users] [RaQ3] Accepting E-Mail outside domain



On Sat, 21 Oct 2000, Trevor Munday wrote:

> Searched the archive and knowledge base and found a part answer but looking
> for something a little more secure!
> 
> A customer wants to be able to accept e-mail at domain.com and domain.co.uk.
> 
> Yes I could set-up 2 virtual sites, but I want to be able to collect the
> e-mail using 1 virtual site.
> 
> How can I configure a RaQ3 to accept the second domains e-mail using a User
> account in the virtual site of the first domain?

Hi Trevor,

Sorry if some of the stuff below is a bit basic, but I don't know how
familar you are with editing system files on your Raq.

Bear in mind that editing system files technically invalidates your
warranty (but then how can anyone administer a Raq properly without
editing system files....).

Assuming that you want mail for domain.co.uk to go to a user on
domain.com and that the user's name is user1:

First set up DNS for domain.co.uk and domain.com as normal, including MX
records. Then set up a virtual site in the control panel for domain.com,
but not for domain.co.uk. Set up user1 for domain.com

Login as root

Back up the files that you will be editing:
cp /etc/sendmail.cw /etc/sendmail.cw.backup
cp /etc/virtusertable /etc/virtusertable.backup

Then edit the files as required:

pico -w /etc/sendmail.cw
Go to the end of the file and type:
domain.co.uk
www.domain.co.uk

Then Ctrl-X to exit from pico and save the file

pico -w /etc/virtusertable
Go to the end of the file beneath the line that reads "# Put custom
additions below" and type:

@domain.co.uk    user1
@www.domain.co.uk user1

Then Ctrl-X to exit from pico and save the file

Then at the command prompt type:
/usr/bin/makemap hash /etc/virtusertable < /etc/virtusertable
/etc/rc.d/init.d/sendmail restart

Now you should be set up so that user1@xxxxxxxxxx will get all the email
for anyone@xxxxxxxxxxxx

You might also want to add a line to the virtual server setting for
domain.com in your /etc/httpd.conf file so that anyone going to
www.domain.co.uk ends up at www.domain.com. Remember to back up httpd.conf
first.

To do this add the following line below the existing ServerAlias line:

ServerAlias domain.co.uk www.domain.co.uk

Hope that helps.

Regards,

Roger Harrison