Page 1 of 1

Can't login with mboxadmin

Posted: Thu Sep 07, 2006 10:59 am
by rudi
Hi,

I want use sa-learn and spamassassin on scalix. I use the perl script from http://www.scalix.com/wiki/index.php?ti ... amAssassin. I give the user "mboxadmin" mboxadmin privileges. But when I run this script, the mboxadmin can't login into user mailboxes.

This is the error message: 1 NO LOGIN failure, user name or password rejected

Scalix Server: 10.0.0
OS: SLES 9

Script:
#!/usr/bin/perl
use strict;
use warnings;
use Mail::IMAPClient;
my $host="127.0.0.1";
my $username="mboxadmin";
my $password="kennwort";
my @real_users=`/opt/scalix/bin/omshowu -m all -i`; # get all real user names.

foreach my $punter (@real_users) # Loop over them all.
{
chomp $punter; # Remove trailing carriage return.
print "$punter\n"; # Some output. Feel free to remove.
my $user="mboxadmin:$username:$punter"; # Set up superuser login.
print $user;
my $imap = new Mail::IMAPClient( 'Server' => $host , 'User' => $user , 'Password' => $password ) or die; # connect to server.


Thanks for help!!

Posted: Fri Sep 08, 2006 8:38 pm
by ScalixSupport
Are you able to login via telneting to port 143?

Code: Select all

# telnet server 143
Trying 10.17.112.76...
Connected to server (10.17.112.76).
Escape character is '^]'.
* OK Scalix IMAP server 10.0.3.3 ready on server
. login "mboxadmin:mboxadmin user:user name"  password
. OK LOGIN completed, now connected to server
. logout
* BYE Scalix IMAP Server logging out
. OK LOGOUT completed
Connection closed by foreign host.


Thanks,
Don

Posted: Mon Sep 11, 2006 3:39 am
by rudi
Yes, this is possible:

mail:~ # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Scalix IMAP server 9.4.2.4 ready on mail.server.at
01 login sxadmin password
01 OK LOGIN completed, now connected to mail.server.at
01 logout
* BYE Scalix IMAP Server logging out
01 OK LOGOUT completed
Connection closed by foreign host.

Posted: Mon Sep 11, 2006 4:09 pm
by ScalixSupport
No, that is not what i asked. You are showing you can login as sxadmin. I want to know that you are able to log on as the mboxadmin. Please take a look and my previous post again and note the syntax of the login command.

Also please see this post:

http://www.scalix.com/community/viewtop ... =7780#7780

Regards,
Don

Posted: Tue Sep 12, 2006 7:11 am
by rudi
Ok this should be the correct reply:

mail:~ # telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK Scalix IMAP server 10.0.0.175 ready on mail.server.at
. login "mboxadmin:superuser:testuser" kennwort
. OK LOGIN completed, now connected to mail.server.at

I think there is the syntax incorrect:

my $imap = new Mail::IMAPClient( 'Server' => $host , 'User' => $user , 'Password' => $password ) or die "Unable to connect to imap server\n"; # connect to server.

Posted: Tue Sep 19, 2006 3:10 am
by rudi
:?: Is there any problem in the syntax?

best regards,
rudi

Posted: Tue Sep 19, 2006 9:59 am
by dkelly
The other thing to check is whether "testuser" also has mboxadmin capabilities.

If this is the case, this is a known issue fixed in Scalix 11. ( http://bugzilla.scalix.com/show_bug.cgi?id=12056 )

Cheers

Dave

Posted: Tue Sep 19, 2006 10:38 am
by rudi
No, it the testuser isn't a mboxadmin.

The user "superuser" has mboxadmin privileges. When I run the script the following error occurs:

./learnjunk.pl
sxadmin
sxqueryadmin@mars.mioco.at
1 NO LOGIN [X-SCALIX-LOCKED] account locked, please see your system administrator
...propagated at ./learnjunk.pl line 14.

omshowu superuser
Authentication ID: superuser
User Name : Superuser /CN=Superuser
MailNode : mars,mioco
Internet Address : "Superuser" <Superuser@mioco.at>
System Login : 60537
Password : set
Admin Capabilities : YES
Mailbox Admin Capabilities : YES
Language : AMERICAN
Virtual Vault : Enabled (default)
Mail Account: Unlocked
Last Signon : 09.19.06 11:58:18
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
User Class : Full

Thanks for help!!

Posted: Tue Sep 19, 2006 11:34 am
by dkelly
The sxqueryadmin user is a special account that cannot be accessed by any client. Can you run your test with another account ?

Cheers

Dave

Posted: Wed Sep 20, 2006 3:59 am
by rudi
Ok, I solved the problem. I think I have to learn perl ... :?