View previous topic :: View next topic |
Author |
Message |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Fri Apr 01, 2005 1:33 pm Post subject: imap not working(SOLVED) |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
kimchi_sg Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Fri Apr 01, 2005 1:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hayl Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Bugs.gif)
Joined: 28 Jan 2003 Posts: 442 Location: Calgary, Alberta, Canada
|
Posted: Fri Apr 01, 2005 2:07 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Fri Apr 01, 2005 2:49 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wmartino Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173940143341e6946a5a427.png)
Joined: 30 Mar 2004 Posts: 140
|
Posted: Fri Apr 01, 2005 3:31 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
amne Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/117771253447ad6e0ae3631.gif)
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
Posted: Fri Apr 01, 2005 3:52 pm Post subject: |
|
|
Moved from IG. _________________ Dinosaur week! (Ok, this thread is so last week) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Fri Apr 01, 2005 7:18 pm Post subject: |
|
|
Nope, that didn't help |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sat Apr 02, 2005 12:42 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
indynet Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Terminator/movie_the_terminator_machine.gif)
Joined: 07 Feb 2005 Posts: 108 Location: Prague - Czech Republic
|
Posted: Sat Apr 02, 2005 3:12 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Mad_Jester Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/742384928424e044a68e12.gif)
Joined: 08 Jan 2004 Posts: 85
|
Posted: Sat Apr 02, 2005 8:04 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sat Apr 02, 2005 2:38 pm Post subject: |
|
|
How do I do that, I don't want to use mysql. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
indynet Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Terminator/movie_the_terminator_machine.gif)
Joined: 07 Feb 2005 Posts: 108 Location: Prague - Czech Republic
|
Posted: Sat Apr 02, 2005 6:17 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sat Apr 02, 2005 6:32 pm Post subject: |
|
|
I would like to use pam...I guess |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sat Apr 02, 2005 9:17 pm Post subject: |
|
|
Isn't there a FAQ somewhere that actually works |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
wmartino Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/173940143341e6946a5a427.png)
Joined: 30 Mar 2004 Posts: 140
|
Posted: Sun Apr 03, 2005 3:48 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Sun Apr 03, 2005 6:31 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
justanothergentoofanatic Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 29 Feb 2004 Posts: 337
|
Posted: Sun Apr 03, 2005 8:32 pm Post subject: |
|
|
I think you're supposed to replace mysql.example.com with your actual IP or domain name.
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 |
|
![](templates/gentoo/images/spacer.gif) |
sarge n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 30 Aug 2004 Posts: 27
|
Posted: Sun Apr 03, 2005 11:25 pm Post subject: |
|
|
Did you ran conf.pl from squirrelmail/config ??
Its obviously needed for setting right type of imap server and connection method... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Mon Apr 04, 2005 3:46 am Post subject: |
|
|
Yeah, I ran conf.pl, its set up properly, the problem is with the imap server configuration. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rex123 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 21 Apr 2004 Posts: 272
|
Posted: Mon Apr 04, 2005 9:54 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Mon Apr 04, 2005 8:14 pm Post subject: |
|
|
/etc/courier-imap/authdaemondrc
/etc/courier-imap/authdaemond.conf
niether exist |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nevermore n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 10 Feb 2004 Posts: 2
|
Posted: Tue Apr 05, 2005 7:46 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Evileye l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Road_Runner.gif)
Joined: 06 Aug 2003 Posts: 782 Location: Toronto
|
Posted: Wed Apr 06, 2005 4:38 pm Post subject: |
|
|
That did it Nevermore, thanks!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|