Author Topic: IMAP Error: Authentication for amigo falied (LOGIN): "a001 NO Login failed." ...  (Read 3971 times)

Offline Pei0t

  • Newbie
  • *
  • Posts: 1
Hello, sorry my bad english.
Mail server powered good with Squirrelmail.
I have trouble with roundcubemail-0.1-rc1 on linux slackware.
-MySQL 4.0.23a
-Postfix
-Imapd
When I login (whrite name - amigo and password) in webmail - error.
roundcube/logs/error -
Code: [Select]
IMAP Error: Authentication for amigo falied (LOGIN): "a001 NO Login failed." in on line 0In /var/log/maillog
Code: [Select]
Jun 20 04:43:56 mx1 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 20 04:43:56 mx1 authdaemond: received auth request, service=imap, authtype=login
Jun 20 04:43:56 mx1 authdaemond: authmysql: trying this module
Jun 20 04:43:56 mx1 authdaemond: SQL query: SELECT email, crypt, clear, uid, gid, homedir, maildir, quota, name, CONCAT("disableimap=",disableimap,",disablepop3=",disablepop3,",disablewebmail=",disablewebmail,",sharedgroup=",sharedgroup) FROM postfix_users WHERE email = "amigo" AND (access='y' )
Jun 20 04:43:56 mx1 authdaemond: zero rows returned
Jun 20 04:43:56 mx1 authdaemond: no password available to compare
Jun 20 04:43:56 mx1 authdaemond: authmysql: REJECT - try next module
Jun 20 04:43:56 mx1 authdaemond: FAIL, all modules rejected
Jun 20 04:43:56 mx1 imapd: LOGIN FAILED, user=amigo, ip=[::ffff:127.0.0.1]
Jun 20 04:44:01 mx1 imapd: Disconnected, ip=[::ffff:127.0.0.1], time=5

When I login (whrite name - amigo@xxxx.biz and password) in webmail - error.
But in roundcube/logs/error - nothing.
But if I write name - amigo@serpuhov.biz with bad password
roundcube/logs/error
Code: [Select]
IMAP Error: Authentication for [email]amigo@xxxx.biz[/email] falied (LOGIN): "a001 NO Login failed." in on line 0In /var/log/maillog with name amigo@xxxx.biz and right password:
Code: [Select]
Jun 20 04:24:34 mx1 imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 20 04:24:34 mx1 authdaemond: received auth request, service=imap, authtype=login
Jun 20 04:24:34 mx1 authdaemond: authmysql: trying this module
Jun 20 04:24:34 mx1 authdaemond: SQL query: SELECT email, crypt, clear, uid, gid, homedir, maildir, quota, name, CONCAT("disableimap=",disableimap,",disablepop3=",disablepop3,",disablewebmail=",disablewebmail,",sharedgroup=",sharedgroup) FROM postfix_users WHERE email = "amigo@xxx.biz" AND (access='y' )
Jun 20 04:24:34 mx1 authdaemond: authmysql: sysusername=, sysuserid=1002, sysgroupid=1002, homedir=/home/vmail, address=amigo@xxxx.biz, fullname=TK/xxx AMIGO, maildir=xxx.biz/amigo/Maildir/, quota=20000000, options=disableimap=0,disablepop3=0,disablewebmail=0,sharedgroup=0
Jun 20 04:24:34 mx1 authdaemond: Authenticated: sysusername=, sysuserid=1002, sysgroupid=1002, homedir=/home/vmail, address=amigo@xxxx.biz, fullname=TK/xxx AMIGO, maildir=xxx.biz/amigo/Maildir/, quota=20000000, options=disableimap=0,disablepop3=0,disablewebmail=0,sharedgroup=0
Jun 20 04:24:34 mx1 imapd: LOGIN, user=amigo@xxxx.biz, ip=[::ffff:127.0.0.1], protocol=IMAP
Jun 20 04:24:34 mx1 imapd: LOGOUT, user=amigo@xxxx.biz, ip=[::ffff:127.0.0.1], headers=0, body=0, time=0

And my config:
-db.inc.php
Code: [Select]

