X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=mts%2Fsendmail%2Fsendmail.c;h=8273f14f927e2e8d73b2f0d6a2e6fe9da7ba1f04;hp=1ff41387ad26b309f710bd65904012cd45998718;hb=cfc525a9b85207225cb4071d1d3b01e8d1db2424;hpb=910f3846bb30636fe25bdc6e06e72d50c6779bd9 diff --git a/mts/sendmail/sendmail.c b/mts/sendmail/sendmail.c index 1ff4138..8273f14 100644 --- a/mts/sendmail/sendmail.c +++ b/mts/sendmail/sendmail.c @@ -9,6 +9,7 @@ #include #include #include +#include "h/signals.h" /* for SIGNAL() */ #ifdef MPOP #include #endif @@ -98,7 +99,7 @@ static RETSIGTYPE alrmser (int); int sm_init (char *client, char *server, int watch, int verbose, - int debug, int onex, int queued) + int debug, int onex, int queued, int sasl, char *saslmech, char *user) { int i, result, vecp; int pdi[2], pdo[2]; @@ -112,11 +113,16 @@ sm_init (char *client, char *server, int watch, int verbose, if (sm_rfp != NULL && sm_wfp != NULL) return RP_OK; - if (client == NULL || *client == '\0') + if (client == NULL || *client == '\0') { if (clientname) client = clientname; else client = LocalName(); /* no clientname -> LocalName */ + } + + if (sasl) + return sm_ierror("SASL authentication not supported with the " + "Sendmail MTA"); #ifdef ZMAILER if (client == NULL || *client == '\0')