commit d52cf19a6a987fcd70ba576b56910896f438c050 from: Martijn van Duren date: Sat Jul 25 07:26:02 2020 UTC If we're in error mode, make sure we still print the closing dot commit - cd6f9b0334b79f24cf4c6a3a098bc3aa11e6f477 commit + d52cf19a6a987fcd70ba576b56910896f438c050 blob - 890474469a6d8b245f380cfc663aaa34664b7ef0 blob + c69446d2cdf44413b855b1cf18da4fce4d22621e --- main.c +++ main.c @@ -208,8 +208,11 @@ dkim_dataline(struct osmtpd_ctx *ctx, const char *line char *linedup; size_t linelen; - if (message->err) + if (message->err) { + if (line[0] == '.' && line[1] =='\0') + osmtpd_filter_dataline(ctx, "."); return; + } linelen = strlen(line); if (fprintf(message->origf, "%s\n", line) < (int) linelen)