How does maildrop know where to deliver the email ?


Valued Member
Setup :

Virtual mailboxes with postfix + courier. MDA = maildrop.

maildrop is putting the emails of all the users into /var/vmail/Maildir instead of /var/vmail/domain.tld/email/

file structure :


postfix's :

maildrop  unix  -      n      n      -      -      pipe -v
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} -w 80

${recipient} will be changed to user@domain.tld

what configuration file do I need to set in order to have maildrop deliver mail to /var/vmail/user_name/ instead of /var/vmail/Maildir ?


Valued Member
It turns out there are two versions of maildrop, one that is shipped with courier and works ONLY with Courier MTA, and a standalone version that works with any MTA (postfix). Installing the standalone version resolved the problem.