LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-02-2005, 10:12 AM   #1
eisman
Member
 
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!


Hi,

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?

Thanks.

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

Rep: Reputation: 0
Maildirs

You should add
Code:
home_mailbox = Maildir/
to your /etc/postfix/main.cf 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
Code:
MAIL=~/Maildir
and
Code:
export MAIL
to /etc/profile
- Changed /etc/pam.d/login and /etc/pam.d/ssh as follows:
Code:
session optional pam_mail.so standard dir = ~/Maildir
- Changed /etc/login.defs:
Code:
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):
Code:
set mbox_type=maildir
set folder=~/Maildir/
set spoolfile=~/Maildir/
Hope that helps.
 
  


Reply



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 12:54 AM
Forward All Postfix messages and deliver them dlublink Linux - Networking 1 12-27-2004 10:34 PM
POSTFIX holding mail in qeue, won't deliver, connection refused bentman78 Linux - Software 2 10-27-2004 07:11 AM
SpamAssassin/Procmail to del blacklisted emails tomac Linux - General 1 07-11-2004 02:31 AM
Blank emails with no headers??!!!!! (postfix/spamassassin/procmail) birkinshawc Linux - Software 0 03-10-2004 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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