I am happy to report that by changing the ownership of the procmailrc, I
can now run list mail through procmail, then through the demime and then
through majordomo _AND_ keep the secure shell configured in sendmail...
Demime does a great job of stripping html, signatures from online services,
etc. without all the bounces caused by global taboos.
Many thanks to Don Liston, Mike Oliver, Todd Lyons and Will Sadler of this
list and Nick Simicich, author of Demime for their help in getting it up
At 05:19 PM Monday, 1/29/2001, Mike Oliver wrote -=>
>Hi Ed, Dan --
> > At 12:27 AM Sunday, 1/28/2001, D. Liston wrote -=>
> > >I think I know what the problem is.
> > >
> > >Grep your /var/spool/mail/mail file for the following text;
> > >X-ApprovalRequired: true
> > >
> > >If the above header line has been added to messages, your filter is
> > >It also means your filter has a typo. This,
> > >* ^TO_test@wrenkasky\.com
> > >should be this;
> > >* !^TO_test@wrenkasky\.com
>That's not an error, because that recipe is defined with the 'clone'
>(aka 'copy') flag. Even if that recipe delivers mail to Ed's mailbox,
>it won't terminate processing.
> > I tried using a default procmailrc ie: not specifying a file in the alias
> > just to see if that would change the behavior as I was getting an error
> > message in the maillog about the kind of file the test filer was.
>I'm sufficiently bored that I went and looked at the procmail source.
>It turns out that it won't read a procmailrc file unless the file is
>owned by the same UID as the procmail process. This is the problem;
>procmail is running as user "mail" but the file is owned by
>"majordomo". Do 'chown mail /usr/local/majordomo/filter/test' and that
>should let you move on to the next problem, which will be the problem
>that you found when you reverted to putting the demime command into the
>The problem there is clear from the sendmail logs:
> > Jan 27 23:16:35 yoda demime: One argument required - the relay to
> > address.
>Demime wants a command line argument, even if (as in this case) you're
>using it as a filter and want it to write to stdout. You have to give
>it the special argument "-" to tell it to write to stdout.
>Change the last line of the procmailrc to:
> |/usr/local/majordomo/demime - | /usr/local/majordomo/wrapper resend -l
> test test-list,nobody
>and you should be in business.
>Good luck, Mike.