LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   squirrelmail courier postfix pam (https://www.linuxquestions.org/questions/linux-server-73/squirrelmail-courier-postfix-pam-628741/)

barje 03-17-2008 02:37 PM

squirrelmail courier postfix pam
 
Hi
I'm trying to set up an e-mail server where system users can access their mail using webmail.

I running debian etch and installed squirrelmail, courier-imap, courier-authlib and postfix. When I'm trying to login in squirrelmail I get the following message:
Quote:

Unknown user or password incorrect.
I've got the feeling my courier configuration doesn't work well. Or courier doesn't recognize my system users or I have to configure my domain name(part after the @ sign) somewhere, So courier knows witch domain local users are using.

Can somebody help me?

billymayday 03-17-2008 03:29 PM

Can you try getting your email using another client like evolution, and determine exactly where the issue is.

The mail logs will be your best friend here, so make sure you use them.

barje 03-18-2008 02:21 PM

evolution isn't a webmail client,
And the only thing I want to be configured is webmail.

My mail.log is telling me the following thing
Quote:

Mar 18 20:06:25 server imapd: Connection, ip=[::ffff:127.0.0.1]
Mar 18 20:06:25 server imapd: LOGIN FAILED, user=bart, ip=[::ffff:127.0.0.1]
Mar 18 20:06:30 server imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=43, sent=323
Mar 18 20:06:39 server imapd: Connection, ip=[::ffff:127.0.0.1]
Mar 18 20:06:39 server imapd: LOGIN FAILED, user=bart@domain.nl, ip=[::ffff:127.0.0.1]
Mar 18 20:06:44 server imapd: LOGOUT, ip=[::ffff:127.0.0.1], rcvd=59, sent=323
and my imapd has the following configured:
DEFDOMAIN="@domain.nl"

I also created a locals file and a defaultdomain file.

Is the're a way I can test my mailsettings using putty or ssh

barje 03-18-2008 03:51 PM

Hi I was searching the internet and now I'm understanding what the problem is.
I don't have to login with the domain name.
Now I get this messages when trying to log in
Quote:

ERROR: Connection dropped by IMAP server.
Using google I find out this is because users didn't recieve any mail yet and so mailboxes arn't create.
Now I want to know if it is possible to create mailboxes the first time a user is trying to access them

barje 03-20-2008 05:42 PM

I still don't know if it is possible to create inboxes at the time of access but I also have another question.
Is it possible to change de default Maildir?

I find out wath I have to change but I don't know how to change it.
In /etc/default/courier I have to change MAILDIR.
I want to change this to
MAILDIR=/share/mail/$USER
or something, but I don't know how to specify the user.

I also have to change /etc/postfix/main.cf and I have to add something like this
home_mailbox = /share/mail/$USER
but here I have the same problem. I don't know how to specify the mailuser name.

If I have this all working I want to check out virtual user using userdb for mailinggroups and aliases

billymayday 03-20-2008 08:42 PM

Have you tried

home_mailbox = /share/mail/$user/Maildir/

I don't know if you still need to create Maildir/cur, Maildir/new and Maildir/tmp though


All times are GMT -5. The time now is 01:52 AM.