Thanks.
Butch
> I need some help to determine what is causing this error:
>
> Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: SYSERR(root):
...
> Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: to="| cat /dev/null",
> ctladdr=<tra...@tbcprint.com> (1/0), delay=00:00:05, xdelay=00:00:00,
> mailer=prog, pri=32585, dsn=2.0.0, stat=Sent
>
to="| cat /dev/null"
this seems very wrong. "cat /dev/null" ends immediatly and sendmail ends
up trying to write to a already ended program (and a closed pipe).
I don't know what you want to acheive (maybe ">" was ignored), but
usually you can write directly "/dev/null" as an alias destination in
/etc/mail/aliases.
I'm not sure about a .forward though.
> Thanks.
>
> Butch
Thank you for spotting the error.
The alias destination was missing a ">". The correct alias destination
is "| cat > /dev/null". Making that change eliminated the errors.
Butch
> > to="| cat /dev/null"
> >
> > this seems very wrong. "cat /dev/null" ends immediatly and sendmail
> > ends up trying to write to a already ended program (and a closed
> > pipe).
> >
> > I don't know what you want to acheive (maybe ">" was ignored), but
> > usually you can write directly "/dev/null" as an alias destination in
> > /etc/mail/aliases.
> >
> > I'm not sure about a .forward though.
>
> Thank you for spotting the error.
>
> The alias destination was missing a ">". The correct alias destination
> is "| cat > /dev/null". Making that change eliminated the errors.
>
> Butch
I think that you can point alias to /dev/null without pipe and cat
also.
( And I think that sendmail actually even does not write to /dev/null
--- this is lot cheaper ... )
/ Kari Hurtta
deliver.c:
/*
** Special case /dev/null. This allows us to restrict file
** delivery to regular files only.
*/
if (sm_path_isdevnull(filename))
return EX_OK;