Mailserv on 5.2, IMAP Error, Login Failed....

197 views
Skip to first unread message

Wylie Bayes

unread,
Mar 14, 2013, 10:48:23 AM3/14/13
to mail...@googlegroups.com
Hi all!  I have gotten Mailserv all setup and working as far as I can tell (all the components installed and running) however after adding domains/users through the administration panel on :4200.  When attempting to login with the newly created user i am getting:

Mar 14 15:37:41 breadwinner roundcube: IMAP Error: Login failed for forg...@wmfb.co from 32.155.148.232. AUTHENTICATE PLAIN: Temporary authentication failure. [breadwinner.wmfb.co:2013-03-14 15:37:41] in /var/www/webmail/roundcubemail-0.8.5/program/include/rcube_imap.php on line 191 (POST /?_task=login&_action=login)


No matter what domain, or user i try this happens.   


Also seeing in the logs:

2013/03/14 14:06:17 [error] 11205#0: *265 upstream timed out (60: Connection timed out) while reading response header from upstream, client: 174.22.190.175, server: , request: "POST / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "webmail.wyliebayes.com", referrer: "https://webmail.wyliebayes.com/"
2013/03/14 14:06:18 [error] 11205#0: *265 open() "/var/www/webmail/webmail/favicon.ico" failed (2: No such file or directory), client: 174.22.190.175, server: , request: "GET /favicon.ico HTTP/1.1", host: "webmail.wyliebayes.com"


As far as i can tell these seem to be the only errors i can find in the logs.   Definitely cannot login a user to roundcube tho :(  Any help greatly appreciated. 

Wylie Bayes

unread,
Mar 14, 2013, 11:57:13 AM3/14/13
to mail...@googlegroups.com
I'm pretty the error was due to Postfix not hooking into Mysql correctly.  Also had to create user/database for "sqlgrey."  Once I got everything tied into MySQL it's all working correctly now.  

Sending email works perfectly, however it seems any inbound email is being rejected lol.. Next on the things to troubleshoot haha.

David Gnojek

unread,
Mar 19, 2013, 5:03:11 PM3/19/13
to mail...@googlegroups.com
Hi Wylie,

I guess it could be related with dovecot. From some reason it does not start me properly from god.

try to check this workaround:
 kill dovecot first and then run dovecot manually from the console.

#god stop dovecot
#dovecot -c /etc/dovecot.conf

if dovecot run with proper conf file the processes should be listed:

# ps ax | grep dovecot         
 1926 ??  Ss      0:00.04 /usr/local/sbin/dovecot -c /etc/dovecot.conf
27483 ??  S       0:00.04 dovecot/log
26343 ??  S       0:00.03 dovecot/anvil
14303 ??  S       0:00.07 dovecot/config
 6610 ??  RN      0:01.66 dovecot/ssl-params

then you should be able to login webmail and  run all other mail services.

Cheers

David
 
On Thu, Mar 14, 2013 at 4:57 PM, Wylie Bayes <forgott...@gmail.com> wrote:
I'm pretty the error was due to Postfix not hooking into Mysql correctly.  Also had to create user/database for "sqlgrey."  Once I got everything tied into MySQL it's all working correctly now.  

Sending email works perfectly, however it seems any inbound email is being rejected lol.. Next on the things to troubleshoot haha.

--
You received this message because you are subscribed to the Google Groups "mailserv" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mailserv+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

David Gnojek

unread,
Mar 19, 2013, 8:58:49 PM3/19/13
to mail...@googlegroups.com
so finally the problem was in low file descriptor limit.

I got this warning from dovecot:
Warning: fd limit (ulimit -n) is lower than required under max. load (128 < 1000), because of default_client_count

I modified default section in /etc/login.conf

  :openfiles-cur=512:\
  :openfiles-max=1024:\

in the end of /etc/login.conf  added a separate block for dovecot

dovecot:\
 :openfiles-cur=1024:\
 :openfiles-max=2048:\
 :tc=daemon:

IMPORTANT: reboot server after this changes

after this changes it starts fine automatically.
Reply all
Reply to author
Forward
0 new messages