Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
imap not working(SOLVED)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Fri Apr 01, 2005 1:33 pm    Post subject: imap not working(SOLVED) Reply with quote

Greetings,

I am trying to install a mail server with postfix and courier-imap.

When I try and login with squirrel mail I get the following error...

Quote:
ERROR : Connection dropped by imap-server.


Does anyone know what is wrong and how I can fix this.


Last edited by Evileye on Wed Apr 06, 2005 4:40 pm; edited 3 times in total
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3038

PostPosted: Fri Apr 01, 2005 1:53 pm    Post subject: Reply with quote

Please post in the correct forum the next time. The correct place for this question is in Networking and Security.

Last edited by kimchi_sg on Fri Apr 01, 2005 4:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hayl
Guru
Guru


Joined: 28 Jan 2003
Posts: 442
Location: Calgary, Alberta, Canada

PostPosted: Fri Apr 01, 2005 2:07 pm    Post subject: Reply with quote

check in the /etc/courier-imap/imapd config file.

there are a number of setting syou can tweak in there such as the number of connections from 1 ip address, number of daemons started, timeout duration, etc.
_________________
"I do not fear computers. I fear lack of them." - Isaac Asimov
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Fri Apr 01, 2005 2:49 pm    Post subject: Reply with quote

I get the same error if I try a different imap server such as uw-imap

I fooled around with the courier config files, but I still get the same error.
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Fri Apr 01, 2005 3:31 pm    Post subject: Reply with quote

Have you tried looking here https://forums.gentoo.org/viewtopic-t-56633.html. It might help you answer your questions.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Fri Apr 01, 2005 3:52 pm    Post subject: Reply with quote

Moved from IG.
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Fri Apr 01, 2005 7:18 pm    Post subject: Reply with quote

Nope, that didn't help
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Apr 02, 2005 12:42 am    Post subject: Reply with quote

In /var/log/messages I get the following

Quote:
Apr 1 14:39:53 penguin imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL Server Host 'mysql.example.com' (1)
Apr 1 14:39:53 penguin imapd: LOGIN FAILED, user=jay, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin imapd: authentication error: Input/output error
Back to top
View user's profile Send private message
indynet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 108
Location: Prague - Czech Republic

PostPosted: Sat Apr 02, 2005 3:12 am    Post subject: Reply with quote

Quote:
Apr 1 14:39:53 penguin imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL Server Host 'mysql.example.com' (1)
Apr 1 14:39:53 penguin imapd: LOGIN FAILED, user=jay, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin imapd: authentication error: Input/output error


You need setup right address of your mysql server that it si used by authdaemond. Squirrel mail will be work fine as you corect setup imap server.
Back to top
View user's profile Send private message
Mad_Jester
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jan 2004
Posts: 85

PostPosted: Sat Apr 02, 2005 8:04 am    Post subject: Reply with quote

You need to setup authdaemon to authenticate properly. Currently it looks like it is trying to use mysql, but you haven't configured it to point to a valid mysql server with correct credentials. If you have a mysql server setup with user information then change the authdaemon config to point to it. If you don't then you need to change the authdaemon to authenticate via another source, like local accounts.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Apr 02, 2005 2:38 pm    Post subject: Reply with quote

How do I do that, I don't want to use mysql.
Back to top
View user's profile Send private message
indynet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 108
Location: Prague - Czech Republic

PostPosted: Sat Apr 02, 2005 6:17 pm    Post subject: Reply with quote

EvilEye wrote:
How do I do that, I don't want to use mysql.


If you would like use local accounts, you should modify authdaemondrc to look

Code:
/etc/courier-imap/authdaemondrc

authmodulelist="authpam"


than look also to

Code:
 /etc/pam.d/imap

# PAM setup for
auth       required     pam_nologin.so
auth       required     pam_stack.so service=system-auth
account    required     pam_stack.so service=system-auth
session    required     pam_stack.so service=system-auth


Please send us which method you would like to use to autenticate users.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Apr 02, 2005 6:32 pm    Post subject: Reply with quote

I would like to use pam...I guess
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sat Apr 02, 2005 9:17 pm    Post subject: Reply with quote

