[Gllug] Virtual Domains & Duplicate email accounts
Dave van Zijl
dave at applicado.com
Mon Jul 29 15:04:37 UTC 2002
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
More information about the GLLUG
mailing list