sendmail ignores .procmailrc

Even with the local_procmail FEATURE correctly configured, sendmail will not honor $HOME/.procmailrc files by default if $HOME is group-writable or world-writable.

Example (group-writable $HOME):
# sendmail -v -Am -d11 user < /dev/null
progmail... forward: /home/user/.forward.hostname+: Group writable directory
progmail... forward: /home/user/.forward+: Group writable directory
progmail... forward: /home/user/.forward.hostname: Group writable directory
progmail... forward: /home/user/.forward: Group writable directory
openmailer: procmail -Y -a  -d user
progmail... Connecting to local...
openmailer: MCI@0xfb980: flags=0,
        errno=0, herrno=0, exitstat=0, state=2, pid=4701,
        maxsize=0, phase=(null), mailer=local,
        status=(null), rstatus=(null),
        host=(null), lastuse=Wed Dec 31 18:00:00 1969

progmail... Sent

Example (not group-writable or world-writable $HOME):
# sendmail -v -Am -d11 user < /dev/null
openmailer: procmail -Y -a  -d user
progmail... Connecting to local...
openmailer: MCI@0xfb980: flags=0,
        errno=0, herrno=0, exitstat=0, state=2, pid=5027,
        maxsize=0, phase=(null), mailer=local,
        status=(null), rstatus=(null),
        host=(null), lastuse=Wed Dec 31 18:00:00 1969

progmail... Sent

Although it is possible to use DontBlameSendmail configuration parameters to relax file and directory permission checks, this should be avoided if possible.

Back to brandonhutchinson.com.
Last modified: 01/12/2006