Renato wrote:
> Hi
>
> I setup the imap's debug to 2, but I use RedHat EL4, and donīt find
> the syslog.
>
> In maillog, when I try telnet localhost 143 with a user valid the show
> me this logs:
>
> In console:
> ==
> [root@fauno log]# telnet localhost 143
> Trying 127.0.0.1...
> Connected to localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
> THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
> STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision,
> Inc. See COPYING for distribution information.
> a login postmaster@bews.com.br abc123
> * BYE Temporary problem, please try again later
> Connection closed by foreign host.
> [root@fauno log]#
> ==
>
> In maillog
> ====
> Jul 7 16:05:42 fauno imapd: Connection, ip=[::ffff:127.0.0.1]
> Jul 7 16:05:58 fauno imapd: authdaemon: s_connect() failed: No such
> file or directory
> Jul 7 16:05:58 fauno imapd: LOGIN FAILED, user=postmaster@bews.com.br,
> ip=[::ffff:127.0.0.1]
> Jul 7 16:05:58 fauno imapd: authentication error: No such file or
> directory
> ====
>
>
> Whatīs happening
>
> []s
>
>
>
> AK wrote:
>
>>Renato wrote:
>>
>>
>>>Hi people
>>>
>>>I started the service manually in the end of the post, but doesnīt
>>>work. I rebooted the machine, and nothing, the same error.
>>>
>>>How do I do to enable debug ont the Courier-Imap service to check the
>>>log and where gerated the log?
>>>
>>>[]s
>>>
>>>
>>
>>Check /var/log/syslog. within the IMAP configuration there should be a
>>referene to the debug level and/or to the syslog facility.
>>
>>AK
>>
>>
>>>flashweb@gmail.com wrote:
>>>
>>>
>>>>After installation, you may need to run
>>>>
>>>>/usr/local/sbin/authdaemond start
>>>>
>>>>manually as it is added to rc.local, which execute on server startup
>>>>only.
>>>>
>>>>Two days back, i have followed same steps on my server and i got IMAP
>>>>working.
>>>>
>>>>Thanks,
>>>>
>>>>Yujin
>>>>
>>>>www.ScriptInstallation.in
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>AK wrote:
>>>>
>>>>
>>>>>Renato wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Hi people...
>>>>>>
>>>>>>I'm build a mail server in a company, and I use a qmailrocks. But in
>>>>>>the 12 pass I have a problem that I donīt find this.
>>>>>>
>>>>>>The user suporte@domain.com exist which password, tested in telnet
>>>>>>localhost 110 and work.
>>>>>>
>>>>>>When I test with telnet (telnet localhost 143) it response in console
>>>>>>this:
>>>>>>============================================ ================
>>>>>>[root@fauno courier-imap-4.0.2]# telnet localhost 143
>>>>>>Trying 127.0.0.1...
>>>>>>Connected to localhost.localdomain (127.0.0.1).
>>>>>>Escape character is '^]'.
>>>>>>* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
>>>>>>THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION
>>>>>>STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision,
>>>>>>Inc. See COPYING for distribution information.
>>>>>>a login suporte@domain.com 123123
>>>>>>* BYE Temporary problem, please try again later
>>>>>>Connection closed by foreign host.
>>>>>>[root@fauno courier-imap-4.0.2]#
>>>>>>============================================ ================
>>>>>>
>>>>>>My server is RHEL 4.2 AS and I follow this pass:
>>>>>>
>>>>>>=======================================
>>>>>>Instalacao do Courier-imap/imaps com Courierpassd
>>>>>>#rpm -e cyrus-imapd-devel cyrus-imapd
>>>>>>#cd /downloads/qmailrocks/
>>>>>>#tar jxvf courier-authlib-0.55.tar.bz2
>>>>>>#cd courier-authlib-0.55
>>>>>>#./configure --prefix=/usr/local --exec-prefix=/usr/local
>>>>>>--with-authvchkpw --without-authldap --without-authmysql
>>>>>>--disable-root-check --with-ssl
>>>>>>--with-authchangepwdir=/usr/local/libexec/authlib --with-redhat
>>>>>>#make && make check
>>>>>>#make install-strip && make install-configure
>>>>>>#vi /etc/rc.local
>>>>>> ==
>>>>>> /usr/local/sbin/authdaemond start
>>>>>> ==
>>>>>>#cd /downloads/qmailrocks/
>>>>>>#tar jxvf courier-imap-4.0.2.tar.bz2
>>>>>>#chown -R suporte:wheel courier-imap-4.0.2
>>>>>>#cd /downloads/qmailrocks/courier-imap-4.0.2
>>>>>>#su suporte
>>>>>>#./configure --prefix=/usr/local --exec-prefix=/usr/local
>>>>>>--with-authvchkpw --without-authldap --without-authmysql
>>>>>>--disable-root-check --with-ssl
>>>>>>--with-authchangepwdir=/usr/local/libexec/authlib --with-redhat
>>>>>>#make && make check
>>>>>>#exit
>>>>>>#make install-strip && make install-configure
>>>>>>#/usr/local/sbin/mkimapdcert
>>>>>>#vi /usr/local/etc/imapd.cnf
>>>>>> Modificar postmaster@example.com para o email administrativo do
>>>>>>servidor
>>>>>> ==
>>>>>> emailAddress=suporte@domain.com
>>>>>> ==
>>>>>>#vi /usr/local/etc/imapd
>>>>>> ==
>>>>>> IMAPDSTART=YES
>>>>>> ==
>>>>>>#vi /usr/local/etc/imapd-ssl
>>>>>> ==
>>>>>> IMAPDSSLSTART=YES
>>>>>> [..]
>>>>>> TLS_CERTFILE=/usr/local/share/imapd.pem
>>>>>> ==
>>>>>>#vi /usr/local/etc/authlib/authdaemonrc
>>>>>> ==
>>>>>> authmodulelist="authvchkpw"
>>>>>> ==
>>>>>>#cp /usr/local/libexec/imapd.rc /etc/rc.d/init.d/imap
>>>>>>#cp /usr/local/libexec/imapd-ssl.rc /etc/rc.d/init.d/imaps
>>>>>>#/usr/local/sbin/authdaemond stop
>>>>>>#/usr/local/sbin/authdaemond start
>>>>>>#/etc/rc.d/init.d/imap stop
>>>>>>#/etc/rc.d/init.d/imaps stop
>>>>>>#/etc/rc.d/init.d/imap start
>>>>>>#/etc/rc.d/init.d/imaps start
>>>>>>============================================ ==
>>>>>>
>>>>>
>>>>>Enable debuging on the Courier-Imap service and check the log.
>>>>>Likely issue is that it can not access the user's HOME directory.
>>>>>
>>>>>AK
>>>
>>>
>
The authentication against the authvchkpw mechanism is not working. I
beleive when you install the auth pakage there are tests that you can
perform to make sure that you can authenticate. This might be your
problem. Double check you authdaemon setup and make sure that you can
authenticate against it directly. Then work your way back to the
courier-imap setup and test there.
AK