From 893eba322902f1aeff670b64aa8dad6d59badb81 Mon Sep 17 00:00:00 2001 From: Daniel Lysfjord Date: Tue, 9 Apr 2024 17:42:03 +0200 Subject: [PATCH] Change no hostname to a hostile action, there has been too many of them, and I have no idea what they are trying to do:) --- lib/exim_parser.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/exim_parser.pm b/lib/exim_parser.pm index bbed246..4b07ef7 100644 --- a/lib/exim_parser.pm +++ b/lib/exim_parser.pm @@ -99,7 +99,11 @@ sub parser { } elsif($string =~ m/ no host name found for IP address /) { $_ = $string; $reply = 'No hostname'; - $hostile = 0; + $hostile = 1; + PARSE: + m/\ ($re_host)/gcix && do { + $host = $1; + }; } elsif($string =~ m/unexpected disconnection while reading SMTP command from/) { $_ = $string; $reply = 'SMTP error, disconnected';