On Thu, Nov 02, 2000 at 04:03:36PM -0600, Eric Walters wrote:
> Let me make sure I understand correctly. If I use the assign method, do I
> still need to create an .qmail-user file in jdoe's directory? Do I only
If you say, in assign,
=john:jdoe:uid:gid:/home/jdoe:::
then messages to john will be controlled by /home/jdoe/.qmail. If there
is no such file, mail will be delivered using the system's default
delivery to jdoe. (Just tested that :) See qmail-users(5). So you
don't need a .qmail or a .qmail-user file.
> have to do this if he wants it to forward to another local or remote
> address?
If you want to forward to a remote address, you can use .qmail-user files.
>
> With the assign method, how does it handle multiple John@domain accounts?
> In other words I have a John@domain1 and a John@domain2. I assume it can
> differentiate based on the fact that the virtualdomains file has the
> john@domain1:jdoe so it converts this to jdoe-john, treats the domain as
> local, and will deliver to jdoe's Maildir directory. If I have a
> John@domain2 :jjones it would deliver to the jjones Maildir. Right? :|
Yes.
> Is using the assign file the only way to accomplish my goal or is there
> another solution?
I think you can get what you want using a virtualdomains file only. However,
you should handle _every_ mailbox in the virtual domains using the virtual
domains file then. Domains you want to handle using the virtualdomains file
should not be in /var/qmail/control/locals. See qmail-send(8).
Hope this helps,
Bye,
--
Joost