|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Denis BUCHER (dbucherml
hsolutions.ch)
Date: Sun Jul 20 2008 - 05:49:26 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
My last question is about having a default user for a domain. Let's take
an example to explain my question...
1. My postfix is receiving emails for foodcompany.com, securebank.com
and booksreadingassociation.org
* securebank.com has got 10 emails, any invalid email has to be rejected
* foodcompany.com has got 5 emails, but want to receive all other
("invalid") emails on a 6th mailbox
* booksreadingassociation.org wants to received any email
(*
booksreadingassociation.org) on one mailbox
2. My postfix is configured the following way :
# our domains (foodcompany.com, securebank.com and
booksreadingassociation.org)
virtual_mailbox_domains = ldap:/etc/postfix/ldap-domains.cf
# our aliases (info
securebank.com goes to ssmith
securebank.com)
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
# our accounts (10 for secure bank, 5 for food company)
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf
# cyrus is used
virtual_transport = cyrus
cyrus_destination_recipient_limit=1
3. As far as I understand, my config is "Postfix virtual MAILBOX
example: separate domains, non-UNIX accounts" ?
4. I solved the problem for booksreadingassociation.org (all emails in
one account) :
added and alias from "
booksreadingassociation.org" to
"books
booksreadingassociation.org" and created an acocunt
"books
booksreadingassociation.org"
5. But my problem is how to do the foodcompany.com config :
* Postfix should FIRST check :
o john
foodcompany.com
o james
foodcompany.com
o peter
foodcompany.com
o laura
foodcompany.com
o charles
foodcompany.com
* And then put ALL THE REST to :
o others
foodcompany.com
Because if I add "
foodcompany.com" to aliases, then all emails
(including the 5 mailboxes) are going to "others
foodcompany.com".
Of course, this is because Postfix FIRST checks for aliases and THEN for
mailboxes...
I also tried to put "
foodcompany.com" as an account but it doesn't
work, it seems that postifx checks for "
foodcompany.com" only in aliases ?
Thanks a lot for your help, I know it's not an easy question... I
although think that someone knowing well what postfix does in which
order could help me, we have to find where postifx looks AFTER
virtual_mailbox_maps, or something like that...
Denis
Denis Bucher
--
Denis Bucher Horus Digital Solutions sàrl Each problem has a solution
___________________________________________________________________________
Tél. +41-22-8000625 Fax: +41-22-8000622 www.hsolutions.ch
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]