Topic: 8.0 Upgrade SOGO Instructions Fail with Manual Upgrade of iRedMail
==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version:
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
==== ==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 7.4 - 8.0
- Linux/BSD distribution name and version: Ubuntu 12.04 LTS
- Any related log? Log is helpful for troubleshooting.
====
First:
Installed iRedMail on Ubuntu 11 with MySQL backend.
Everything went as planned.
Imap working, SQL storing un / passwords.
Next:
Updated 7.4 to 8.0 based on instructions
http://iredmail.org/wiki/index.php?titl … .7.4-0.8.0
Next:
Updated Ubunto to 12.04 LTS
Tested IreadMail. Everything still seems ok.
Next:
Installed SOGO as instructions found on this blog post:
http://www.wynni.com/iredmail-sogo-mysq … ntication/
Roundcube, No users can login. (password error)
iRedAdmin - Newly created admins cannot login.
MySQL - passwords are stored as plain text.
Outlook - no longer can connect via IMAP.
Apache logs look ok.
Errors exist in dovecot log and mail.log
May 10 02:04:58 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<olga@domainxxxx.com>, method=PLAIN, rip=127.0.0.1, lip=127.0$
May 10 02:06:47 auth-worker: Info: mysql(127.0.0.1): Connected to database vmail
May 10 02:06:47 auth-worker: Error: sql(frank@domainxxxx.com,127.0.0.1): Password data is not valid for scheme PLAIN-MD5: Input isn't valid b$
May 10 02:06:49 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=127.0.0.1, lip=127.$
May 10 02:06:57 auth-worker: Error: sql(jello@domainxxxx.com,127.0.0.1): Password data is not valid for scheme PLAIN-MD5: Input length isn't $
May 10 02:06:59 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<jello@domainxxxx.com>, method=PLAIN, rip=127.0.0.1, lip=127.$
May 10 02:10:03 auth-worker: Info: mysql(127.0.0.1): Connected to database vmail
May 10 02:10:03 dict: Info: mysql(127.0.0.1): Connected to database vmail
May 10 02:14:59 auth-worker: Error: sql(frank@domainxxxx.com,127.0.0.1): Password data is not valid for scheme PLAIN-MD5: Input isn't valid b$
May 10 02:15:01 imap-login: Info: Aborted login (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=127.0.0.1, lip=127.$
May 10 02:15:36 auth-worker: Error: sql(frank@domainxxxx.com,99.7.136.83): Password data is not valid for scheme PLAIN-MD5: Input isn't valid$
May 10 02:16:57 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=99.7.136.83, lip=10.$
May 10 02:16:57 auth-worker: Error: sql(frank@domainxxxx.com,99.7.136.83): Password data is not valid for scheme PLAIN-MD5: Input isn't valid$
May 10 02:17:01 auth-worker: Error: sql(frank@domainxxxx.com,99.7.136.83): Password data is not valid for scheme PLAIN-MD5: Input isn't valid$
May 10 02:17:02 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=99.7.136.83, lip=10.$
May 10 02:17:05 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=99.7.136.83, lip=10.$
May 10 02:17:09 auth-worker: Error: sql(frank@domainxxxx.com,99.7.136.83): Password data is not valid for scheme PLAIN-MD5: Input isn't valid$
May 10 02:17:11 imap-login: Info: Disconnected (auth failed, 1 attempts): user=<frank@domainxxxx.com>, method=PLAIN, rip=99.7.136.83, lip=10.$
Mail.log:
May 10 02:04:08 berlin postfix/master[1607]: daemon started -- version 2.9.1, configuration /etc/postfix
May 10 02:04:47 berlin roundcube: IMAP Error: Login failed for frank@domainxxxx.com from 99.7.136.83. AUTHENTICATE PLAIN: Authentication fail$
May 10 02:04:58 berlin roundcube: IMAP Error: Login failed for olga@domainxxxx.com from 99.7.136.83. AUTHENTICATE PLAIN: Authentication faile$
May 10 02:06:49 berlin roundcube: IMAP Error: Login failed for frank@domainxxxx.com from 99.7.136.83. AUTHENTICATE PLAIN: Authentication fail$
May 10 02:06:59 berlin roundcube: IMAP Error: Login failed for jello@domainxxxx.com from 99.7.136.83. AUTHENTICATE PLAIN: Authentication fail$
May 10 02:10:02 berlin postfix/pickup[1620]: ABCEA1FA07F: uid=33 from=<www-data>
May 10 02:10:02 berlin postfix/cleanup[2157]: ABCEA1FA07F: message-id=<20120510091002.ABCEA1FA07F@berlin.domainxxxx.com>
May 10 02:10:02 berlin postfix/qmgr[1619]: ABCEA1FA07F: from=<www-data@berlin.domainxxxx.com>, size=2134, nrcpt=1 (queue active)
May 10 02:10:02 berlin postfix/cleanup[2157]: DFEEA1FA07E: message-id=<20120510091002.ABCEA1FA07F@berlin.domainxxxx.com>
May 10 02:10:02 berlin postfix/local[2168]: ABCEA1FA07F: to=<root@berlin.domainxxxx.com>, relay=local, delay=0.4, delays=0.35/0.04/0/0.01, ds$
May 10 02:10:02 berlin postfix/qmgr[1619]: DFEEA1FA07E: from=<www-data@berlin.domainxxxx.com>, size=2282, nrcpt=1 (queue active)
May 10 02:10:02 berlin postfix/qmgr[1619]: ABCEA1FA07F: removed
May 10 02:10:03 berlin postfix/pipe[2170]: DFEEA1FA07E: to=<www@domainxxxx.com>, relay=dovecot, delay=0.52, delays=0/0.02/0/0.49, dsn=2.0.0, $
May 10 02:10:03 berlin postfix/qmgr[1619]: DFEEA1FA07E: removed
May 10 02:15:01 berlin roundcube: IMAP Error: Login failed for frank@domainxxxx.com from 99.7.136.83. AUTHENTICATE PLAIN: Authentication fail$
May 10 02:20:02 berlin postfix/pickup[1620]: 3F08C1FA07F: uid=33 from=<www-data>
May 10 02:20:02 berlin postfix/cleanup[2575]: 3F08C1FA07F: message-id=<20120510092002.3F08C1FA07F@berlin.domainxxxx.com>
May 10 02:20:02 berlin postfix/qmgr[1619]: 3F08C1FA07F: from=<www-data@berlin.domainxxxx.com>, size=2134, nrcpt=1 (queue active)
May 10 02:20:02 berlin postfix/cleanup[2575]: 4C6A51FA07E: message-id=<20120510092002.3F08C1FA07F@berlin.domainxxxx.com>
May 10 02:20:02 berlin postfix/qmgr[1619]: 4C6A51FA07E: from=<www-data@berlin.domainxxxx.com>, size=2282, nrcpt=1 (queue active)
May 10 02:20:02 berlin postfix/local[2582]: 3F08C1FA07F: to=<root@berlin.domainxxxx.com>, relay=local, delay=0.11, delays=0.09/0.01/0/0.01, d$
May 10 02:20:02 berlin postfix/qmgr[1619]: 3F08C1FA07F: removed
May 10 02:20:02 berlin postfix/pipe[2584]: 4C6A51FA07E: to=<www@domainxxxx.com>, relay=dovecot, delay=0.11, delays=0/0.01/0/0.1, dsn=2.0.0, s$
May 10 02:20:02 berlin postfix/qmgr[1619]: 4C6A51FA07E: removed
It seems like the instructions on the blog post do not work...
I am guessing that manually upgrading from 7.4 to 8.0 leaves some files missing.
I have added the following code to the iredutils.py file.
Do i need to upload anything else?
def getPlainMD5Password(p):
p = str(p)
try:
from hashlib import md5
return md5(p).hexdigest()
except ImportError:
import md5
return md5.new(p).hexdigest()
return p
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.