DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th July 2009
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Question Maildir with Postfix/Dovecot/procmail/mutt

Ok, I have probably screwed up with the mail on my 7.2-stable.

In main.cf:
home_mailbox = Maildir/

dovecot.conf:
mail_location = maildir:/var/mail/%u/Maildir/

muttrc:
set mbox_type=Maildir
set folder = /var/mail/person/Maildir
set mbox = /var/mail/person/Maildir
set spoolfile = /var/mail/person/Maildir

The problem is that as soon as I send a mail to "person" the /var/mail/person file is created where I suppose it should be a folder containing a Maildir/{cur, new, tmp} structure?

To eliminate one problem I renamed .procmailrc but that might have made it worse?

As you see I'm not really sure of what I'm doing.
Reply With Quote
  #2   (View Single Post)  
Old 8th July 2009
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,254
Thanked 182 Times in 149 Posts
Default

AFAIK Sendmail, which is the default on FreeBSD, does not support the Maildir format natively.It delivers mail to "/var/mail/person" files. So modifying sendmail's "main.cf" won't help you much. See http://en.wikipedia.org/wiki/Maildir

It has been ages since I used "procmail", but procmail transfers mail from "/var/mail/person/" to whatever you specify.

The big picture is as follows:
  • Sendmail is the MTA, which receives mail and stores it in "/var/mail/person" files.
  • Procmail is a delivery agent which distributes the mail in these "/var/mail/person" files.
  • Dovecot is an IMAP server which allows users to log in to your box and read their mail.

My guess is that you use procmail to distribute the mail in "var/mail/person" files to the
"/var/mail/%u/Maildir" files so Dovecot can serve them via IMAP to your users.

Isn't there a utility or script to create Maildirs?
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 8th July 2009
bsdperson bsdperson is offline
Port Guard
 
Join Date: May 2008
Posts: 35
Thanked 0 Times in 0 Posts
Default

Sendmail? I use Postfix. So basically what I have now is postfix + dovecot + mutt. As far as I understand (which isn't alot) the trick is to teach postfix about maildir and then have dovecot and mutt pick it up from the same place. Any thoughts?
Reply With Quote
  #4   (View Single Post)  
Old 8th July 2009
ohauer ohauer is offline
Port Guard
 
Join Date: May 2008
Location: germany
Posts: 32
Thanked 2 Times in 2 Posts
Default

The creation of mbox / mdir is configured in main.cf with the parameter mail_spool_directory.
To configure mdir a / at the end of the path is required (same as for home_mailbox)

From main.cf
# DELIVERY TO MAILBOX
#
# The home_mailbox parameter specifies the optional pathname of a
# mailbox file relative to a user's home directory. The default
# mailbox file is /var/spool/mail/user or /var/mail/user. Specify
# "Maildir/" for qmail-style delivery (the / is required).
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/

# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#

mail_spool_directory = /var/mail/ #mdir format
#mail_spool_directory = /var/mail #mbox format
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix, Dovecot, spamassassin, mysql and maildrop hamba Guides 3 20th May 2010 06:40 PM
help with mutt cssgalactic FreeBSD General 3 2nd August 2008 07:25 AM
[DOVECOT] How to choose the ports? Sunsawe FreeBSD Ports and Packages 2 7th July 2008 02:41 PM
Mutt not sending email cssgalactic FreeBSD General 4 3rd July 2008 09:54 PM
postfix + dovecot LDA: bounce, user unknown cbrace FreeBSD General 1 9th May 2008 05:19 PM


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick