hi list,

Finally I have success with running QMAIL (after a lot of searching on the Internet 
and help from some of the list).
So as I understand the QMAIL delivery mechanism work in the following way :
0. message comes to: [EMAIL PROTECTED]
1. Read control/virtualdomains file. Ex.:
domain.com:domainacc

2. the address become : [EMAIL PROTECTED]

3. Read users/assign (cdb) Ex.:
=domainacc-user: user_that_has_access_to_maildir: UID:GID:/mail/mydomain/user:::

4. Read /mail/mydomain/user/.qmail  Ex.:
../user/

5. The file/mail goes delivered in directory /mail/mydomain/user

OK.This works for me. Now I want to make the following to add only one line in 
users/assign file for the whole domain, but can figure out how.
I was tring many variants w/o a big success.
The reason, if I have something like this user/assign :

+domainacc-:popuser:UID:GID:/mail/mydomain:::

and then in /mail/mydomain to have following files :
.qmail-domainacc-user1
.qmail-domainacc-user2
.qmail-domainacc-user3
.....
.qmail-domainacc-userX

that contains :
./user1/
./user2/
./user3/
.....
./userX/

one line in users/assign will make all the delivery, but can't make this to work.
OK. Now my questions :
1. What is the purpose of qmail/alias directory|users. When all delivery can be made 
via mechanism described bofore.
2. What is the purpose of "dash" and "ext" in users/assign file. From the man page I 
can understand nearly nothing ?
3. And finaly why the delivery is so complicated. Why not delivery become from three 
tier (virtualhosts,users/assign,.qmail) to two tier. What I have in mind (only 
users/assign,.qmail).

Example of the users/assign file :

(.*)@(.*):popuser:UID:GID:"/mailhome/" . $2 . "/" .$1:::

:") what this mean --> REGEXP !!! if we translate this to alaPERL, it will look like 
:something like this.

$address = "[EMAIL PROTECTED]";
($user,$domain) = $address =~ /(.*)@(.*)/;
$homedir = "/mailhome/" . $domain . "/" .$user

In this way we will have only one line for all domains, no need for .cdb and 
recopilation etc... even it can be usefull with virtualdomains too.
Additionaly this line can directly point to .qmail file.
Ex.:
(.*)@(.*):popuser:UID:GID:"/mailhome/" . $2 . "/" . $1 . "/.qmail" :::
or
(.*)@(.*):popuser:UID:GID:"/mailhome/"+$2+"/"+$1+"/.qmail":::
for ease reading.
This are just my thoughts, finally I'm not a C programmer (only reader :")) and can't 
help very much on this.

=====
[EMAIL PROTECTED]
=====

Reply via email to