Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd November 2009, 13:13
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 89
Thanks: 6
Thanked 13 Times in 10 Posts
Exclamation Change mail conf erased all mail data into account.

Im changed autoresponse and create a new filter for one mail account moving all menssages with SPAM subject to Junk folder. as super admin into control panel.

Its strange i can not reproduce the same at this moment all data on my mail account erased!

My first impression any one function recreated mail folder i dont no whats exact happyness.

Exists a way to check it like actions logs to analise this situation, any one pass for the same problem?

I restored my folder backup to the past week and lost all mail from this week too.
Reply With Quote
Sponsored Links
  #2  
Old 23rd November 2009, 17:06
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,000 Times in 3,911 Posts
Default

You can enable debugging in ispconfig. I looked at the code in the email module but I dont find anything that may delete the mail folder when adding a new mailfilter rule. Maybe you chnaged the email address too?

http://www.faqforge.com/linux/contro...n-ispconfig-3/
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 23rd November 2009, 18:00
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 89
Thanks: 6
Thanked 13 Times in 10 Posts
Exclamation adtional info about mail erase.

Hi Till,

I created routines do import mail accont into tables. need review it if on act to save account information check any adtional tables.

My account entry mail data erased. im logged into imap and all msg lost.
Changed auto response too.

If clicks on save button without any changes whats de code do?

On my migration routines ispconfig_mailsize not created this file can change anyting?

Follow attached file with content of migration routines. you can help-me if it is only necessary to make migration of mailboxes. and i can release a final version of this script to help some others.

Regards.
Attached Files
File Type: txt postfixadmin_2_ispconfig3_migration_scripts.txt (2.3 KB, 301 views)
Reply With Quote
  #4  
Old 23rd November 2009, 19:34
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,000 Times in 3,911 Posts
Default

This script can not work as none of your domains and mailboxes gets processed by ispconfig. If a mailbox is inserted, the maildir and additional files are created by ispconfig and you skip these steps. You can not insert domains or mailboxes by just running a sql query, for every change there is also a record in the sys_datalog required to tell ispconfig that there is a difference in the setup that has to be processed. This explains also that files have been erased as there was no mailbox from the view of ispconfig and ispconfig created a new empty mailbox as you did the first changes on the wrong imported data.

If you want to import mailboxes and domains into ispconfig, you have to call the functions in the remoting API for that to ensure that mailboxes get created correctly. You can find the examples for the remoting_api in the remote_client subfolder of the ispconfig tar.gz file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 23rd November 2009, 22:10
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 89
Thanks: 6
Thanked 13 Times in 10 Posts
Exclamation cont.

I see mailbox-add client its possible send password encripted?

No way to feel another tables? Because account all ready in system. its hard to me fix it now.

Another tables complete before change on control panel? supose ispconfig create a new account. i will be backup data before change. i can move imap folders to /var/vmail ?
Reply With Quote
  #6  
Old 24th November 2009, 08:00
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,647
Thanks: 794
Thanked 5,000 Times in 3,911 Posts
Default

Quote:
I see mailbox-add client its possible send password encripted?
No.

Quote:
No way to feel another tables? Because account all ready in system. its hard to me fix it now.
No. The problem is that your system does not contain the complete and exact structure of files in the filesystem for the mailboxes and the entry in sys_datalog are missing. The only way if you do not want to reimport everything is that you edit every mailbox, wiat until ispconfig recreated it and then copy back the file sin the maildirs. But be careful that you do not destroy the maildir structure.

Quote:
i can move imap folders to /var/vmail ?
Yes. But ISPConfig must have created the folders before and you may not remove any folders created by ispconfig, so just only copy the maildir files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 16th February 2010, 16:41
moglia moglia is offline
Member
 
Join Date: Apr 2009
Posts: 89
Thanks: 6
Thanked 13 Times in 10 Posts
 
Exclamation Including account using SOAP

Im used soap to create accounts and everyting is fine. im used sql to just get encripted passwords and quota to update. accounts created using soap interface.

Now im able to start create a how-to.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 22:39
Postfix & mail forwarding loop varnik Server Operation 21 9th December 2008 15:13
Postfix problem: lost connection after CONNECT from unknown fernando_torrez Server Operation 5 30th November 2007 14:17
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16
Server name change stops webmail working shajazzi Installation/Configuration 3 16th May 2006 16:00


All times are GMT +2. The time now is 17:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.