LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-23-2004, 03:09 PM   #1
aim4fame
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
Hard time 'finding' e-mail


I recently moved my mailserver from one box to another.

OLD box:

RH 9 / plesk 7 / horde

NEW box:

Fedora Core 1 / cpanel / horde / squirrelmail

I have copied all the emails over via ssh from a /var/qmail folder where the e-mails are stored.

I cannot, however, find a similar storage area in my new servers configuration. Being that I've activated horde on this server as well I had hoped it would be fairly simple to 'paste' the old messages in.


anyone know how I may do this?

Thanks!
 
Old 08-23-2004, 03:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in the Software forum and has been moved accordingly to help your thread/question get the exposure it deserves.


Cheers,
Tink
 
Old 08-23-2004, 11:59 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Quote:
I have copied all the emails over via ssh from a /var/qmail folder where the e-mails are stored.
The email messages should have been delivered to the Mailbox/Maildir of the recipient, unless you used the standard mbox, inwhich case new mail will reside in /var/spool/mail/<username> (or a symlink in some setups)

You IMAP server choice could also be taken into consideration.

Last edited by mcleodnine; 08-24-2004 at 12:00 AM.
 
Old 08-24-2004, 12:09 PM   #4
aim4fame
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I know the new server is not using qmail as I had to create that directory - how would I go about figuring out where this server is configured to store messages?

/var/spool/mail/username exists, but I do not see anything other than usernames there (no files).

sorry if this is noobish, that's why I posted in the 'linux noob' section ... thanks for any/all help.
 
Old 08-24-2004, 12:27 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Uhhh... where the messages go depends a lot on what mail server you're using and how messages are stored.

Typically new messages will live in /var/spool/mail/<username> and then could be moved via the client to a local userspace store.

If you're setiing up for just a smple POP3 server, users will download their mail to a local machine with an email client (Mozilla Mail, MSLookOut, etc.), and optionally delete it from the server.

If you're gearing up for a webmail install, then the IMAP client will grab the new mail from /var/spool/mail/<username> and then file it in the user's home directory on the server.
 
Old 08-24-2004, 01:25 PM   #6
aim4fame
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Your second reply seems to be correct (webmail) ... if I go to /home/username/mail/user and 'vi inbox' it seems to be some sort of flat file with all messages contained. How then would I go about adding our old messages aside from opening each individual message from the old server and pasting into this flat file on the new?

I know I must be making this way more difficult than it should be
 
Old 08-24-2004, 01:43 PM   #7
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
So... on the old server your messages are setup as individual files?
 
Old 08-24-2004, 02:15 PM   #8
aim4fame
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
yes, for example they appear in :

/var/qmail/mailnames/mydomain.com/username/Maildir/cur

I find a line for each message similar to this (each of these contains one e-mail):

1087930383.4382.my.server.name:2,S
1088060058.4215.my.server.name:2,S
1089331532.5412.my.server.name:2,S
1089404908.27509.my.server.name:2,RS

and so on for each message in /cur


When I open the /inbox file on the new server, it seems to contain all these messages in a flat file, leaving me stumped as to how I may add them. I may just see if I can grab these files to my local machine, combine into a text doc and send to myself.

-eddie
 
Old 08-24-2004, 02:39 PM   #9
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Ahhh. OK - Maildir2mbox is what you should be using

http://www.qmail.org/qmail-manual-ht...ldir2mbox.html
 
Old 08-26-2004, 01:53 PM   #10
aim4fame
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Is this something I must install qmail to use? I cannot seem to locate a download for this script, only man pages and how-tos. I assume by my readings this script will take those files from my old server and create a 'flat' file for my new server ...

anyway, thanks for your help so far ... anything else you may have is appreciated.
 
Old 08-27-2004, 12:28 AM   #11
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You would need to do this on the original mail server, or setup a new qmail with the same users as the original.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding companys mail addresses juanb Linux - Security 1 09-05-2004 02:29 AM
finding a window hard drive greek Linux - Hardware 0 06-17-2004 06:18 PM
Finding Internet Connnect time! jaya_surya1 Linux - Newbie 0 05-31-2004 03:16 AM
Finding out the last time linux was switched on Xgkkp Red Hat 3 11-16-2003 12:44 PM
having hard time finding FTP server resources e1000 Linux - Networking 2 11-12-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration