LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-25-2012, 01:26 AM   #1
sunrised24
LQ Newbie
 
Registered: Jan 2012
Location: Chennai,INDIA
Distribution: Centos5.4,SuseLinux,Rhel5,Ubuntu 10.04
Posts: 27

Rep: Reputation: Disabled
How to take all sendmail & Received mail backup


Hi All.
I Had installed mail server in local internal purpose.
SENDMAIL &DOVEDOT

Its working fine,but how can i backup all the mail send & received by all user in another server system ,Can any one help me how can i migrate my mail server

when i check out user home directory i could int find any mail content
[root@localhost ~]# cd /home/
jane/ tom/
john/ vivekbansal/
[root@localhost ~]# cd /home/tom/
[root@localhost tom]# ls
dead.letter mail
[root@localhost tom]#
 
Old 01-25-2012, 03:00 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by sunrised24 View Post
Hi All.

when i check out user home directory i could int find any mail content
[root@localhost ~]# cd /home/tom/
[root@localhost tom]# ls
dead.letter mail
[root@localhost tom]#
Hi,

try
Code:
[root@localhost tom]# ls -al


and

ls -al mail     <--- this directory appears above in the directory when you do ls
what does it show ?
 
Old 01-25-2012, 03:47 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by sunrised24 View Post
Hi All.
I Had installed mail server in local internal purpose.
SENDMAIL &DOVEDOT

Its working fine,but how can i backup all the mail send & received by all user in another server system ,Can any one help me how can i migrate my mail server

when i check out user home directory i could int find any mail content
[root@localhost ~]# cd /home/
jane/ tom/
john/ vivekbansal/
[root@localhost ~]# cd /home/tom/
[root@localhost tom]# ls
dead.letter mail
[root@localhost tom]#
then go inside mail directory where you will get these directories
Code:
#cd /mail
#ls
inbox  INBOX.Drafts  INBOX.Sent  INBOX.Trash
#cat inbox >> /inbox.txt
 
Old 01-25-2012, 03:57 AM   #4
sunrised24
LQ Newbie
 
Registered: Jan 2012
Location: Chennai,INDIA
Distribution: Centos5.4,SuseLinux,Rhel5,Ubuntu 10.04
Posts: 27

Original Poster
Rep: Reputation: Disabled
Hi Deepak ,
i never any thing such hing over my user home dir .

[root@localhost ~]# cd /home/tom/
[root@localhost tom]# ls
dead.letter mail mbox
[root@localhost tom]# cd mail/
[root@localhost mail]# ls
[root@localhost mail]# ls -al
total 12
drwx------ 3 tom tom 4096 Jan 23 21:09 .
drwx------ 4 tom tom 4096 Jan 25 20:15 ..
drwx------ 3 tom tom 4096 Jan 23 21:09 .imap
[root@localhost mail]# cd .imap/
[root@localhost .imap]# ls
INBOX
[root@localhost .imap]# cd INBOX/
[root@localhost INBOX]# ls
dovecot.index dovecot.index.cache dovecot.index.log
[root@localhost INBOX]#
 
Old 01-25-2012, 04:14 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
what is inside mbox??

check this location

Code:
#cd /var/spool/mail
#ls
user1 user2
#cat user1
 
Old 01-25-2012, 04:48 AM   #6
sunrised24
LQ Newbie
 
Registered: Jan 2012
Location: Chennai,INDIA
Distribution: Centos5.4,SuseLinux,Rhel5,Ubuntu 10.04
Posts: 27

Original Poster
Rep: Reputation: Disabled
Hi Deepak,
i could int find out mail box
[root@mail ~]# cd /var/spool/mail/
[root@mail mail]# ls
jane john root rpc tom vivekbansal
[root@mail mail]# cat vivekbansal
From MAILER_DAEMON Wed Jan 25 21:24:00 2012
Date: Wed, 25 Jan 2012 21:24:00 +0530
From: Mail System Internal Data <MAILER-DAEMON@mail.etl.com>
Subject: DON'T DELETE THIS MESSAGE -- FOLDER INTERNAL DATA
Message-ID: <1327506840@mail.etl.com>
X-IMAP: 1327335335 0000000002
Status: RO

This text is part of the internal format of your mail folder, and is not
a real message. It is created automatically by the mail system software.
If deleted, important folder data will be lost, and it will be re-created
with the data reset to initial values.

Last edited by sunrised24; 01-25-2012 at 04:50 AM.
 
Old 01-25-2012, 05:09 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
copy the mail to a text file and read properly.
I believe that must be a bounced message which you are reading. It should show all the mails

Code:
#cat vivekbansal >> /vivek.txt

#vi /vivek.txt
and check once again
 
  


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
sendmail&java&cruise: did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA fishjohn Linux - Server 1 04-28-2010 09:43 AM
[SOLVED] How to take backup of all incoming / outgoing mail in sendmail mail4vijay Linux - General 5 11-20-2009 08:35 AM
sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases fhd Linux - Networking 1 01-09-2005 06:05 PM
Wrong 'From' address on mail received from sendmail pioniere Linux - General 2 05-21-2004 03:41 PM
sendmail and backup mail server gsimpson Linux - Software 6 07-11-2003 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:20 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