Isn't there a FAQ somewhere that actually works
Back to top
View user's profile Send private message
wmartino
Tux's lil' helper
Tux's lil' helper


Joined: 30 Mar 2004
Posts: 140

PostPosted: Sun Apr 03, 2005 3:48 am    Post subject: Reply with quote

Like is said earlier in this thread. Follow those instructions and you have no problems getting it up and running.
_________________
Intell C2D Q6600 @ 3.0Ghz -- ASUS P5W DH
Zalman 9700 LED -- 8g OCZ Gold Memory -- GECUBE 1950xtx
250g Gentoo64 -- 200g Windows Vista Ultimate -- 200g Mac OSX
250g Windows XP PRO -- Liteon DVD, Pioneer DVR-111D DVD-D/L-RW
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Sun Apr 03, 2005 6:31 pm    Post subject: Reply with quote

I'm having a problem with it trying to authenticate with mysql which isn't mentioned in that faq.. If I follow it exactly will it work anyways because in /var/log/messages I get the following

Quote:
Apr 1 14:39:53 penguin imapd: Connection, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin authdaemond: failed to connect to mysql server (server=mysql.example.com, userid=admin): Unknown MySQL Server Host 'mysql.example.com' (1)
Apr 1 14:39:53 penguin imapd: LOGIN FAILED, user=jay, ip=[::ffff:127.0.0.1]
Apr 1 14:39:53 penguin imapd: authentication error: Input/output error
Back to top
View user's profile Send private message
justanothergentoofanatic
Guru
Guru


Joined: 29 Feb 2004
Posts: 337

PostPosted: Sun Apr 03, 2005 8:32 pm    Post subject: Reply with quote

I think you're supposed to replace mysql.example.com with your actual IP or domain name. 8O

I don't mean to get all RTFM on you, but I think you'd have a much easier time setting this stuff up if you read the relevant documentation. Aping a bunch of commands into a mysterious black box is probably not going to help your understanding very much.

-Mike
Back to top
View user's profile Send private message
sarge
n00b
n00b


Joined: 30 Aug 2004
Posts: 27

PostPosted: Sun Apr 03, 2005 11:25 pm    Post subject: Reply with quote

Did you ran conf.pl from squirrelmail/config ??
Its obviously needed for setting right type of imap server and connection method...
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Mon Apr 04, 2005 3:46 am    Post subject: Reply with quote

Yeah, I ran conf.pl, its set up properly, the problem is with the imap server configuration.
Back to top
View user's profile Send private message
rex123
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 272

PostPosted: Mon Apr 04, 2005 9:54 am    Post subject: Reply with quote

Your problem is that the imap server can't do authentication because it's expecting a mysql database. But you don't want to use a mysql database. And you want to use pam?

If so, you could try re-emerging courier-imap (and other courier things like authdaemon/authlib/whatever) with different USE flags. Try without mysql, for example. Or with pam.

The alternative is to fix the config files. The howto mentioned has good info on this. eg:

Code:

# vi /etc/courier-imap/authdaemond.conf

AUTHDAEMOND="authdaemond.plain"
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Mon Apr 04, 2005 8:14 pm    Post subject: Reply with quote

/etc/courier-imap/authdaemondrc
/etc/courier-imap/authdaemond.conf

niether exist
Back to top
View user's profile Send private message
Nevermore
n00b
n00b


Joined: 10 Feb 2004
Posts: 2

PostPosted: Tue Apr 05, 2005 7:46 pm    Post subject: Reply with quote

After looking in the /etc/init.d/courier-authlib file, I noticed that authlib is looking for:

/etc/courier/authlib/authdaemonrc

For instance, I changed mine from:

authmodulelist="authmysql authpgsql authpam authuserdb authshadow authcustom"

to

authmodulelist="authpam"

restarted courier-authlib:

/etc/init.d/courier-authlib restart

and all was well.
Back to top
View user's profile Send private message
Evileye
l33t
l33t


Joined: 06 Aug 2003
Posts: 782
Location: Toronto

PostPosted: Wed Apr 06, 2005 4:38 pm    Post subject: Reply with quote

That did it Nevermore, thanks!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum