Hey guys,

I worked it out, very simple...

Log in as root.

Create the following: (where '~/' is your qmail directory, usually /var/qmail)

'~/alias/Maildir'
'~/alias/Maildir/cur'
'~/alias/Maildir/new'
'~/alias/Maildir/tmp'

'chown -R alias /var/qmail/alias/Maildir'
'chgrp -R qmail /var/qmail/alias/Maildir'
'chmod -R 700 /var/qmail/alias/Maildir'

Now the mail directory and its sub directories are all owned
by 'alias'.

The group ownership is set to 'qmail'.  Maybe this does not matter
as the permissions are set to allow access for owner use only.

Also make sure that the '.qmail-xyz' files are owned by 'alias'
and the group ownership is 'qmail' for the ones you set up.
(Do not change the ones that the install created from the '/etc/alias'
file)

Now you can set up the content of the '.qmail-xyz' file.  In my example
the file is '.qmail-test'.  The file should contain "./Maildir/" (Without
the quotes) and nothing else.
If you want '.qmail-test' to redirect to a user then change the content to
"&[EMAIL PROTECTED]" (Or just "&user_name" if local) again without
the quotes.

I have just tested it out and it works fine.  I think that my main problem
was using 'maildirmake' to create a '/Maildir' which created it under
the '/root' directory.

Qmail will not deliver to the 'root' account.  Copying '/Maildir' to
'~/alias/Maildir also failed to allow the mail to be put into
the '~/alias/Maildir/new' due to the ownership being root.

Lastly the '.qmail-test' was also owned by 'root' which I think also
stops delivery to the '/Maildir' under '~/alias'

Sending mail to '[EMAIL PROTECTED]' now puts the mail in the
'~/alias/Maildir' directory.

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

On an other note:

Does anyone know how to set up qmail pop to get the mail from
the '~/alias/Maildir' "account".  I would like to be able to
check this "account" as if it is a 'normal' account, (With Netscape)
without having an account set up on the Linux box.
What about a password for access?

Best regards
Anthony

--
--------------------------------------------------------------------
Movielink Pty Ltd        E-Mail technical: [EMAIL PROTECTED]
8-10 River Street        E-Mail Sales    : [EMAIL PROTECTED]
Richmond, Victoria 3121  Ph  : +(61) 3 9428 8088
Australia                FAX : +(61) 3 9429 5918
--------------------------------------------------------------------


Reply via email to