diff -urN ../exim-4.92.orig/src/spam.c ./src/spam.c --- ../exim-4.92.orig/src/spam.c 2019-01-30 15:59:52.000000000 +0200 +++ ./src/spam.c 2019-05-25 22:09:52.190187000 +0300 @@ -214,6 +214,9 @@ uschar *spamd_address_work; spamd_address_container * sd; +int try_count = 3; +next_attempt: + /* stop compiler warning */ result = 0; @@ -519,6 +522,11 @@ /* reading done */ (void)close(spamd_cctx.sock); +if (spamd_buffer[0] == 0) { + try_count--; + if (try_count > 0) goto next_attempt; +} + if (sd->is_rspamd) { /* rspamd variant of reply */ int r;