summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/smtppass.c1
-rw-r--r--src/proxsmtpd.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/common/smtppass.c b/common/smtppass.c
index 0a85f4e..f9c4328 100644
--- a/common/smtppass.c
+++ b/common/smtppass.c
@@ -906,6 +906,7 @@ static int data_passthru(spctx_t* ctx)
}
+ sp_add_log(ctx, "status=", "SKIPPED");
sp_messagex(ctx, LOG_DEBUG, "skipped %d data bytes", count);
return count;
}
diff --git a/src/proxsmtpd.c b/src/proxsmtpd.c
index 9402641..ed994cd 100644
--- a/src/proxsmtpd.c
+++ b/src/proxsmtpd.c
@@ -229,6 +229,7 @@ int cb_check_data(spctx_t* ctx)
if(g_pxstate.filter_type == FILTER_REJECT)
{
+ sp_add_log(ctx, "status=", "REJECTED");
if(sp_fail_data(ctx, g_pxstate.reject) < 0)
return -1; /* Message already printed */
return 0;