--- spamass-milter.cpp.ORIG 2006-06-17 11:06:30.000000000 +0200 +++ spamass-milter.cpp 2006-06-17 11:10:11.000000000 +0200 @@ -161,6 +161,7 @@ char *defaultuser; /* Username to send to spamc if there are multiple recipients */ char *defaultdomain; /* Domain to append if incoming address has none */ char *spamdhost; +char *rejecttext = NULL; /* If we reject a mail, then use this text */ struct networklist ignorenets; int spamc_argc; char **spamc_argv; @@ -193,6 +194,11 @@ openlog("spamass-milter", LOG_PID, LOG_MAIL); + + syslog(LOG_ERR, "argc: %d", argc); + for (int xy=0; xy= nn with an SMTP error.\n" " use -1 to reject any messages tagged by SA." << endl; + cout << " -R RejectText: using this Reject Text." << endl; cout << " -u defaultuser: pass the recipient's username to spamc.\n" " Uses 'defaultuser' if there are multiple recipients." << endl; cout << " -x: pass email address through alias and virtusertable expansion." << endl; @@ -307,6 +316,11 @@ exit(EX_USAGE); } + /* Set standard reject text */ + if (rejecttext == NULL) { + rejecttext = strdup ("Blocked by SpamAssassin"); + } + if (pidfilename) { unlink(pidfilename); @@ -452,7 +466,7 @@ if (do_reject) { debug(D_MISC, "Rejecting"); - smfi_setreply(ctx, "550", "5.7.1", "Blocked by SpamAssassin"); + smfi_setreply(ctx, "550", "5.7.1", rejecttext); if (flag_bucket)