Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 05-02-2005, 11:12 AM   #1
Registered: Jul 2004
Location: The Netherlands
Distribution: Sidux , Debian, Haiku, PC-BSD, CentOS --> XenExpress
Posts: 77

Rep: Reputation: 16
postfix/procmail doesn't deliver emails!


I try to get an imap server running on my machine, but it seems that postfix/procmail doesn't deliver emails to the courier-imap server.

Or should I say the messages stay in /var/mail/userid and are not delivered to the Maildir of the user.

What is here the problem? I tried changing the config files, as read on the internet, but couldn't find the right instructions to fix the problem.

Fetchmail does work, it gets the messages from the pop account.
courier imap server seems to work, because I can get a connection as the user, but I don't see the directories created by maildirmake++ (new, cur, tmp).

Postfix seems to work for sending the files to my pop provider (test went ok, checked it and the mail was delivered)!

One remark, as I have read on an article, you should make the Maildir (in the users dir) with root rights, but then I can't connect to the directory with the mailclient, so I chown-ed it to the users rights and then I could connect.

the ~/.procmail was also as root rights, but I did do a chown to the users rights. all seems to be ok, but the mails stay in the /var/mail/userid file..

Someone has an idea?


Last edited by eisman; 05-02-2005 at 11:13 AM.
Old 05-18-2005, 10:21 AM   #2
LQ Newbie
Registered: May 2005
Posts: 1

Rep: Reputation: 0

You should add
home_mailbox = Maildir/
to your /etc/postfix/ file. And then do "sudo postfix reload" so that postfix reloads the new configuration.
Now mail will be delivered to ~/Maildir for each user.
Note that you should have an alias for root in /etc/aliases, so that root mail goes to that user instead of root (because root's home directory is not /home/root but /root, so there is no /home/root/Maildir...).

Other changes I did in order for the rest of the system to recognize my Maildirs:
- Added
export MAIL
to /etc/profile
- Changed /etc/pam.d/login and /etc/pam.d/ssh as follows:
session optional standard dir = ~/Maildir
- Changed /etc/login.defs:
QMAIL_DIR   Maildir/
MAIL_FILE   Maildir/
And finally, added this to my .muttrc so that mutt knows how to deal with my Maildir (just in case I need to read mail with mutt):
set mbox_type=maildir
set folder=~/Maildir/
set spoolfile=~/Maildir/
Hope that helps.


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
QMAIL/MAILDROP/PROCMAIL: obtaining the filename used to deliver the new mails madhurtanwani Linux - Software 2 09-23-2005 01:54 AM
Forward All Postfix messages and deliver them dlublink Linux - Networking 1 12-27-2004 11:34 PM
POSTFIX holding mail in qeue, won't deliver, connection refused bentman78 Linux - Software 2 10-27-2004 08:11 AM
SpamAssassin/Procmail to del blacklisted emails tomac Linux - General 1 07-11-2004 03:31 AM
Blank emails with no headers??!!!!! (postfix/spamassassin/procmail) birkinshawc Linux - Software 0 03-10-2004 09:59 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:37 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
Open Source Consulting | Domain Registration