For the Boston Preliminary Programming contest (BOSPRE), we set up an account where email to the account sends the email to a printer. That’s how teams get printouts of their draft code.
The basic setup is pretty straightforward, and is described here: http://www.seas.harvard.edu/hc3/bospre/managers/printer-account.html
The particular procmail incantation isn’t too bad either, and is described here: http://www.seas.harvard.edu/hc3/bospre/managers/email_printer.txt
However, it didn’t work. What I got in the logs and in the bounce message to the root account was
----- The following addresses had permanent fatal errors ----- "| exec /usr/bin/procmail" (reason: Service unavailable) (expanded from: <hidden_account@cs.wellesley.edu>) ----- Transcript of session follows ----- smrsh: "procmail" not available for sendmail programs (stat failed) 554 5.0.0 Service unavailable X-Actual-Recipient: X-Unix; | exec /usr/bin/procmail Action: failed Status: 5.5.0 Diagnostic-Code: X-Unix; 69 Last-Attempt-Date: Tue, 15 Oct 2013 15:40:55 -0400
Not particularly informative, but googling for
smrsh: "procmail" not available for sendmail programs (stat failed)
yielded some advice to put a symlink to /usr/bin/procmail into /etc/smrsh:
cd /etc/smrsh ln -s /usr/bin/procmail .
and that seemed to work fine!