LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-06-2006, 01:30 PM   #1
wachaca
LQ Newbie
 
Registered: Nov 2006
Location: Santiago, Chile
Distribution: Ubuntu LTS
Posts: 14

Rep: Reputation: 0
Postfix + Maildir + Courier.


Hello,
I installed Postfix on a clean box and configured the following directive:
mail_spool_directory = /var/mail/
So when I send email to user@localhost
The directory /var/mail/user gets created with 3 sub-directories; tmp, new, cur
So far so good right?

The problem is that I cannot figure out how to tell courirer-Pop3/Imap to fetch the email from that structure.

The only coniguration directive that I find in /etc/courier/imapd (or pop3d) is

MAILDIRPATH=Maildir
which I imagine is relative to the users home directory. (which is not where I want to store the email)

Any sugestion on how to fix this? or suggest another IMAP/Pop server?

Thanks
Wachaca
 
Old 12-06-2006, 01:36 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you saying that courier-IMAP isn't working?

I use dovecot, and it auto-detects where mailfiles are kept. I could over-ride it, but it doesn't seem necessary. COurier doesn't do this?
 
Old 12-06-2006, 01:40 PM   #3
wachaca
LQ Newbie
 
Registered: Nov 2006
Location: Santiago, Chile
Distribution: Ubuntu LTS
Posts: 14

Original Poster
Rep: Reputation: 0
No, courier-Imap is not working.

After I login using POP3 (via telnet) I get the error:

-ERR Maildir: No such file or directory

Which is correct: /home/user/maildir does not exist...
can't figure out how to confiture courier that the mail is in /var/mail/{user} structure.

I will try out dovecot, thanks
 
Old 12-06-2006, 02:30 PM   #4
wachaca
LQ Newbie
 
Registered: Nov 2006
Location: Santiago, Chile
Distribution: Ubuntu LTS
Posts: 14

Original Poster
Rep: Reputation: 0
Dovecot worked like a charm!

It wasn't as magical or automatic as it was to you.. but the configuration directive:

default_mail_env = maildir:/var/mail/%u/

Allows me to specify exactly where the mail is.

thanks for the recomendation.

Last edited by wachaca; 12-06-2006 at 02:32 PM.
 
Old 12-06-2006, 02:39 PM   #5
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That's great
 
  


Reply

Tags
courier, maildir, postfix



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
Courier: Maildir invalid (no 'cur' directory) binjured Linux - General 1 06-11-2006 11:49 PM
Courier imap + postfix -> maildir thing. collen Linux - Software 0 10-03-2005 09:41 AM
(Imail) mailbox to (courier-imap/postfix) maildir chakkerz Linux - Software 0 02-03-2005 09:42 PM
Postfix + MySQL + Courier-Imap - can not find the maildir chakkerz Linux - Software 1 01-24-2005 09:32 PM
Courier esmptd maildir thepaemon Linux - Networking 0 05-31-2004 07:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration