Hello world,

I'm currently writing a mail-alias system "� la" iname.com (but just for
a few domains), and I am asking myself which is the best way to do
it. 

All the user info are stored in a sql database (alias and destination),
and the PHP program should be able to create new alias and remove them
when time's out. There will be probably a few thousand of aliases.

* Problem 1 : how to administrate more than one domain with one UID
My solution : using an /var/qmail/users/assign looking like that,
everything owned by user "domains" :

+a.omnis.ch-:a.omnis.ch:10000:10000:/home/domains/a.omnis.ch:-::
+b.omnis.ch-:b.omnis.ch:10000:10000:/home/domains/b.omnis.ch:-::
+c.omnis.ch-:c.omnis.ch:10000:10000:/home/domains/c.omnis.ch:-::
.

* Problem 2 : how to create / delete the aliases :
My proposition(not yet programmed) : simply creating and
deleting .qmail-username in the /home/domains/MAILDOMAIN/
directories. I know it would work, but is it a good
solution ?

Isn't it possible to let qmail look in a file looking like
this : ?
---------
user1   [EMAIL PROTECTED]
user2   [EMAIL PROTECTED]
...
---------
It would be quite simpler to administrate. And if you
already programmed such a thing, please contact me!

I'd be glad to read your comments... Thanks in advance :-)

Olivier

PS: once the work will be finished, I'll put the source
code online.

Reply via email to