The posterity-deliver program

posterity-deliver /path/to/maildir

posterity-deliver delivers a message read from standard input to the given maildir. It converts line endings to carriage return + line feed. It exits with status 111 to indicate temporary failure if the maildir has the sticky bit set.