Authentication problem

Stephen Liu satimis at yahoo.com
Thu Jun 12 18:42:41 EDT 2008


--- Reinaldo de Carvalho <reinaldoc at gmail.com> wrote:

> >  Thanks for your advice.  Please advise how to fix it.  TIA
> >
> 
> The server running isn't Cyrus!!!!
> 
> How to fix?
> 
> Stop and remove Courier and install and start Cyrus.


Hi Reinaldo,


Sorry I made a mistake.  I'm running headless to install the Cyrus
server on another Ubuntu LAMP server which is running Courier.  I
forgot ssh connect the Cyrus server to run that command.


Now try again.


After ssh connecting the Cyrus sever;


$ su
Password: 
# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK lampserver Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server ready
imap login cyrus abc
imap NO Login failed: generic failure


It is hanging there.  [Ctrl]+c has no function unable to exit.


$ sudo netstat | grep cyrus
Password:
unix  2      [ ]         DGRAM                    9210    
/var/run/cyrus/socket/notify
* end *


$ sudo netstat | grep imap
tcp        0      0 localhost.localdo:46268 localhost.localdo:imap2
ESTABLISHED
tcp        0      0 localhost.localdo:46055 localhost.localdo:imap2
ESTABLISHED
tcp        0      0 localhost.localdo:imap2 localhost.localdo:46268
ESTABLISHED
tcp        0      0 localhost.localdo:imap2 localhost.localdo:46055
ESTABLISHED
* end *


$ ps -A | grep cyrmaster
 3881 ?        00:00:00 cyrmaster


$ ps -A | grep notify
 3889 ?        00:00:00 notifyd


$ ps -A | grep saslauthd
 4193 ?        00:00:00 saslauthd
 4195 ?        00:00:00 saslauthd
 4196 ?        00:00:00 saslauthd
 4197 ?        00:00:00 saslauthd
 4198 ?        00:00:00 saslauthd
* end *


$ sudo netstat | grep saslauthd
$ sudo netstat | grep sasl
$ sudo netstat | grep sasl2
All without printou


