Kovács Zoltán <[email protected]> wrote on 2010-Sep-28:
> The /tmp/info2 directory exists with the following layout:
> 
> server:~# find /tmp/info2 | xargs ls -l
> /tmp/info2:
> total 4
> drwxrwxrwx  5 daemon daemon 4096 Sep 28 12:12 Maildir
> 
> /tmp/info2/Maildir:
> total 12
> drwxrwxrwx  2 daemon daemon 4096 Sep 28 12:12 cur
> drwxrwxrwx  2 daemon daemon 4096 Sep 28 12:12 new
> drwxrwxrwx  2 daemon daemon 4096 Sep 28 12:12 tmp

The permissions for these files aren't correct for a Maildir.  Use the
"maildirmake" command that comes with courier to make your Maildir.

/path/to/maildirmake /tmp/info2/Maildir

will set everything up properly.

> Here is my userdb file:
> 
> server:/usr/local/etc/authlib# cat userdb
> info2 
> systempw=J8rkM5hKUZsq.|[email protected]|uid=1|gid=1|home=/tmp/info2
> [email protected] 
> systempw=J8rkM5hKUZsq.|mail=/tmp/info2|uid=1|gid=1|home=/tmp/info2

First, if you want people to log in just as "info2", then put
"server2.webfield-design.hu" into the 'locals' files in courier's 'etc'
directory.  (That probably either "/etc/courier/" or
"/usr/local/etc/courier/" depending on how you compiled it.)

If you want people to log in as "[email protected]" then
put "server2.webfield-design.hu" into the 'hosteddomains' file in
courier's 'etc' directory.  (If 'hosteddomains' is a directory, you can
either delete it and create a file instead, or you can put that server
name into any file name inside the directory.)  Then run the
"makehosteddomains" command.

Also put that server name into a file (of any name) inside the
"esmtpacceptmailfor.dir" folder in the courier 'etc' directory.  Then
run "makeacceptmailfor".

Remove the "mail=" field from your userdb file.  Just have "home=" and
courier will look for a "Maildir" directory by default.  Get rid of the
line that no longer corresponds to your set up. (If you are using
"locals" get rid of the entry with the domain name and vice versa.)
Make sure you have a TAB between the name and the other fields.  Spaces
won't work.  Then run "makeuserdb".

Now run "authtest info2" or "authtest [email protected]"
depending on which way you decided to configure this domain.  That
should show you the relevant information for this account.  If it says
"Authentication FAILED", then there's something wrong.  If it finds the
user try "authtest info2 PASSWORD" with whatever password you have it.
If the password matches the user then you'll see the info.  If not
you'll get the "FAILED" message again.

If authlib can authenticate the user and the Maildir is set up
correctly, you should be able to deliver mail.

HTH

Jeff Jansen

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to