<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 10pt Arial; MARGIN-LEFT: 2px">
<DIV>Thanks for the info. I chose however to use the virtual_alias_domain with
the virtual_alias_maps. In this case it allows me to add the domain to the
virtual alias domain and in the virtual file I'm able to map the user from their
old domain to their current hotmail account and the catchall is the same
@example.com is being sent to the hotmail account also.</DIV>
<DIV> </DIV>
<DIV>I'll see how this goes and hope for the best. In the end all I wanted to do
was route mail from their old domain to their hotmail accounts. Changing
the MX record to point to our domain should accomplish this.</DIV>
<DIV> </DIV>
<DIV>Jon</DIV>
<DIV><BR><BR>>>> blinken@gmail.com 6:32:45 pm 18/01/2006
>>><BR>On 17/01/06, Jon Miller
<jlmiller@mmtnetworks.com.au> wrote:<BR>> I need to create a virtual
domain to have mail from another domain sent to our mail server. I also
need to setup their mail account on this server. If I understand the
document at ( <A
href="http://www.postfix.org/VIRTUAL_README.html)">http://www.postfix.org/VIRTUAL_README.html)</A>
in mydestination I put in the domain of the site we're hosting. How do I
go about creating the mailboxes for the users if I want to put the users mailbox
say in /var/spool/domain2?<BR>> If I create users isn't their mail in the
/var/mail/spool by default?<BR>><BR>><BR>> Thanks<BR><BR>To me it seems
that the best method is to use virtual mailboxes<BR>without unix accounts. If
there is a pressing need to use unix<BR>accounts then you can, but I believe
then mail to say<BR>info@original-domain.com is treated the same as mail
to<BR>info@new-domain.com. My experience is with virtual mailboxes, so
I'll<BR>run through how to setup them. Someone else might have to fill in
if<BR>you do want the unix accounts side of things.<BR><BR>For virtual
mailboxes, don't put the domain in mydestination - put it<BR>in
virtual_mailbox_domains instead.<BR><BR>Set virtual_mailbox_base to the prefix
of where you want your virtual<BR>domains delivered to: for example /var/mail if
you want mail delivered<BR>to /var/mail/domain1.example.com/mailbox1.<BR><BR>Set
virtual_uid_maps to static:<UID>, where <UID> is the user ID
of<BR>your mail user. Do the same for virtual_gid_maps, but with the GID
of<BR>the mail user. This user needs to own and be able to write to
the<BR>mailbox folders. If you like you can create a lookup table here
that<BR>maps email addresses to UIDs and another that maps email addresses
to<BR>GIDs (use hash:filename instead of static:). This may allow you to
use<BR>this virtual mailboxes method with standard system accounts.<BR><BR>The
postfix howto also recommends you should set<BR>
virtual_minimum_uid = 100<BR>though it's redundant in this case because we're
using static UIDs.<BR>The idea here when using UIDs defined in a lookup table is
to stop you<BR>accidentally delivering mail as root or someone equally important
and<BR>so do something bad.<BR><BR>You then need to create a lookup table,
eg:<BR>virtual_mailbox_maps = hash:/etc/postfix/vmailboxes<BR><BR>This file
links email addresses to mailbox locations. Mailbox<BR>locations are relative to
virtual_mailbox_base. One mapping per line,<BR>space separated, eg:<BR><BR>#
Comments also work like this<BR>info@domain1.example.com
domain1.example.com/mailbox1<BR>test@domain1.example.com
domain1.example.com/test<BR>another_address@domain1.example.com
some/other/location<BR># You can also implement a
catchall:<BR>@domain1.example.com
domain1.example.com/catchall_mailbox<BR><BR>>From memory if the mailbox
locations this lookup table returns end in<BR>a / then the mailbox becomes a
Maildir-style mailbox (which is<BR>recommended). You will need to create the
directory with the command<BR>maildirmake. If no slash is given (as above) then
the mailbox is a<BR>standard unix mail file.<BR><BR>You will also need to run
`postmap /etc/postfix/vmailboxes` each time<BR>you change the mailbox lookup
table. If you use a mysql database<BR>(there are a few tutorials around) then
you don't need to run such a<BR>command, which is why I found the option
attractive when having to<BR>handle a number of domains.<BR><BR>Anyway, that
configuration is essentially what I use (it's basically<BR>pulled off one of the
sections of that howto you linked to) and is<BR>what I consider to be the most
straight forward and flexible method.<BR>Give it a go and let us know if it
works :)<BR><BR>Cheers,<BR>Patrick<BR>--<BR><A
href="http://www.labyrinthdata.net.au">http://www.labyrinthdata.net.au</A><BR>_______________________________________________<BR>PLUG
discussion list: plug@plug.org.au<BR><A
href="http://www.plug.org.au/mailman/listinfo/plug">http://www.plug.org.au/mailman/listinfo/plug</A><BR>Committee
e-mail: committee@plug.linux.org.au<BR></DIV></BODY></HTML>