Angus March:
> I have a C program that calls Postfix's sendmail front-end using execv()
> (after calling fork()).  I also have a waitpid() on the process, which
> diligently checks the status value returned by sendmail. I tried to
> sabotage an e-mail by inserting a sender that is un-RFC822, and there
> were errors sent to the standard error, but the return status that

No, that was a WARNING.

    warning: -f option specified malformed sender

If there is an ERROR, the Postfix sendmail command will NOT enqueue
the message, and it will return a non-zero exit status code as
defined in /usr/include/sysexits.h.

        Wietse

Reply via email to