Gentoo Archives: gentoo-user

From: laurent <laurent@××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Postfix, courier-imap: checks if working
Date: Tue, 07 Apr 2009 21:21:23
Message-Id: 49DBC3B1.9060906@logiquefloue.org
In Reply to: Re: [gentoo-user] Postfix, courier-imap: checks if working by laurent
1 maybe I should disable ldapd as I'm using mysql ...hm ?
2
3 L
4
5 laurent a écrit :
6 > Hey,
7 >
8 > I did the change you proposed, check the logs. added this to smtpd.conf:
9 > pwcheck_method:saslauthd
10 > mech_list: PLAIN LOGIN
11 > allow_plaintext: true
12 > auxprop_plugin: mysql
13 > sql_hostnames: host.domai.com
14 > sql_user: user
15 > sql_passwd: pass
16 > sql_database: mail
17 > sql_select: select passwd from users where user='%u'
18 >
19 > and now my logs goes wrong here:
20 > Apr 7 18:48:54 ks359684 postfix/smtpd[17003]: sql auxprop plugin
21 > using mysql engine
22 > Apr 7 18:48:54 ks359684 postfix/smtpd[17003]: auxpropfunc error
23 > invalid parameter supplied
24 > Apr 7 18:48:54 ks359684 postfix/smtpd[17003]: _sasl_plugin_load
25 > failed on sasl_auxprop_plug_init for plugin: ldapdb
26 >
27 > checked google, but no idea now.
28 > thx
29 > Laurent
30 >
31 >
32 >
33 > Xav' a écrit :
34 >> laurent a écrit :
35 >>> Xav' a écrit :
36 >>>> On Tue, 31 Mar 2009 18:15:33 +0200, laurent <laurent@××××××××××××.org>
37 >>>> wrote:
38 >>>>
39 >>>>> Hi,
40 >>>>>
41 >>>>> I'm following this how to:
42 >>>>> http://www.gentoo.org/doc/en/virt-mail-howto.xml
43 >>>>>
44 >>>>> after configuring courier-imap they say:
45 >>>>> Start up your favorite mail client and verify that all connections
46 >>>>> you've started work for receiving and sending mail. Of course, you
47 >>>>> won't be able to log on to any of the services because
48 >>>>> authentication hasn't been configured yet, but it is wise to check
49 >>>>> if the connections themselves work or not.
50 >>>>>
51 >>>>> I'm using mutt, saying there's no mailbox. Creating mailbox is
52 >>>>> done later in the how to.
53 >>>>> What do they mean, how can I test if smtpd and pop3d work fine ?
54 >>>>>
55 >>>>
56 >>>> They mean that you have to check with your client that
57 >>>> pop3/pop3s/smtp/imap/imaps connection are established with success.
58 >>>> You can do this with either telnet or netcat for pop3/smtp/imap
59 >>>> protocol
60 >>>> and see if the server answer to the connection and with openssl
61 >>>> s_client
62 >>>> for pop3s/imaps connection.
63 >>>>
64 >>>> HTH.
65 >>>> Xavier
66 >>>>
67 >>>
68 >>> hm actually I should get something like that:
69 >>>
70 >>> # telnet localhost 25
71 >>>
72 >>> Trying 127.0.0.1...
73 >>> Connected to localhost.
74 >>> Escape character is '^]'.
75 >>> 220 mail.domain.com ESMTP Postfix
76 >>> EHLO domain.com
77 >>> 250-mail.domain.com
78 >>> 250-PIPELINING
79 >>> 250-SIZE 10240000
80 >>> 250-VRFY
81 >>> 250-ETRN
82 >>> 250-STARTTLS
83 >>> 250-AUTH LOGIN PLAIN
84 >>> 250-AUTH=LOGIN PLAIN
85 >>> 250-XVERP
86 >>> 250 8BITMIME
87 >>> ^]
88 >>> telnet> quit
89 >>>
90 >>> but I get this:
91 >>> telnet localhost 25
92 >>> Trying 127.0.0.1...
93 >>> Connected to localhost.
94 >>> Escape character is '^]'.
95 >>> Connection closed by foreign host.
96 >>
97 >> Maybe you could check in or post your postfix logs (/var/log/mail.*
98 >> or /var/log/messages), or adding -d argument to smtpd command in
99 >> /etc/postfix/master.cf, reload postfix with postfix reload, retry
100 >> telnet and check (or post) the logs again.
101 >>
102 >>> :s
103 >>>>
104 >>>>> Thanks
105 >>>>> Laurent
106 >>>>>
107 >>>
108 >>
109 >>
110 >>
111 >>
112 >
113 >
114 >
115 >

Replies

Subject Author
Re: [gentoo-user] Postfix, courier-imap: checks if working laurent <laurent@××××××××××××.org>
Re: [gentoo-user] Postfix, courier-imap: checks if working laurent <laurent@××××××××××××.org>