Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 13th June 2007, 05:16
hillbr hillbr is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default recovering eml messages to uebimiau

Hi All

I'm in a server migration with the mail services and I migrated the UebiMiau webmail to a server with a different version of PHP, so the UebiMiau stopped working. I've made a few changes in webmail source code as indicated by some posts and deleted the "temporary_files", that was my mistake that made me lose the eml files.
Now I need to recover the backup messages to the new UebiMiau server.

The situation is:
All the users messages are saved (eml format) in "./webmail/temporary_files/username_pop3.foo.bar/inbox" and similar directories, one for each user, in the old server.

Does someone know how can I transfer this eml files to the new instalation of UebiMiau and make it appear in the UebiMiau interface ?
I used rsync and all the eml files and user's directoctories are already in their places, but the messages aren't being fetched by the UebiMiau.

Thanks a lot.
Reply With Quote
Sponsored Links
  #2  
Old 13th June 2007, 08:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Normally it should work when you just copy the files to the new uebimiau installation. I've recovered the files this way several times and it worked for me. Please make sure that uebimiau is able to read and write the files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th June 2007, 22:12
hillbr hillbr is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
Normally it should work when you just copy the files to the new uebimiau installation. I've recovered the files this way several times and it worked for me. Please make sure that uebimiau is able to read and write the files.
UebiMiau (www-data) is able to rwx the files.
I've updated to UebiMiau 2.7.10 and it is showing just the messages from POP3 server, not the local messages(the .eml files).

Is there any config. issue that handles local or server messages ?
I have to specify something to fetch the local messages ?
Reply With Quote
  #4  
Old 14th June 2007, 10:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 36,395
Thanks: 833
Thanked 5,490 Times in 4,322 Posts
Default

Quote:
I've updated to UebiMiau 2.7.10 and it is showing just the messages from POP3 server, not the local messages(the .eml files).
I guess your uebimiau is storing the messages in another location. Are you sure that these new messages are stored in the same folder where you put the old messages?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 14th June 2007, 19:35
hillbr hillbr is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

The messages are in the right folder, but they are not being displayed by uebimiau.
But something weird are happening: all the eml files are being deleted when I logout uebimiau. But even when the eml files are still in the inbox folder they aren't displayed.
Another weird thing: the messages in the sent folder are recovered normally, displayed by uebimiau and not deleted when logout.
The permittions are in 777.

Code:
<?
define('yes',1);
define('no',0);
$ALL_OK = false;
$themes 	= Array();
$languages 	= Array();
# The temporary files will be stored on this folder
# For security reasons, do not use web-shared folders
# ** The Web Server needs write-permission on this folder
# * Unix/Linux users use.
# /Repositorio/sistemas/webmail/
# * Win32 users
# c:/winnt/temp/uebimiau
# NEVER use backslashes (\). Always use forward slashes (/),
# for all operating systems, INCLUDING Windows

$temporary_directory = "/Repositorio/sistemas/webmail/uebimiau/database/";
# Your local SMTP Server (alias or IP) such as "smtp.yourdomain.com"
# eg. "server1;server2;server3"   -> specify main and backup server
$smtp_server = "smtp.domain.com.br";  #YOU NEED CHANGE IT !!

# You should enable this option if you know what are doing

$allow_filters = no;





########################################################################

# The maximum size for stored files

# In order to keep you system fast, use values better than 5MB

# If you need disable it, set the value to 0 or leave it blank

########################################################################

$quota_limit = 50000;  //  in KB, eg. 4096 Kb = 4MB





########################################################################

# Use SMTP password (AUTH LOGIN type)

########################################################################

$use_password_for_smtp	= no;



########################################################################

# Redirect new users to the preferences page at first login

########################################################################

$check_first_login		= no;



########################################################################

# Turn this option to 'yes' if you want allow users send messages using

# they 'Reply to' preference's option as your 'From' header, otherwise 

# the From field will be the email wich the users log in

########################################################################

$allow_modified_from	= no;



########################################################################

# Language & themes settings

########################################################################



require("./inc/config.languages.php");



########################################################################

# Security related settings

########################################################################



require("./inc/config.security.php");





########################################################################

# Server type:

# allowed values:



# "DETECT" -------->	Guess the pop3 server. If you are running UM

# 					in a domain "www.company.com", the script will 

#					use "PREFIX.company.com" as your server. you 

#					can set the "PREFIX" in the var $mail_detect_prefix.

#					Also, the var $mail_detect_remove can be set

#					to "www.", then the script get rid the "www" and 

#					put the prefix, eg. pop3.company.com.br



#"ONE-FOR-EACH" -->	Each domain have your own mail server.

#					The script will load the list of domains/servers from

#					var $mail_servers.



#"ONE-FOR-ALL" --->	If you use this option, your users must supply the

#					full email address as username. You can set the mail

#					server in the var $default_mail_server

#					



# LOGIN_TYPE



# Note. You can supply the LOGIN_TYPE according to your MAIL SERVER.

