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