Преглед на файлове

Added fix for Issue #7 as well

Vijay Sarvepalli преди 2 години
родител
ревизия
fe9f9611d3
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      src/milterfrom.c

+ 4 - 1
src/milterfrom.c

@@ -112,7 +112,10 @@ sfsistat mlfi_envfrom(SMFICTX *ctx, char **envfrom)
 	if (len == 0) {
 		/* A 0 length from address means a "null reverse-path", which is valid per
 		 * RFC5321. */
-		return SMFIS_CONTINUE;
+		const char *author = smfi_getsymval(ctx, "{auth_authen}");
+		const char *info = smfi_getsymval(ctx,"_");
+		syslog(LOG_INFO,"Envelope sender is null for authenticated user %s from %s",author,info);
+		return SMFIS_ACCEPT;
 	}
 	fromcp = strndup(from, len);
 	if (fromcp == NULL) {