1

Topic: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

I have a Wheezy Debian with 0.8.2 Iredmail , I tried to upgrade to Jessie and 0.9.2 , but was a mess.

I have all Mysql database for the old iredmail server , I read the migration document, but I didn't with the problem.

I tried to simulate the old server, but no download all binary :
- In .status  = export status_check_new_iredmail="DONE"
-  ./iRedMail.sh

< INFO > + 6 of 6: h t t p: //iredmail.org/yum/misc/phpPgAdmin-5.0.4.tar.bz2 < INFO > Validate packages ...md5sum: misc/roundcubemail-0.8.6.tar.gz: No such file or directory
md5sum: misc/roundcubemail-0.8.6.tar.gz: FAILED open or read
misc/phpldapadmin-1.2.3.tgz: No such file or directory
md5sum: misc/phpldapadmin-1.2.3.tgz: FAILED open or read
misc/phpMyAdmin-3.5.5-all-languages.tar.bz2: No such file or directory
md5sum: misc/phpMyAdmin-3.5.5-all-languages.tar.bz2: FAILED open or read
misc/phpPgAdmin-5.0.4.tar.bz2: No such file or directory
md5sum: misc/phpPgAdmin-5.0.4.tar.bz2: FAILED open or read
WARNING: 1 line is improperly formatted
md5sum: WARNING: 4 listed files could not be read
        [ FAILED ]
< ERROR > MD5 check failed. Script exit ...

I will try again a clean install jessie , 0.9.2 iRedmail , but need a orientation about the correct import the old databases to new .

==== Required information ====
- iRedMail version (check /etc/iredmail-release): Iredmail 0.8.5 to 0.9.2
- Linux/BSD distribution name and version:  Debian 7 to 8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): Mysql
- Web server (Apache):
- Manage mail accounts with iRedAdmin-Pro?  No
- Related log if you're reporting an issue:
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by Thierry 2015-08-30 16:07:04)

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Hi,
Are you using a virtual email server (vmware) or a physical machine ?
Thx

3

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

I don't understand what you're trying to solve.

Do you want to upgrade Debian 7 + iRedMail-0.8.5 to Debian 8 + iRedMail-0.9.2? If so, i suggest you follow this procedure:

*) Upgrade iRedMail by following our tutorials:
http://www.iredmail.org/docs/iredmail.releases.html

*) Once you upgraded iRedMail to the latest iRedMail-0.9.2, keep it running for some days/weeks, to make sure it works fine.

*) Once you're sure it's working fine, upgrade Debian 7 to Debian 8.

==== OR ====

Migrate Debian 7 + iRedMail-0.8.5 to a new server with Debian 8 + iRedMail-0.9.2. we have a tutorial for you:
http://www.iredmail.org/docs/migrate.to … erver.html

4

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Thanks all, Is a Real Server .

I installed debian 8 and the stable release 0.9.2 and follow the instructions, thanks

My fear is concern to hash passwd http://www.iredmail.org/docs/password.hashes.html

Leave the key field as the old server ?

xx@xx is literal ? or change for realuser@realdomain?

5

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

You can copy old passwords to new server directly, no modification required.

choyleefut wrote:

xx@xx is literal ? or change for realuser@realdomain?

Change it to the real email address.

6 (edited by choyleefut 2015-09-01 16:46:27)

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Hi my friends, thanks .

I follow all instructions and :
1- I see my 1432 users in iredadmin system
2- All databases are migrate (Thanks Zhang)

But I have this error in the mail.log

