X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/2eee4b0cd743865445a5023e8c10467cdc9b350e..bcf50f5c54870759e531a239400a47b64d22e554:/lib/sendmail.c diff --git a/lib/sendmail.c b/lib/sendmail.c index 12291b8..2dc82d0 100644 --- a/lib/sendmail.c +++ b/lib/sendmail.c @@ -271,11 +271,11 @@ int sendmail(const char *sender, ; if(w < 0) fatal(errno, "error calling waitpid"); - if(w) { - error(0, "%s -bs: %s", config->sendmail, wstat(w)); - if(!rc) - rc = -1; - } + if(w) + info("warning: %s -bs: %s", config->sendmail, wstat(w)); + /* Not fatal - we determine success/failure from the SMTP conversation. + * Some MTAs exit nonzero if you don't QUIT, which is just stupidly + * picky. */ } return rc; }