LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 06-30-2009, 04:43 AM   #1
Aardvark
LQ Newbie
 
Registered: Aug 2003
Location: Switzerland
Distribution: FC11
Posts: 8

Rep: Reputation: 0
Changing /var/spool/mail/$USER to ~/Maildir


I am trying to set up email on my web server (FC11) ... I am not new to Linux but am new to setting up email on Linux.

At the moment mail is delivered to:
/var/spool/mail/$USER (single file containing all emails)

Unfortunately I am fairly certain that Dovecot is trying to get the emails from ~/Maildir

Most apps seem to prefer the ~/Maildir method because the files are kept separate so I would like to change from /var/spool/mail/$USER to ~/Maildir.

What do I need to do to make this change for all users? It would be even better if I could preserve the current emails.
 
Old 06-30-2009, 10:06 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
I'm not all that experienced with email on Linux either but I believe that you have your concepts mixed up. I have managed email on Solaris and the concepts are the same so I may have some helpful information for you. Let's find out.

Dovecot is a mail transport agent (MTA) or mail server. It should not be looking into the home directory of a user account.

/var/spool/mail/$USER is the correct place for any mail transport agent to work in.

The user account mail in $HOME/Mail is managed by an email client such as Kmail. The email client talks to the MTA. The MTA manages the files going into and out of /var/spool/mail/$USER. The email client manages files going into and out of $HOME/Mail.

I hope this helps.
 
Old 06-30-2009, 10:32 AM   #3
Aardvark
LQ Newbie
 
Registered: Aug 2003
Location: Switzerland
Distribution: FC11
Posts: 8

Original Poster
Rep: Reputation: 0
As far as I understood, ~/Maildir is the preferred place for this nowadays ... can somebody clear this up?

Dovecot needs a folder location and an inbox for the config but /var/spool/mail/$USER is only an inbox.

I am very confused by all of this.

Last edited by Aardvark; 06-30-2009 at 10:33 AM.
 
  


Reply

Tags
dovecot


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
How to deliver/forward a /var/spool/mail/user file digitaljunkie Linux - Server 2 06-01-2008 02:47 PM
Migrating Mail - Courier Imap /Maildir > Cyrus /var/spool/imap swilliams2006 Linux - Server 3 10-13-2006 05:47 PM
spam_buttons move from /var/spool/mail/user to $HOME/mail/Junk paul_mat Linux - Software 0 05-25-2006 02:07 AM
Import Mail from /var/spool/mail (sendmail) to a MailDir Format in Postfix shawnbishop Linux - Software 0 04-06-2006 10:44 AM
Mail going to /var/spool/mail/user and not to Thunderbird pracslipkerm Linux - Newbie 4 06-21-2005 05:58 AM


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