Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 06-30-2009, 05:43 AM   #1
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, 11:06 AM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
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, 11:32 AM   #3
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 11:33 AM.



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

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration