[gentoo] kan niet connecten met courier-imap

Pagina: 1
Acties:

  • JaQ
  • Registratie: Juni 2001
  • Laatst online: 16:43
Ik heb al een tijdje gentoo draaien en wilde nu eindelijk eens courier gaan opzetten.
Alleen ik mag om een of andere reden niet connecten met de imap server.
Ik heb netje de authdaemonrc aangepast, zoals beschreven staat in de desktopconfiguration-guide van gentoo. Als ik daarna met telnet connecteer naar courier mag ik er niet in.

code:
1
2
3
4
5
6
7
automagic root # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See COPYING for distribution information.
LOGIN user password
LOGIN NO Error in IMAP command received by server.


In mijn mail.log staat wel dat ik connect, maar ik kan verder geen errors vinden.

code:
1
Nov  3 19:26:52 automagic imapd: Connection, ip=[127.0.0.1]


Heeft iemand enig i.d. waar dit aan kan liggen, ik namelijk niet meer :?

Egoist: A person of low taste, more interested in themselves than in me


  • Kees
  • Registratie: Juni 1999
  • Laatst online: 15:28

Kees

Serveradmin / BOFH / DoC
welke authdaemonrc gebruik je?
paste de (relevante) config eens uit /waar/je/config/ook/is/ (standaard /usr/lib/imap.../etc geloof ik)

Dat is namelijk best wel relevant, wij zijjn niet helderziend ;)

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan


  • JaQ
  • Registratie: Juni 2001
  • Laatst online: 16:43
okay... ik ben niet echt bekend met die autdaemonrc, dus ik heb gewoon de howto gevolgd.

De authdaemonrc die ik heb aangepast staat in mijn geval in /etc/courier-imap/

en dit staat er in:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
##VERSION: $Id: authdaemonrc.in,v 1.8 2001/10/07 02:16:22 mrsam Exp $
#
# Copyright 2000-2001 Double Precision, Inc.  See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored.  Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited.  Multiline variable contents,
# with the \ continuation character, are not allowed.  Everything must
# fit on one line.  Do not use any additional whitespace for indentation,
# or anything else.

##NAME: authmodulelist:0
#
# The authentication modules that are linked into authdaemond.  The
# default list is installed.  You may selectively disable modules simply
# by removing them from the following list.  The available modules you
# can use are: authcustom authcram authuserdb authpam

#authmodulelist="authcustom authcram authuserdb authpam"
authmodulelist="authpam"

##NAME: authmodulelistorig:1
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authcustom authcram authuserdb authpam"

##NAME: daemons:0
#
# The number of daemon processes that are started.  authdaemon is typically
# installed where authentication modules are relatively expensive: such
# as authldap, or authmysql, so it's better to have a number of them running.
# PLEASE NOTE:  Some platforms may experience a problem if there's more than
# one daemon.  Specifically, SystemV derived platforms that use TLI with
# socket emulation.  I'm suspicious of TLI's ability to handle multiple
# processes accepting connections on the same filesystem domain socket.
#
# You may need to increase daemons if as your system load increases.  Symptoms
# include sporadic authentication failures.  If you start getting
# authentication failures, increase daemons.  However, the default of 5
# SHOULD be sufficient.  Bumping up daemon count is only a short-term
# solution.  The permanent solution is to add more resources: RAM, faster
# disks, faster CPUs...

daemons=5

##NAME: version:0
#
# When you have multiple versions of authdaemond.* installed, authdaemond
# just picks the first one it finds.  Set "version" to override that.
# For example:  version=authdaemond.plain

version=""#
# authdaemonvar is here, but is not used directly by authdaemond.  It's
# used by various configuration and build scripts, so don't touch it!

authdaemonvar=/var/lib/courier-imap/authdaemon


##NAME: authdaemonvar:0

Egoist: A person of low taste, more interested in themselves than in me


  • Kees
  • Registratie: Juni 1999
  • Laatst online: 15:28

Kees

Serveradmin / BOFH / DoC
heb je een PAM server draaien?
in dat geval moet je bij de version nog aangeven dat hij die PAM server moet gebruiken, eventuele errors zie je overigens dan ook in de PAM logs

Zelf zou ik voor eenvoudig gebruik toch echt voor de authpasswd gaan, moet je even bij de ./configure van courier-imap/authdeamon kijken welke opties je daarvoor moet aanzetten. Tevens zijn er nog wel enkele handige howto's op het internet te vinden over hoe je de boel aanslingerd. Zelf heb ik courier-imap draaiende met authmysql hetgeen wel erg lekker werkt ;)

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan


  • JaQ
  • Registratie: Juni 2001
  • Laatst online: 16:43
ik moet eerlijk zeggen dat ik geen flauw i.d. heb of er een PAM server draaid. Dat is eigenlijk wel iets wat ik had moeten controleren... Ik ben denk ik net even te lui geweest door gewoon emerge courier-imap uit te voeren..... Laat ik die eerst maar eens aan de gang zetten.

Ik weet niet wat het verschil is tussen PAM en authpasswd, dus dat ga ik eerst maar eens uitzoeken lijkt mij. Daarna maar eens kijken welke van beide methodes mijn voorkeur geniet. (om dan dus terug te gaan naar courier). Toch bedankt.

Egoist: A person of low taste, more interested in themselves than in me


  • JaQ
  • Registratie: Juni 2001
  • Laatst online: 16:43
mmm.. heb t gevonden.... had dus niet helemaal de howto gevolgd:

code:
1
2
3
4
5
6
7
automagic courier-imap # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc.  See COPYING for distribution information.
1 login jacco m1ck3y
1 OK LOGIN Ok.


toch bedankt...

Egoist: A person of low taste, more interested in themselves than in me


  • Kees
  • Registratie: Juni 1999
  • Laatst online: 15:28

Kees

Serveradmin / BOFH / DoC
graag gedaan,

Maarehm, zou je voor de toekomstige generatie's nog een oplossing willen geven? (eventueel mooi opgesmukt met links naar je howto e.d. ;))

"Een serveradmin, voluit een serveradministrator, is dan weer een slavenbeheerder oftewel een slavendrijver" - Rataplan

Pagina: 1