1830168 Members
5371 Online
109999 Solutions
New Discussion

Re: sendmail

 
SOLVED
Go to solution
K.C. Chan
Trusted Contributor

sendmail

All,
I've just migrated to a new mailserver. But how do I get emails that's already on the the old mailserver's mbox to the new mailserver's mbox? Thanks.
Reputation of a thousand years can be determined by the conduct of an hour
3 REPLIES 3
Kodjo Agbenu
Honored Contributor

Re: sendmail

Hi,

Make sure all unix accounts that were on the old server are created on the new mail server, and check the file permissions in /var/spool/mail.
Then copy the contents of /var/spool/mail from the old to the new mail server.

Good luck.

Kodjo
Learn and explain...
K.C. Chan
Trusted Contributor

Re: sendmail

Kodjo,
Here's a short summary of the situation. I've migrated the old mail server to the new mail server and swap ip on them, copied over passwd,shadow, group,and home. It is working now, but I've forgotten to migrate over the mail in /var/spool/mail. I could re-activate pop3 on the old mail server and let the user pull their mails off this way instead of copying them over which may over-write current mail on the current mailserver. Besides doing it this way, do you know of any other method which does not require user pulling off their mail from the old mailserver?
Reputation of a thousand years can be determined by the conduct of an hour
Kodjo Agbenu
Honored Contributor
Solution

Re: sendmail

Hello,

Transfer the contents of /var/spool/mail on the old server to /tmp/mailboxes on the new server.
Then try this on a test user :

cat /tmp/mailboxes/testuser >>/var/spool/mail/testuser

Normally, the old e-mails are appended to the new ones and the user may be able to get all messages. It it works, do it for all users.

Good luck.

Kodjo
Learn and explain...