Michael A Mayo writes:
When courier-esmtpd invokes maildrop, mail is sent to the correct place (~/.maildir).
No, it doesn't. Not in the default configuration of Courier.
The default mailbox for Courier has always been $HOME/Maildir.
But when I invoke "maildrop -d user <mail.txt" on the command line, mail.txt is sent to ~/Maildir instead.
The version of maildrop that's part of the Courier tree is custom-tailored for Courier, and is meant to be invoked by Courier directly. As such, when Courier invokes its version of maildrop, mailbox details are communicated between Courier and maildrop directly, via environment variables. So, if you modified Courier's configuration from its default settings (such as changing the default mailbox location to $HOME/.maildir), that's how maildrop knows about it, when Courier invokes it.
If you invoke maildrop directly, of course maildrop would know nothing about any of this, and maildrop will fall back to its normal, default, configuration.
pgpP9ovOsFtkD.pgp
Description: PGP signature
