Re: How to set up qmail for several info@virtual.dom?

2001-02-15 Thread Pawel Garbowski

Hello,

* Gregor Szaktilla [EMAIL PROTECTED] [010214 15:22] wrote:

I'm a big fan of /var/qmail/users/assign :-) 
[ man qmail-users ]

 [EMAIL PROTECTED]  should go to dom-1-01
 [EMAIL PROTECTED] should go to dom-1-02
 [EMAIL PROTECTED]   should go to dom-1-03
 [EMAIL PROTECTED]  should go to dom-2-01
 [EMAIL PROTECTED] should go to dom-2-02
 [EMAIL PROTECTED]  should go to dom-2-03

* Put in /var/qmail/controls/virtualdomains:

dom-1.dom:dom1
dom-2.dom:dom2

* Create /var/qmail/users/assign and put into it:

=dom1-info:virtual:888:888:/home/popboxes/dom-1-01:::
=dom1-peter:virtual:888:888:/home/popboxes/dom-1-02:::
=dom1-tim:virtual:888:888:/home/popboxes/dom-1-03:::
=dom2-info:virtual:888:888:/home/popboxes/dom-2-01:::
=dom2-peter:virtual:888:888:/home/popboxes/dom-2-02:::
=dom2-hans:virtual:888:888:/home/popboxes/dom-2-03:::
.

[ point at the and of this file is _required_ ]

where:
virtual - username (from /etc/password)
888:888 - uid:gid of the user
/home/popboxes/ - patch to user's .qmail file ( in this file 
  You shoud put for ex: ./Maildir/ )
 
What does it mean?
Mail for [EMAIL PROTECTED] will be delivery to user 'virtual' with uid
888 and gid 888 and delivery is controlling by .qmail in this user's
home directory. 

* Run /var/qmail/bin/qmail-newu 
(it builds database for assign file)

* Remove dom-1.dom and dom-2.dom from /var/qmail/control/locals

* Give qmail-send a HUP signal


Greets,

pawel

-- 
pawel garbowski  
[EMAIL PROTECTED]



How to set up qmail for several info@virtual.dom?

2001-02-14 Thread Gregor Szaktilla

Hi all,

I have read several docs but I haven't found the information (but I'm
not sure if I understand everything right) to answer the following
question ... so please can someone lend me a hand:

I have set up a server to host several (virtual) domains. How can I tell
qmail that mail for "[EMAIL PROTECTED]" has to be delivered to a different
user than mail for "[EMAIL PROTECTED]"? I read some docs on how to setup
qmail for handling mails for virtual domains but that docs said that
mail for _all_ users of a particular domain is collected in a single
mailbox (one single mailbox for each domain). But I want to have
different accounts for e.g. [EMAIL PROTECTED]" and "[EMAIL PROTECTED]" as
well as "[EMAIL PROTECTED]" and "[EMAIL PROTECTED]".

eg:
[EMAIL PROTECTED]  should go to dom-1-01
[EMAIL PROTECTED] should go to dom-1-02
[EMAIL PROTECTED]   should go to dom-1-03

[EMAIL PROTECTED]  should go to dom-2-01
[EMAIL PROTECTED] should go to dom-2-02
[EMAIL PROTECTED]  should go to dom-2-03

Is that possible with qmail (I'm sure it is...)? What documents should I
read?

Sorry for my bad english and thanks for helping ...


Gregor Szaktilla

--
maccc Email: [EMAIL PROTECTED]
Laengenhardstr. 13Tel. : (0761) 700 997
D-79104 Freiburg  Fax  : (0761) 700 998



Re: How to set up qmail for several info@virtual.dom?

2001-02-14 Thread Dave Sill

Gregor Szaktilla [EMAIL PROTECTED] wrote:

[EMAIL PROTECTED]  should go to dom-1-01
[EMAIL PROTECTED] should go to dom-1-02
[EMAIL PROTECTED]   should go to dom-1-03

[EMAIL PROTECTED]  should go to dom-2-01
[EMAIL PROTECTED] should go to dom-2-02
[EMAIL PROTECTED]  should go to dom-2-03

Is that possible with qmail (I'm sure it is...)?

Of course. :-)

In control/virtualdomains:

dom-1.dom:alias-dom-1
dom-2.dom:alias-dom-2

Then populate the necessary .qmail files as follows:

 File  Contents
 ~alias/.qmail-dom-1-info  dom-1-01
 ~alias/.qmail-dom-1-peter dom-1-02
 ~alias/.qmail-dom-1-tim   dom-1-03
 ~alias/.qmail-dom-2-info  dom-2-01
 ~alias/.qmail-dom-2-peter dom-2-02
 ~alias/.qmail-dom-2-tim   dom-2-03

-Dave



Re: How to set up qmail for several info@virtual.dom?

2001-02-14 Thread David Dyer-Bennet

Gregor Szaktilla [EMAIL PROTECTED] writes:

 Hi all,
 
 I have read several docs but I haven't found the information (but I'm
 not sure if I understand everything right) to answer the following
 question ... so please can someone lend me a hand:
 
 I have set up a server to host several (virtual) domains. How can I tell
 qmail that mail for "[EMAIL PROTECTED]" has to be delivered to a different
 user than mail for "[EMAIL PROTECTED]"? I read some docs on how to setup
 qmail for handling mails for virtual domains but that docs said that
 mail for _all_ users of a particular domain is collected in a single
 mailbox (one single mailbox for each domain). But I want to have
 different accounts for e.g. [EMAIL PROTECTED]" and "[EMAIL PROTECTED]" as
 well as "[EMAIL PROTECTED]" and "[EMAIL PROTECTED]".
 
 eg:
 [EMAIL PROTECTED]  should go to dom-1-01
 [EMAIL PROTECTED] should go to dom-1-02
 [EMAIL PROTECTED]   should go to dom-1-03
 
 [EMAIL PROTECTED]  should go to dom-2-01
 [EMAIL PROTECTED] should go to dom-2-02
 [EMAIL PROTECTED]  should go to dom-2-03
 
 Is that possible with qmail (I'm sure it is...)? What documents should I
 read?

Yes.  It's clearly (to me) described in the basic documents that come
in the tarball, and described in much more detail in Life With Qmail
(lifewithqmail.org).

The basic idea is you set up dom-1.dom and dom-2.dom as virtual
domains.  In the virtualdomains file put things like:

dom1-dom:dom1
dom2-dom:dom2

and create local users dom1 and dom2, who will control dom1 and dom2
respectively. 

Now, in ~dom1 (that's the home directory for user dom1; that's given
in the passwd file), the file .qmail-info will control what is done
with email for [EMAIL PROTECTED]

and in ~dom2, the file .qmail-info will control what is done with
email for [EMAIL PROTECTED]

Or you can use a virtual domains add-on package like vmailmgr or
vpopmail to centralize control of the virtual addresses, if you
prefer.  For large complex setups I think the add-on is better.  For
smaller simpler setups (like mine with a a dozen or so domains and
mostly a few dozen forwarding addresses in them) I find using users
and .qmail files easier and clearer.  Also very easy when I delagate a
domain to somebody.

 Sorry for my bad english and thanks for helping ...

Your english seems quite good, from this message anyway.
-- 
David Dyer-Bennet  /  Welcome to the future!  /  [EMAIL PROTECTED]
SF: http://www.dd-b.net/dd-b/  Minicon: http://www.mnstf.org/minicon/
Photos: http://dd-b.lighthunters.net/