roundcube: <qs6lvllh> IMAP Error: Login failed for pruebar from 1x.3x.3x.5x. LOGIN: Authentication failed. in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube_imap.php on line 198 (POST /mail/?_task=login?_task=login&_action=login

I created a new password user by iredaminl and fail (change the old hash to {SSHA512}1tD45MOv7ox+lUXBP8UOvjpbzfiGS2jhKmC1oRZ ...) and create a new user , I see into iredamin panel, but dont see folders in maildir

I send a email tu iredmail server and recieve a error of user unknown

What happend?

Note: I don't touch the hash password

7

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Show us output of commands below:

cd /etc/postfix/mysql/
for cf in $(ls *cf); do echo $cf; postmap -p 'email_of_your_user' mysql:./$cf; done

Note: please replace 'email_of_your_user' by the real email address.

8 (edited by choyleefut 2015-09-01 20:48:00)

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

ok ok the result of comand is :

/etc/postfix/mysql# for cf in $(ls *cf); do echo $cf; postmap -p 'realuser@realdomain' mysql:./$cf; done                                                                                                                       catchall_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory
domain_alias_catchall_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory
domain_alias_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory
recipient_bcc_maps_domain.cf
postmap: fatal: open realuser@realdomain: No such file or directory
recipient_bcc_maps_user.cf
postmap: fatal: open realuser@realdomain: No such file or directory
relay_domains.cf
postmap: fatal: open realuser@realdomain: No such file or directory
sender_bcc_maps_domain.cf
postmap: fatal: open realuser@realdomain: No such file or directory
sender_bcc_maps_user.cf
postmap: fatal: open realuser@realdomain: No such file or directory
sender_login_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory
transport_maps_domain.cf
postmap: fatal: open realuser@realdomain: No such file or directory
transport_maps_user.cf
postmap: fatal: open realuser@realdomain: No such file or directory
virtual_alias_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory
virtual_mailbox_domains.cf
postmap: fatal: open realuser@realdomain: No such file or directory
virtual_mailbox_maps.cf
postmap: fatal: open realuser@realdomain: No such file or directory


ZhangHuangbin wrote:

Show us output of commands below:

cd /etc/postfix/mysql/
for cf in $(ls *cf); do echo $cf; postmap -p 'email_of_your_user' mysql:./$cf; done

Note: please replace 'email_of_your_user' by the real email address.

9

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Oops, my mistake, it's 'postmap -q', not '-p'. Sorry about this.

10 (edited by choyleefut 2015-09-02 10:28:24)

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

No problem, excuse me for my newbies questions, but I have 11 years old big_smile

This is user , what don't login ans don't recieve email (this user change the hash password to sha512 and iredadmin chage the deactived login to active login)

catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
realuser@domain.com
transport_maps_domain.cf
transport_maps_user.cf
dovecot
virtual_alias_maps.cf
realuser@domain.com
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
vmail1/domain.com/realuser//Maildir/

This is the user what don't create a maildir

catchall_maps.cf
domain_alias_catchall_maps.cf
domain_alias_maps.cf
recipient_bcc_maps_domain.cf
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
sender_bcc_maps_user.cf
sender_login_maps.cf
realuser2@domain.com
transport_maps_domain.cf
transport_maps_user.cf
dovecot
virtual_alias_maps.cf
realuser2@domain.com
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
vmail1/domain.com/b/a/b/realuser2-2015.09.01.02.21.14//Maildir/



ZhangHuangbin wrote:

Oops, my mistake, it's 'postmap -q', not '-p'. Sorry about this.

11

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

Output of 'postmap' commands looks fine.

If user cannot login, please turn on debug mode in Dovecot and try again. Reference:
http://www.iredmail.org/docs/debug.dovecot.html

Also, please show us ALL related SQL records of this user (which doesn't work). e.g. table `vmail.mailbox`, `vmail.alias`. You can hide the real email address, but please do not hide the real password, instead, you can replace some characters in password before pasting. so that we can know whether or not the format of password is correct.

12 (edited by choyleefut 2015-09-03 09:12:52)

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

ALLLLLLLL FINE!!!

Thanks Zhang , I really apreciate your pacience .

I see in the debugged log error for permisology in maildir:

Error: chdir(/opt/vmail/vmail1/vmail1/domain/realuser//) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +x perm: /opt/vmail/vmail1/vmail1/domain.com/realuser/, dir owned by 1000:2000 mode=0700)
Sep 02 20:07:19 imap(realuser@domain.com): Error: chdir(/opt/vmail/vmail1/vmail1/domain.com/realuser/) failed: Permission denied

then :

chown vmail.vmail /opt/vmail/vmail1/vmail1/domain/realuser/ -R

and voilaaaa!!!

I followed in the first step at the beginning:
Set correct file owner of mailboxes. Default owner is vmail, group is vmail.
Set correct file permission of mailboxes. Default is 0700.
refered in: http://www.iredmail.org/docs/migrate.to … erver.html

But I don't known what happens ..

Totally Thanks

13

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

try this:

chown -R vmail:vmail /opt/vmail/vmail1/vmail1
chmod -R 0700 /opt/vmail/vmail1/vmail1

Again:

Also, please show us ALL related SQL records of this user (which doesn't work). e.g. table `vmail.mailbox`, `vmail.alias`. You can hide the real email address, but please do not hide the real password, instead, you can replace some characters in password before pasting. so that we can know whether or not the format of password is correct.

14

Re: Need Help 0.8.5 to 0.9.2 wheezy to jessie Debian

All run fine now .

The problem was this only username, I change this directory permisology of user.vmail to vmail.vmail .

Thanks for all