prisma wrote:
@FiShBuRn: I want to upgrade to 5.4, but "mommy I'm scared".
Would you please be so kind to post a summary of your steps to downgrade a 5.4 as HOWTO within "Tips & Tricks"?
(Yes I know, 5.4 works great at some systems. I say some because there aren't enough beta testers. It's just good to have an option if something is not working instead of waiting for a bugfix.)
This is what ive made:
1 - Stopped hMailServer
2 - Dump the DB using phpmyadmin or cmd prompt.
3 - Zipped hMailserver Folder, to save all stuff.
4 - Executed this script via phpmyadmin to rebuild the path:
Code:
UPDATE
hm_messages
SET
messagefilename = (SELECT CONCAT('C:\\Programas\\hMailServer\\Data\\', SUBSTRING_INDEX(hm_accounts.accountaddress, '@', -1),'\\', SUBSTRING_INDEX(hm_accounts.accountaddress, '@', 1),'\\', SUBSTR(hm_messages.messagefilename,2,2),'\\', hm_messages.messagefilename) caminho
FROM hm_accounts
WHERE hm_messages.messageaccountid = hm_accounts.accountid and hm_messages.messagetype = 2 and SUBSTR(hm_messages.messagefilename,1,1) = '{'
)
WHERE EXISTS
(
SELECT CONCAT('C:\\Programas\\hMailServer\\Data\\', SUBSTRING_INDEX(hm_accounts.accountaddress, '@', -1),'\\', SUBSTRING_INDEX(hm_accounts.accountaddress, '@', 1),'\\', SUBSTR(hm_messages.messagefilename,2,2),'\\', hm_messages.messagefilename) caminho
FROM hm_accounts
WHERE hm_messages.messageaccountid = hm_accounts.accountid and hm_messages.messagetype = 2 and SUBSTR(hm_messages.messagefilename,1,1) = '{'
);
5 - Then execute this queries to restore some DB settings:
Code:
update hm_greylisting_whiteaddresses set whiteipaddress = replace(whiteipaddress, '%', '*');
update hm_whitelist set whiteemailaddress = replace(whiteemailaddress, '%', '*');
update hm_dbversion set value = 5320;
INSERT into hm_settings(settingid,settingname,settingstring,settinginteger) values (9,'tarpitdelay','',0),(10,'tarpitcount','',0);
delete from hm_settings where settingname = 'EnableWhitelisting';
delete from hm_settings where settingname = 'MaxNumberOfMXHosts';
delete from hm_settings where settingname = 'ClamAVEnabled';
delete from hm_settings where settingname = 'ClamAVHost';
delete from hm_settings where settingname = 'ClamAVPort';
6 - Install hMailserver v5.3.x
7 - Prey....

8 - After the installation hMailserver should be running fine

Bill, free to add or remove something soo then we can make a thread.
Regards