4 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] any chance maildrop c...
FromSent OnAttachments
Louis-David MitterrandDec 29, 2005 10:23 am 
Sam VarshavchikDec 29, 2005 3:45 pm 
Tony EarnshawDec 29, 2005 5:14 pm 
Truong Tan SonDec 29, 2005 7:17 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] any chance maildrop could auto-create maildirs?Actions...
From:Truong Tan Son (son@fcv.fujitsu.com)
Date:Dec 29, 2005 7:17:40 pm
List:net.sourceforge.lists.courier-maildrop

Louis-David Mitterrand wrote:

I'm considering moving my procmail recipes to maildrop, but discovered that it doesn't create maildirs on-the-fly as procmail does.

Maildrop delivers message by script /etc/maildroprc, maildrop uses $HOME of user
that hands permission to deliver messages.

By this way, that request to get correctly $HOME/$USER/Maildir before indicating
where to place messages to mailboxes.

Manually make Maildir for user or by script.

example to deliver mail for USE@domain.com -->
/home/vmail/domain.com/USER1/Maildir/

/etc/maildroprc

VHOME="/home/vmail/domain.com" logfile "/var/log/maildrop.log"

#-----For Postfix MTA

#-----/etc/postfix/master.cf has two lines:

# maildrop unix - n n - - pipe

# flags=DRhu user=vmail:vmail argv=/usr/local/bin/maildrop -d vmail
${recipient} ${nexthop} ${sender}

#

DOMAIN=@$2

RECIPIENT=$1

SENDER=$3

DOMA_LEN=length($DOMAIN)

STR_LEN=length($RECIPIENT)

USER_LEN=$STR_LEN - $DOMA_LEN

USER=substr($RECIPIENT,0,$USER_LEN)

to "| $DELIVERQUOTA $VHOME/$USER/Maildir"

Refer Docs: http://www.courier-mta.org/maildropfilter.html and