Any/Every command you pipe to from the aliases file requires a link in
the smrsh directory if sendmail has smrsh enabled. Redhat 6.2 does in
fact have smrsh enabled in sendmail 8.9.3 by default. I can't remember
if the rpm install for 1.94.5 puts links in /etc/smrsh automatically
for bulk_mailer, but it does put one there for wrapper. I also add one
for procmail, but I use procmail globally as well as individually.
To answer your question specifically though, all you need to do is put
a link to formail in /etc/smrsh. You might as well add one for procmail
while you are at it.
Dan Liston
Steve Magee wrote:
>
> I inherited the following...
>
> RH 5.2
> Majordomo 1-94.4
> Sendmail 8.8.7
>
> When archiving the postings, we used formail to retain only the From:,
> Subject:
> and the Date: from the e-mail and then archived the note.
>
> The following is taking from /etc/aliases and works...
>
> mail-list-archive: "|/usr/bin/formail -k -X From: -X Subject: -X Date:
> |/home
> /majordomo/majordomo-1.94.4/wrapper archive2.pl -f /home/majordomo
> /majordomo-1.94.4/lists/mail-list.archive/mail-list -Y -a"
>
> Now, I'm upgrading to..
>
> RH 6.2
> Majordomo 1-94.5
> Sendmail 8.9.3
>
> The above entry in /etc/aliases file no longer works. I get...
>
> sh: cannot use | in command
> 554 "mail-list-archive: (entry above inserted here)"
> ... Service unavailable
>
> If I remove the "/usr/bin/formail (options)" and just go with
> "|/majordomo...wrapper archive2.pl...", the e-mail is archived
> without the formail function.
>
> Any help is appreciated.
> Steve Magee
References:
|
|