LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-05-2007, 11:25 PM   #1
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Rep: Reputation: 0
Exclamation mbox and Maildir


Hello,

I am having a problem that is making me pull my hair out...

I have configured courier and postfix to do my email.

procmail seems to be saving all my email in mbox format as opposed to Maildir format, no matter what I try my mail always goes to /var/mail/$user

I have even re-compiled procmail after editing the config.h and setting up my maildir in there.

I am going insane because of this, please someone help me!
 
Old 04-06-2007, 12:09 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
You don't say what you've tried.

Have you set

home_mailbox = Maildir/

in postfix's main.cf?
 
Old 04-06-2007, 01:01 AM   #3
sectioneight
LQ Newbie
 
Registered: Oct 2006
Location: BC, Canada
Distribution: Debian, Redhat
Posts: 17

Original Poster
Rep: Reputation: 0
Sorry, I have done that.
I have recompiled procmail with Default Maildir set in config.h
I have set DEFAULT= and MAILDIR= to mailbox_command
I have setup /etc/procmailrc with DEFAULT and MAILDIR

My /etc/postfix/main.cf:
Code:
home_mailbox = Maildir/
mailbox_command = procmail -a "$EXTENSION"
myhostname = mydomain.com
mydestination = mydomain.com, localhost, localhost.localdomain
mynetworks = 127.0.0.0/8
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2emai$
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps$
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

Last edited by sectioneight; 04-06-2007 at 01:03 AM.
 
Old 04-06-2007, 09:41 AM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Etch/Lenny/Squeeze
Posts: 3,485

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Usually when you make configuration changes which are not being obeyed, either the config file is not used, (or the wrong copy) or the program is not being called at all. This is especially true for this kind of tried and proven programs.

Can you check that procmail is being called (log files etc), and that the correct .procmailrc (note the dot) file is being called (write an error in this file that will likely cause procmail to crash).

jlinkels
 
Old 04-06-2007, 07:26 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
Code:
home_mailbox = Maildir/
mailbox_command = procmail -a "$EXTENSION"
Because you're using procmail as the local delivery agent, it's pointless to define home_mailbox. The problem you're having is probably with your .procmailrc, which should look exactly like this (in its simplest form):
Code:
DEFAULT=$HOME/Maildir/
Note the trailing slash, which informs procmail that this is a maildir. Don't forget to create that directory beforehand:
Code:
mkdir ~/Maildir
Procmail will create the necessary subdirectories when mail is first delivered.

[Edit]Since you're using courier, it's probably better to use maildirmake to create your maildir.[/Edit]

Last edited by Berhanie; 04-06-2007 at 08:17 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
am I mbox or maildir? yogaboy Linux - Server 2 11-15-2006 11:53 AM
mbox to maildir help wadesmart Ubuntu 5 10-31-2006 01:21 PM
What is Maildir and mbox vikasumit Linux - Software 11 06-03-2006 12:48 AM
maildir and mbox deflin39 Linux - Newbie 1 01-07-2004 10:08 PM
Convert Maildir to Mbox leonardox Linux - Software 2 09-26-2003 11:23 PM


All times are GMT -5. The time now is 05:37 PM.

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