Re: Postfix/Dovecot/Procmail/Maildir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/04/2005 11:02 PM, Kevin Fries wrote:
What I want is to configure this by the system, not user by user.

The following is from my /etc/procmailrc file (and it works with postfix, procmail, and dovecot)


With this setup all mails will go into ~/Maildir in maildir format.

Take a look at http://www.sm6rpz.se/mailserver.html for some more information about my setup (at the moment it is a bit dated, i.e. use the procmailscript below)

---- part of /etc/procmailrc begins ----
#
# $Id: procmailrc,v 1.6 2004/12/11 11:20:23 root Exp $
#

# ------------------------------------------------------------------------
#
# Run with the recipients privileges
#
DROPPRIVS=yes
# ------------------------------------------------------------------------

# ------------------------------------------------------------------------
#
# Set up so that sendmail/Postfix/etc. deliver to Maildir directories. The
# Maildir directory does not have to exist, it will be created if needed.
#
# Side note: The best thing is actually to add
#
# #define MAILSPOOLHOME "/Maildir/"
#
# to the config.h file of the procmail source code, and skip this very
# file altogether. But if you do not want to recompile procmail, the
# following will do the thing for you (although it may look ugly for those
# who prefer to recompile procmail.)
#

# To get maildir delivery
#
DEFAULT=$HOME/Maildir/

# Make sure that $HOME/Maildir/ exist!
#
:0
* ? /usr/bin/test -d $DEFAULT || /bin/mkdir $DEFAULT
{ }
:0 E
{
        # Bail out if directory could not be created
        EXITCODE=127
        HOST=bail.out
}
# ------------------------------------------------------------------------

# ------------------------------------------------------------------------
#
# Change to DEFAULT directory
#
MAILDIR=$HOME/Maildir
# ------------------------------------------------------------------------
---- part of /etc/procmailrc ends ----

Lars
--
Lars E. Pettersson <lars@xxxxxxxx>
http://www.sm6rpz.se/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux