[Gllug] Virtual Domains & Duplicate email accounts

Daniel Andersson daniel at septum.org
Mon Jul 29 15:06:10 UTC 2002


and don't forget to add domain1.com and domain2.com to
/etc/mail/local-host-names and then restart sendmail
:)

/ d

----- Original Message -----
From: "Dave van Zijl" <dave at applicado.com>
To: <gllug at linux.co.uk>
Sent: Monday, July 29, 2002 4:04 PM
Subject: Re: [Gllug] Virtual Domains & Duplicate email accounts


> Formi wrote:
> >  Hello,
> >
> >  Im setting up apache + sendmail + squirrelmail + ssl.
> >
> >  The setup works, but now I am faced with duplicate accounts,
> >  like support at domain1.com and support at domain2.com,
> >
> >  How can implement this? How do I separate them?
>
>
> Hi
>
> For sendmail, you can host virtualdomains using the virtusertable files:
> edit /etc/mail/virtusertable, then for each additional domain, add lines
> like the following
>
> rob at domain2.com domain2_rob
> nick at domain2.com domain2_nick
> @domain2.com formi
>
> this will catch incoming mails on the left (eg. rob at domain2.com) and
forward
> them on the the names you give on the right (eg domain2_rob) which are
> either system accounts or aliases in /etc/aliases
> Line no. 3 is optional, and just catches everything_else at domain2.com
> The names on the right can be anything, I just like to add the domain to
the
> username so I know which email address it's for
>
> don't forget to
> makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
> after editing the file
>
> Any email addresses you don't specify in the virtusertable file are
assumed
> to point to normal system accounts or aliases
>
> Hope I have my facts straight, its been a while ;)
> Dave
>
>
> --
> Gllug mailing list  -  Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug
>


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list