$rcmail_config = array();
$rcmail_config['db_dsnw'] = 'mysql://roundcube:pass@localhost/roundcubemail';
$rcmail_config['db_dsnr'] = '';
$rcmail_config['db_backend'] = 'db';
$rcmail_config['db_max_length'] = 512000; // 500 Килобайт
$rcmail_config['db_persistent'] = TRUE;
$rcmail_config['db_table_users'] = 'users';
$rcmail_config['db_table_identities'] = 'identities';
$rcmail_config['db_table_contacts'] = 'contacts';
$rcmail_config['db_table_session'] = 'session';
$rcmail_config['db_table_cache'] = 'cache';
$rcmail_config['db_table_messages'] = 'messages';
$rcmail_config['db_sequence_users'] = 'user_ids';
$rcmail_config['db_sequence_identities'] = 'identity_ids';
$rcmail_config['db_sequence_contacts'] = 'contact_ids';
$rcmail_config['db_sequence_cache'] = 'cache_ids';
$rcmail_config['db_sequence_messages'] = 'message_ids';
?>

-main.inc.php
Code: [Select]
$rcmail_config = array();
$rcmail_config['debug_level'] = 1;
$rcmail_config['enable_caching'] = TRUE;
$rcmail_config['message_cache_lifetime'] = '10d';
$rcmail_config['auto_create_user'] = TRUE;
$rcmail_config['default_host'] = 'localhost';
$rcmail_config['default_port'] = 143;
$rcmail_config['username_domain'] = '';
$rcmail_config['mail_domain'] = '';
// путь к таблице виртуальных пользователей (virtuser)
$rcmail_config['virtuser_file'] = '';
$rcmail_config['virtuser_query'] = '';
$rcmail_config['smtp_server'] = 'localhost';
$rcmail_config['smtp_port'] = 25;
$rcmail_config['smtp_user'] = '%u';
$rcmail_config['smtp_pass'] = '%p';
$rcmail_config['smtp_auth_type'] = '';
$rcmail_config['smtp_log'] = TRUE;
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
$rcmail_config['skin_path'] = 'skins/default/';
$rcmail_config['temp_dir'] = 'temp/';
$rcmail_config['log_dir'] = 'logs/';
$rcmail_config['session_lifetime'] = 10;
$rcmail_config['ip_check'] = TRUE;
$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
$rcmail_config['locale_string'] = 'ru';
$rcmail_config['date_today'] = 'H:i';
$rcmail_config['date_short'] = 'D H:i';
$rcmail_config['date_long'] = 'd.m.Y H:i';
$rcmail_config['useragent'] = 'RoundCube Webmail/v0.1-rc1-ru';
$rcmail_config['product_name'] = 'RoundCube Webmail';
$rcmail_config['imap_root'] = '';
$rcmail_config['drafts_mbox'] = 'Drafts';
$rcmail_config['junk_mbox'] = 'Junk';
$rcmail_config['sent_mbox'] = 'Sent';
$rcmail_config['trash_mbox'] = 'Trash';
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
$rcmail_config['protect_default_folders'] = TRUE;
$rcmail_config['skip_deleted'] = FALSE;
$rcmail_config['read_when_deleted'] = TRUE;
$rcmail_config['flag_for_deletion'] = TRUE;
$rcmail_config['enable_spellcheck'] = TRUE;
$rcmail_config['generic_message_footer'] = '';
$rcmail_config['mail_header_delimiter'] = NULL;
$rcmail_config['include_host_config'] = FALSE;
$rcmail_config['draft_autosave'] = 300;
$rcmail_config['pagesize'] = 40;
$rcmail_config['timezone'] = 1;
$rcmail_config['dst_active'] = TRUE;
$rcmail_config['prefer_html'] = TRUE;
$rcmail_config['prettydate'] = TRUE;
$rcmail_config['message_sort_col'] = 'date';
$rcmail_config['message_sort_order'] = 'DESC';
$rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion');
?>

Thanks

Offline Gruenbaer

  • Newbie
  • *
  • Posts: 1
I had the same issue here, but only with one mailbox. Then I changed the password for the mailbox and suddenly I was able to log in.
I changed it back to the ofiginal and I got the same error again...

HTH,

Emil