LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-26-2009, 02:35 AM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 394

Rep: Reputation: 49
Moving mail server from SUSE to Slackware


When I first installed a server, it was on SuSE Enterprise 10. I made a home installation too, to test it in nonproductive area.
After 4 years, now, I find myself still using it. I have lots of mails on cyrus IMAP, and my MTA postfix works fine.

Now I set up my server rather on slackware then SuSE and I want to migrate my server to slackware.
Can I somehow move my existing mails to sendmail boxes?
Is there any How To for such migration?

I think that there is nothing else I want to move from old server to new, just old emails.
 
Old 04-26-2009, 02:46 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I haven't moved from suse to slackware, but once you've set up your mailserver on the slackware box, it should be a pretty simple matter of moving the relevant mbox files or maildir directories/files to the new server. The format of these files and directories is distro independent, so the only real potential issue is one of permissions on first thought.

Where are your mailfiles? Make sure you have backups before you start as a general rule.
 
Old 04-26-2009, 03:20 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 394

Original Poster
Rep: Reputation: 49
I am asking because the cyrus IMAP server stores each mail in separate file and the slackwares imapd in one big file stores each mail.
I didn't mention that I want to replace cyrus IMAP with imapd on slackware and postfix with sendmail (MTA on slackware).

Last edited by hua; 04-26-2009 at 04:23 AM.
 
Old 04-26-2009, 03:58 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Sounds like you're talking about maildir vs mbox. Maildir stores one email per file, whereas mbox is one file for a whole email folder. You should be able to set your new server for maildir.

Edit - what MTA are you planning to use with slackware?

Last edited by billymayday; 04-26-2009 at 04:02 AM.
 
Old 04-26-2009, 04:35 AM   #5
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 394

Original Poster
Rep: Reputation: 49
I am planning to use sendmail. As a matter of fact I did not even thought that sendmail can be set to use maildirs .
If so, then the maildirs should be copied to the new server and it should work??

If I new that, I would set up my all slackware - sendmail servers for maildirs. Its better, isn't it?

Last edited by hua; 04-26-2009 at 05:07 AM.
 
Old 04-27-2009, 05:50 PM   #6
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
The good news for your migration is, that KMail has excellent import, export and conversion capabilities. If you currently use MBox, just import the files into KMail and save them back again in your favourite format.

Which mail format is best for you depends on your usage scenarios, but usually the advantages of maildir (and MH) outweigh their weaknesses.

Mbox stores alle email messages in one big file.

PRO:
- Many tools available for specialised tasks, such as archiving in HTML
- Easy exchanges of mails with different MUAs
- Practically all mail clients (MUA == Mail User Agent) support mbox, quite a few don't support anything else

CON:
- Files can become really huge, which makes handling and archiving difficult
- Hierarchical structuring of mail archives requires proprietary constructs such as index files; these are usually not portable between MUAs, unfortunately


Maildir (and as far as I recall it, MH, too) store each mail message in a separate file.

gargamel
 
Old 04-27-2009, 05:52 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
There are quite a few scripts floating around for converting mbox to maildir and vice versa, which would eb much simpler if you have more than one user on the system.
 
Old 04-28-2009, 01:42 AM   #8
TL_CLD
Member
 
Registered: Sep 2006
Posts: 342

Rep: Reputation: 34
Hey hua,

I would seriosly consider looking into Dovecot. There's a slackbuild for it, and it works a charm. Also it is extremely easy to get up and running, and you could continue using maildir.

As to the move from Postfix to Sendmail - why? Why not just stay with Postfix? There's a slackbuild for Postfix also, so it's easy to use with Slackware.

http://slackbuilds.org/repository/12.2/network/postfix/
http://slackbuilds.org/repository/12.2/network/dovecot/
http://dovecot.org
 
Old 04-28-2009, 01:57 AM   #9
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37, 14.0
Posts: 394

Original Poster
Rep: Reputation: 49
I have nothing against postfix... I have no troubles with it and It has really simple configuration files. I would rather go on sendmail because of the update system of slackware security. I get security notifications about new patches. So it is simple to keep my apps up to date.
 
Old 04-29-2009, 03:04 PM   #10
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by hua View Post
I have nothing against postfix... I have no troubles with it and It has really simple configuration files. I would rather go on sendmail because of the update system of slackware security. I get security notifications about new patches. So it is simple to keep my apps up to date.
Same here.

Also: Configuring Sendmail isn't more complicated than configuring Postfix, anymore, in recent versions. M4 is still a bit strange, but the M4 scripts for Sendmail have come a long way in recent years. And regarding security, Sendmail proved very robust in the recent past, while Postfix finally exposed some vulnerabilities.
Last point: Sendmail has a slightly more modular architecture than Postfix, which is a bit more monolithic. It's therefore a bit easier to extend Sendmail with "Plug-ins" or "Modules" (I don't recall the correct term, right now), such as Milter for Spam protection, than Postfix.

But, of course, both MTAs are great efforts, and certainly the success of Postfix was an important driver for the many improvements in Sendmail over the last five or six years. And while it looked like Sendmail wouldn't be able to keep pace with its challengers, it finally caught up.

Good for us, as we can choose between two excellent pieces of software.

gargamel
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Moving ISP's... mail/web/dns server move to new IP's flamewalker Linux - Networking 16 11-06-2007 10:55 AM
forward mail to internal mail server suse 9.2 brian1978 Linux - Security 1 02-22-2006 02:25 PM
Moving server - Mail Accounts - Postfix ]SK[ Linux - Software 1 03-26-2005 10:28 AM
mail server on slackware 10 paul_mat Slackware 1 03-13-2005 07:28 AM
How to create a Mail server on Suse Linux Standard Server 8 DavidPartay Linux - Networking 1 06-29-2004 06:49 PM


All times are GMT -5. The time now is 03:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration