LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 03-17-2008, 03:37 PM   #1
barje
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Rep: Reputation: 0
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?
 
Old 03-17-2008, 04:29 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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.
 
Old 03-18-2008, 03:21 PM   #3
barje
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 03-18-2008, 04:51 PM   #4
barje
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 03-20-2008, 06:42 PM   #5
barje
LQ Newbie
 
Registered: Feb 2008
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 03-20-2008, 09:42 PM   #6
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix, Squirrelmail, courier-imap, etc jimbo1708 Linux - Software 1 07-26-2007 10:02 PM
LXer: Book review: Setup and Run a Small Office Email Server Using Postfix, Courier, Procmail, Squirrelmail, Clamav and Spamassassin LXer Syndicated Linux News 0 08-24-2006 10:21 AM
qmail + courier imap + squirrelmail...can't login using squirremail..user invalid rnj Linux - Newbie 6 10-12-2004 12:14 AM
LDAP courier IMAP SquirrelMail Exim adamfowler Linux - Software 0 04-28-2004 08:31 AM
Qmail+courier-IMAP+SquirrelMail+ virtualmin Half way there posixjunkie Linux - Wireless Networking 0 04-15-2004 08:07 AM


All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration