This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Roundcube login failed
#1
Roundcube login failed
Hello guys,

i have problem with log in to my mailbox.

Here is logs:

/var/sentora/logs/roundcube/errors
Code:
[10-May-2016 14:42:54 +0200]: IMAP Error: Login failed for 1@inspire-gaming.cz from 78.102.134.28. AUTHENTICATE PLAIN: Authentication failed. in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube_imap.php on line 184 (POST /etc/apps/webmail/?_task=login?_task=login&_action=login)

/var/sentora/logs/roundcube/imap
Code:
[10-May-2016 14:42:50 +0200]: [5A48] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready.
[10-May-2016 14:42:50 +0200]: [5A48] C: A0001 ID ("name" "Roundcube" "version" "1.0.4" "php" "5.6.20-0+deb8u1" "os" "Linux" "command" "/etc/apps/webmail/?_task=login")
[10-May-2016 14:42:50 +0200]: [5A48] S: * ID ("name" "Dovecot")
[10-May-2016 14:42:50 +0200]: [5A48] S: A0001 OK ID completed.
[10-May-2016 14:42:50 +0200]: [5A48] C: A0002 AUTHENTICATE PLAIN ****** [33]
[10-May-2016 14:42:54 +0200]: [5A48] S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.


Folder /var/sentora/vmail   is empty, but in Sentora panel i create One Mailbox. In DB this mailbox is correct, but isnt in vmail folder. Vmail folder have this option
Code:
drwxrwxrwx  2 vmail    mail      2 May  8 20:48 vmail

I think, i have bad access for vmail folder. How to fix it or where can be fault? Please help ASAP. Thank u very much and have a nice rest of the day!
Reply
Thanks given by:
#2
RE: Roundcube login failed
5.6.20-0+deb8u1

IT says all. OK I'm sure you PHP lack IMAP component here that is required by Roundcube to do the job.

You will need to compile it and add it to PHP. Don't forget you will need suhosin too so PHP is secure.

Again Debian support is still not official. My self I didn't had time to set a testing machine for debian.

Good luck.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Roundcube login failed
But i have all requirements like suhosin,php libraries etc. I found issue: When i create MAILBOX in sentora panel, folder /var/sentora/vmail is still empty. Where can be error or where this mailboxes (username,password etc.) are saved?

OFFTOPIC: All other modules, etc domains and subdomains, statisctics are working very well, but only creating MAILBOXES doesnt work.
Reply
Thanks given by:
#4
RE: Roundcube login failed
bump! I need ASAP help with this. I need working mails ASAP :/
Reply
Thanks given by:
#5
RE: Roundcube login failed
bump. did you read my post?

I don't agree the way you are asking here.

You a re in a hurry over non-official support and I pointed the issue as it's over IMAP library missing.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#6
RE: Roundcube login failed
Yes I read it.

But u are pointing to other thing. I said, i have all requirements (like IMAP for php5 and other libraries for IMAP well working,..). I asking for some idea or way how to find way how to fix this issue, because my LOGS saing wierd things. And im not hurry on this, I just said ASAP.


Edit: When i create MAILBOX in Sentora Panel, folder /var/sentora/vmail/ is empty. I think, here is problem, but i dont know how to find a way how to fix it.
Reply
Thanks given by:
#7
RE: Roundcube login failed
Just an FYI: the permissions for the vmail folder should be: 0770 owner: vmail group: mail
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:
#8
RE: Roundcube login failed
Try upgrade first roundcube to the lastest manually.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#9
RE: Roundcube login failed
Today i upgrade Roundcube to 1.1.5 sucessfully. But i have still issue with making Mailboxes.

When i create Mailbox in Sentora Panel:
1) folder /var/sentora/vmail is EMPTY - this folder have right group, user and chmod.
2) database sentora_roundcube have empty tables


Here is logs:
First log is from /var/sentora/logs/roundcube/errors    (at this moment, I have diferent error than last time)


Code:
[14-May-2016 22:47:20 +0200]: <jvcrsg4p> IMAP Error: Login failed for 1@inspire-gaming.cz from 78.102.134.28. AUTHENTICATE PLAIN: Authentication failed. in /etc/sentora/panel/etc/apps/webmail/program/lib/Roundcube/rcube_imap.php on line 197 (POST /etc/apps/webmail/?_task=login?_task=login&_action=login)


Second log is from /var/sentora/logs/roundcube/imap


Code:
[14-May-2016 22:19:49 +0200]: [442E] S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN] Dovecot ready.
[14-May-2016 22:19:49 +0200]: [442E] C: A0001 ID ("name" "Roundcube" "version" "1.0.4" "php" "5.6.20-0+deb8u1" "os" "Linux" "command" "/etc/apps/webmail/?_task=login")
[14-May-2016 22:19:49 +0200]: [442E] S: * ID ("name" "Dovecot")
[14-May-2016 22:19:49 +0200]: [442E] S: A0001 OK ID completed.
[14-May-2016 22:19:49 +0200]: [442E] C: A0002 AUTHENTICATE PLAIN ****** [25]
[14-May-2016 22:19:53 +0200]: [442E] S: A0002 NO [AUTHENTICATIONFAILED] Authentication failed.


I think, problem is somewhere in Sentora Panel. Propably, when i create mailbox, created datas/informations dont go to Database (new user isnt created) and in folder /var/sentora/vmail (folder with domain and user isnt created).

Edit: In last 30 minutes i thinking about this issue... Maybe i have bad configured postfix? I dont know at 100%, so i just post my 2 configs from postfix. If you see some problem, please let me know. Im very confused

/etc/postfix/main.cf
Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin
= /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time
= 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = optimus
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = inspire-gaming.cz, optimus, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all


etc/postfix/master.cf
Code:
#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp
     inet  n       -       -       -       1       postscreen
#smtpd
    pass  -       -       -       -       -       smtpd
#dnsblog
  unix  -       -       -       -       0       dnsblog
#tlsproxy
 unix  -       -       -       -       0       tlsproxy
#submission
inet n       -       -       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps
    inet  n       -       -       -       -       smtpd
#  -o syslog_name=postfix/smtps
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
zpanel to sentora       inet  n       -       -       -       -       qmqpd
pickup    unix  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr
    unix  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
 flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus
    unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
 flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
 flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
 flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix    -    n    n    -    2    pipe
 flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
 flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
 ${nexthop} ${user}

Thank you very much for any ideas to help
Reply
Thanks given by:
#10
RE: Roundcube login failed
I think you messed up: main.cf as it should use db for users.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
How to upgrade RoundCube rajeevrrs 0 2 ,103 11-01-2022, 10:19 PM
Last Post: rajeevrrs
can not send email - SMTP error on roundcube wolvepy 9 31 ,751 01-03-2020, 08:37 AM
Last Post: Telepuzik
How to add password reset option in roundcube hakunamatata 15 68 ,054 02-08-2019, 12:20 PM
Last Post: republicus

Forum Jump:


Users browsing this thread: 7 Guest(s)