-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Apr 16, 2002 at 11:41:49AM +0800, Wesley Jay Deypalan wrote:
>I have redhat 7.1 using sendmail as mail server. I would like to reformat
>my mail server, how do i backup the emails in the mail  server?

Please set your email client to use text/plain when sending messages to a
mailing list. Some of us are using mail clients that cannot easily display
HTML.

To answer your question, stop the mail services:

  service sendmail stop

Then check to see if there are any messages in the queue:

  mailq

If there are, try flushing the queue:

  sendmail -q

Check the queue again, if there are still messages in the queue, you will
need to copy them to a safe place while you reinstall.

Then edit /etc/xinetd.d/ipop3 to disable the service. Then restart xinetd:

  service xinetd restart

Do the same for any other mail services that you are running from xinetd.
Then put the mail into a tarball:

  cd /var/spool/mail
  tar -cxvf /tmp/mailspool.tar.gz *

Copy the tarball to a safe place and proceed with your reinstallation. Be
sure to save the /etc/passwd, shadow, and groups files so that your user
account information is maintained. The tarball containing the mail also
contains UIDs for ownership. These UIDs match those in the passwd file. If
you don't maintain that file, it will be a PITA to properly set ownership
on the mail files.


Tony
- -- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D
AOL/Yahoo Chat: TonyG05         HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Anthony E. Greene <[EMAIL PROTECTED]> 0x6C94239D

iD8DBQE8u9l4pCpg3WyUI50RAqK7AKD5XmdU4OZXKZrVYUl5QiiXJUYqEwCaAtUC
SiCNjSdkgyucxJ4Swgup6xk=
=s+fP
-----END PGP SIGNATURE-----



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to