# Eg. If your mail server requires usernames in user@domain.com, you must

# specify the LOGIN_TYPE as "%user%@%domain%". You can combine it according to 

# your server. eg.



# %user%

# %user%@%domain%

# %user%.%domain%

#

# PROTOCOL and PORT

# Choose "imap" as protocol to use the Internet Mail Access Protocol, 

# or "pop3" to use the Post Office Protocol.

# The default ports are:

# pop3 -> 110

# imap -> 143

# The imap is more fast, but all functions of UebiMiau works with POP3

########################################################################



########################################################################



$mail_server_type 	= "ONE-FOR-EACH";



########################################################################

# TYPE: DETECT

########################################################################



$mail_detect_remove 		= "www.";

$mail_detect_prefix 		= "mail.";

$mail_detect_login_type 	= "%user%@%domain%";

$mail_detect_protocol 		= "pop3";

$mail_detect_port 			= "110";

$mail_detect_folder_prefix 	= "";



########################################################################

# TYPE: ONE-FOR-EACH

# Each domain have your own mail server

########################################################################





$mail_servers[] = Array( //sample using POP3

	"domain" 		=> "domain.com.br", 

	"server" 		=> "pop.domain.com.br", 

	"login_type" 	=> "%user%",

	"protocol"		=> "pop3",

	"port"			=> "110",

);





/*

$mail_servers[] = Array( //sample using IMAP

	"domain" 		=> "another-domain.com", 

	"server" 		=> "mail.another-domain.com", 

	"login_type" 	=> "%user%@%domain%",

	"protocol"		=> "imap",

	"port"			=> "143",

	"folder_prefix"	=> "INBOX."

);



*/



########################################################################

# TYPE: ONE-FOR-ALL

# the default mail server for all domains

########################################################################



$default_mail_server 	= "mail.YOUR-UNIQUE-SERVER.com.br";

$one_for_all_login_type	= "%user%@%domain%";

$default_protocol		= "pop3";

$default_port			= "110";

$default_folder_prefix	= "";





########################################################################

# Specify mail transport

# Allowed values:

# "smtp" 		- To use an external SMTP Server specified in $smtp_server

# "sendmail" 	- To server's sendmail-compatible MTA. If you need to change

#				  the path, look into /inc/class.phpmailer.php and search for

#				  var $Sendmail          = "/usr/sbin/sendmail";

# "mail"		- To use default PHP's mail() function

########################################################################



$mailer_type		= "smtp";





########################################################################

# In some POP3 servers, if you send a "RETR" command, your

# message will be automatically deleted :(

# This option prevents this inconvenience

########################################################################



$mail_use_top = yes;



########################################################################

# Name and Version, it's used in many places, like as

# "X-Mailer" field, footer

########################################################################



$appversion = "Organization";

$appname = "Webmail";





########################################################################

# Add a "footer" to sent mails

########################################################################



$footer = "



________________________________________________

Esta mensagem foi enviada pelo $appname $appversion

";



########################################################################

# Enable debug :)

# no - disabled

# 1 or yes -> enabled with full results

# 2 -> enable with servers communications only

# ********************************************************/

$enable_debug = no;





########################################################################

# Order setting

########################################################################



$default_sortby = "date";

$default_sortorder = "DESC";



########################################################################

# Default preferences...

########################################################################



$default_preferences = Array(

	"send_to_trash_default" 	=> yes,		# send deleted messages to trash

	"st_only_ready_default" 	=> yes,		# only read messages, otherwise, delete it

	"save_to_sent_default"		=> yes,		# send sent messages to sent

	"empty_trash_default"		=> yes,		# empty trash on logout

	"sortby_default"			=> "date",	# alowed: "attach","subject","fromname","date","size"

	"sortorder_default"			=> "DESC",	# alowed: "ASC","DESC"

	"rpp_default"				=> 20,		# records per page (messages), alowed: 10,20,30,40,50,100,200

	"add_signature_default"		=> no,		# add the signature by default

	"signature_default"			=> "",		# a default signature for all users, use text only, with multiple lines if needed

	"timezone_default"			=> "+0000",	# timezone, format (+|-)HHMM (H=hours, M=minutes)

	"display_images_default"	=> yes,		# automatically show attached images in the body of message

	"editor_mode_default"		=> "html",	# use "html" or "text" to set default editor. "html" will be used only in IE5+ browsers

	"refresh_time_default"		=> 10		# after this time, the message list will be refreshed, in minutes

);

/*

don't touch here

*/

$ALL_OK = true;

?>
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
Wrong quota messages Bruce General 10 15th September 2010 15:44
uebimiau question ozonblue Installation/Configuration 3 8th October 2006 15:16
Messages for user and reseller LukaszP Feature Requests 0 25th August 2006 13:10
UebiMiau, error messages. fkmeland General 8 22nd May 2006 23:54
UebiMiau locks out after server receives email sbecker Installation/Configuration 2 25th March 2006 00:00


All times are GMT +2. The time now is 00:32.


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