$ sudo netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address        
State      
tcp        0      0 localhost.localdo:46268 localhost.localdo:imap2
ESTABLISHED
tcp        0      0 localhost.localdo:46055 localhost.localdo:imap2
ESTABLISHED
tcp        0      0 localhost.localdo:imap2 localhost.localdo:46268
ESTABLISHED
tcp        0      0 localhost.localdo:imap2 localhost.localdo:46055
ESTABLISHED
tcp6       0      0 ::ffff:192.168.0.5:2222 ::ffff:192.168.0.:38946
ESTABLISHED
tcp6       0      0 ::ffff:192.168.0.5:2222 ::ffff:192.168.0.:37309
ESTABLISHED
tcp6       0      0 ::ffff:192.168.0.5:2222 ::ffff:192.168.0.:45801
ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node Path
unix  5      [ ]         DGRAM                    11874    /dev/log
unix  2      [ ]         DGRAM                    5328    
@/org/kernel/udev/ude
vd
unix  2      [ ]         DGRAM                    9210    
/var/run/cyrus/socket
/notify
unix  2      [ ]         DGRAM                    12140    
unix  2      [ ]         DGRAM                    11912    
unix  2      [ ]         DGRAM                    11899    
unix  2      [ ]         DGRAM                    10668    
unix  3      [ ]         STREAM     CONNECTED     10665    
unix  3      [ ]         STREAM     CONNECTED     10664    
unix  2      [ ]         DGRAM                    10591    
unix  2      [ ]         DGRAM                    10523    
unix  3      [ ]         STREAM     CONNECTED     10520    
unix  3      [ ]         STREAM     CONNECTED     10519    
unix  2      [ ]         DGRAM                    10373    
unix  2      [ ]         DGRAM                    10342    
unix  3      [ ]         STREAM     CONNECTED     10339    
unix  3      [ ]         STREAM     CONNECTED     10338    
unix  2      [ ]         DGRAM                    10156    
unix  2      [ ]         DGRAM                    10150    
unix  2      [ ]         DGRAM                    10091    
unix  2      [ ]         DGRAM                    10058    
unix  3      [ ]         STREAM     CONNECTED     9893     
unix  3      [ ]         STREAM     CONNECTED     9892     
unix  3      [ ]         STREAM     CONNECTED     9889     
unix  3      [ ]         STREAM     CONNECTED     9888     
unix  3      [ ]         STREAM     CONNECTED     9885     
unix  3      [ ]         STREAM     CONNECTED     9884     
unix  3      [ ]         STREAM     CONNECTED     9881     
unix  3      [ ]         STREAM     CONNECTED     9880     
unix  3      [ ]         STREAM     CONNECTED     9877     
unix  3      [ ]         STREAM     CONNECTED     9876     
unix  3      [ ]         STREAM     CONNECTED     9873     
unix  3      [ ]         STREAM     CONNECTED     9872     
unix  3      [ ]         STREAM     CONNECTED     9869     
unix  3      [ ]         STREAM     CONNECTED     9868     
unix  3      [ ]         STREAM     CONNECTED     9865     
unix  3      [ ]         STREAM     CONNECTED     9864     
unix  3      [ ]         STREAM     CONNECTED     9861     
unix  3      [ ]         STREAM     CONNECTED     9860     
unix  3      [ ]         STREAM     CONNECTED     9857     
unix  3      [ ]         STREAM     CONNECTED     9856     
unix  3      [ ]         STREAM     CONNECTED     9853     
unix  3      [ ]         STREAM     CONNECTED     9852     
unix  3      [ ]         STREAM     CONNECTED     9849     
unix  3      [ ]         STREAM     CONNECTED     9848     
unix  3      [ ]         STREAM     CONNECTED     9845     
unix  3      [ ]         STREAM     CONNECTED     9844     
unix  3      [ ]         STREAM     CONNECTED     9841     
unix  3      [ ]         STREAM     CONNECTED     9840     
unix  3      [ ]         STREAM     CONNECTED     9837     
unix  3      [ ]         STREAM     CONNECTED     9836     
unix  3      [ ]         STREAM     CONNECTED     9833     
unix  3      [ ]         STREAM     CONNECTED     9832     
unix  3      [ ]         STREAM     CONNECTED     9829     
unix  3      [ ]         STREAM     CONNECTED     9828     
unix  3      [ ]         STREAM     CONNECTED     9825     
unix  3      [ ]         STREAM     CONNECTED     9824     
unix  3      [ ]         STREAM     CONNECTED     9821     
unix  3      [ ]         STREAM     CONNECTED     9820     
unix  3      [ ]         STREAM     CONNECTED     9817     
unix  3      [ ]         STREAM     CONNECTED     9816     
unix  3      [ ]         STREAM     CONNECTED     9813     
unix  3      [ ]         STREAM     CONNECTED     9812     
unix  3      [ ]         STREAM     CONNECTED     9809     
unix  3      [ ]         STREAM     CONNECTED     9808     
unix  3      [ ]         STREAM     CONNECTED     9805     
unix  3      [ ]         STREAM     CONNECTED     9804     
unix  3      [ ]         STREAM     CONNECTED     9801     
unix  3      [ ]         STREAM     CONNECTED     9800     
unix  3      [ ]         STREAM     CONNECTED     9797     
unix  3      [ ]         STREAM     CONNECTED     9796     
unix  3      [ ]         STREAM     CONNECTED     9788     
unix  3      [ ]         STREAM     CONNECTED     9787     
unix  3      [ ]         STREAM     CONNECTED     9785     
unix  3      [ ]         STREAM     CONNECTED     9784     
unix  3      [ ]         STREAM     CONNECTED     9781     
unix  3      [ ]         STREAM     CONNECTED     9780     
unix  3      [ ]         STREAM     CONNECTED     9778     
unix  3      [ ]         STREAM     CONNECTED     9777     
unix  2      [ ]         DGRAM                    9763     
unix  2      [ ]         DGRAM                    9316     
unix  2      [ ]         DGRAM                    9221     
unix  2      [ ]         DGRAM                    9161     
unix  2      [ ]         DGRAM                    8964     
unix  2      [ ]         DGRAM                    8958     
* end *


$ sudo /etc/init.d/saslauthd stop
Stopping SASL Authentication Daemon: saslauthd.
* end *

It is running.


$ sudo /etc/init.d/saslauthd start
Starting SASL Authentication Daemon: saslauthd.


$ su
Password: 
# telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
* OK lampserver Cyrus IMAP4 v2.2.12-Debian-2.2.12-4ubuntu1 server ready
imap login cyrus abc
imap NO Login failed: generic failure


Still the same hanging there.  [Ctrl]+c has no effect.



B.R.
Stephen L



Send instant messages to your online friends http://uk.messenger.yahoo.com 


More information about the Cyrus-sasl mailing list