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

Replies

Subject Author
Re: [gentoo-user] Postfix, courier-imap: checks if working Mike Kazantsev <mike_kazantsev@×××××××.net>