hi peter, do i have reconfigure my postfix to maildir format? teh default would be mbox. another thing is im using qpopper,does this support vhosting?
--- Peter Santiago <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED]@cus wrote: > > >hi guys, > > > >im having some prolem with my virtual mail hosting > >problem. > > > >orig domain: abc.com > >virtual domain: xyz.net created user > > > >send an email to [EMAIL PROTECTED] = ok > >send an email to [EMAIL PROTECTED] = still i can receive > it > >using xyz.net account, which it shouldnt be > > > >here's my conf files > > > >/var/spool/mail/xyz.net > > > > > >virtual_mailbox_domains = xyz.net > >virtual_mailbox_base = /var/spool/mail/xyz.net > >virtual_mailbox_maps = > >hash:/etc/postfix/virtual_mailbox > > > ># virtual_mailbox > ># > >[EMAIL PROTECTED] xyz.net/user > > > >when i send emails to [EMAIL PROTECTED] it will create a > >mailbox in /var/spool/mail not in > >/var/spool/mail/xyz.net with this i can > send/receive > >emails in both [EMAIL PROTECTED] and [EMAIL PROTECTED] > > > > > > > > > http://www.postfix.org/VIRTUAL_README.html > > > Postfix virtual MAILBOX example: separate > domains, non-UNIX accounts > > As a system hosts more and more domains and users, > it becomes less > desirable to give every user their own UNIX system > account. > > With the Postfix virtual(8) > <http://www.postfix.org/virtual.8.html> > mailbox delivery agent, every recipient address can > have its own virtual > mailbox. Unlike virtual alias domains, virtual > mailbox domains > <http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class> > > do not need the clumsy translation from each > recipient addresses into a > different address, and owners of a virtual mailbox > address do not need > to have a UNIX system account. > > The Postfix virtual(8) > <http://www.postfix.org/virtual.8.html> mailbox > delivery agent looks up the user mailbox pathname, > uid and gid via > separate tables that are searched with the > recipient's mail address. > Maildir style delivery is turned on by terminating > the mailbox pathname > with "/". > > If you find the idea of multiple tables bothersome, > remember that you > can migrate the information (once it works), to an > SQL database. If you > take that route, be sure to review the "local files > versus databases" > <http://www.postfix.org/VIRTUAL_README.html#local_vs_database> > section > at the top of this document. > > Here is an example of a virtual mailbox domain > <http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class> > > "example.com": > > 1 /etc/postfix/main.cf: > 2 virtual_mailbox_domains > <http://www.postfix.org/postconf.5.html#virtual_mailbox_domains> > = example.com ...more domains... > 3 virtual_mailbox_base > <http://www.postfix.org/postconf.5.html#virtual_mailbox_base> > = /var/mail/vhosts > 4 virtual_mailbox_maps > <http://www.postfix.org/postconf.5.html#virtual_mailbox_maps> > = hash:/etc/postfix/vmailbox > 5 virtual_minimum_uid > <http://www.postfix.org/postconf.5.html#virtual_minimum_uid> > = 100 > 6 virtual_uid_maps > <http://www.postfix.org/postconf.5.html#virtual_uid_maps> > = static:5000 > 7 virtual_gid_maps > <http://www.postfix.org/postconf.5.html#virtual_gid_maps> > = static:5000 > 8 virtual_alias_maps > <http://www.postfix.org/postconf.5.html#virtual_alias_maps> > = hash:/etc/postfix/virtual > 9 > 10 /etc/postfix/vmailbox: > 11 [EMAIL PROTECTED] example.com/info > 12 [EMAIL PROTECTED] example.com/sales/ > 13 # Comment out the entry below to implement a > catch-all. > 14 # @example.com example.com/catchall > 15 ...virtual mailboxes for more domains... > 16 > 17 /etc/postfix/virtual: > 18 [EMAIL PROTECTED] postmaster > > > Notes: > > * > > Line 2: The virtual_mailbox_domains > > <http://www.postfix.org/postconf.5.html#virtual_mailbox_domains> > setting tells Postfix that example.com is a > so-called virtual > mailbox domain > > <http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class>. > If you omit this setting then Postfix will > reject mail (relay > access denied) or will not be able to deliver > it (mail for > example.com loops back to myself). > > NEVER list a virtual MAILBOX domain > > <http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class> > name as a mydestination > > <http://www.postfix.org/postconf.5.html#mydestination> > domain! > > NEVER list a virtual MAILBOX domain > > <http://www.postfix.org/ADDRESS_CLASS_README.html#virtual_mailbox_class> > name as a virtual ALIAS domain! > > * > > Line 3: The virtual_mailbox_base > > <http://www.postfix.org/postconf.5.html#virtual_mailbox_base> > parameter specifies a prefix for all virtual > mailbox pathnames. > This is a safety mechanism in case someone > makes a mistake. It > prevents mail from being delivered all over > the file system. > > * > > Lines 4, 10-15: The virtual_mailbox_maps > > <http://www.postfix.org/postconf.5.html#virtual_mailbox_maps> > parameter specifies the lookup table with > mailbox (or maildir) > pathnames, indexed by the virtual mail > address. In this example, > mail for [EMAIL PROTECTED] goes to the mailbox > at > /var/mail/vhosts/example.com/info while mail > for [EMAIL PROTECTED] > goes to the maildir located at > /var/mail/vhosts/example.com/sales/. > > * > > Line 5: The virtual_minimum_uid > > <http://www.postfix.org/postconf.5.html#virtual_minimum_uid> > specifies a lower bound on the mailbox or > maildir owner's UID. > This is a safety mechanism in case someone > makes a mistake. It > prevents mail from being written to sensitive > files. > > * > > Lines 6, 7: The virtual_uid_maps > > <http://www.postfix.org/postconf.5.html#virtual_uid_maps> > and > virtual_gid_maps > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

