Skip to content

Commit 1827337

Browse files
committed
Add host not found
Added host not found block.
1 parent 4d40339 commit 1827337

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

regex.custom.pm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,13 @@ if (($config{LF_SMTPAUTH}) and ($globlogs{SMTPAUTH_LOG}{$lgfile}) and ($line =~
267267
if (&checkip($ip)) {return ("Email Spam: blocked using $4 ","$ip|$acc","Email Spam - Spoofing")} else {return}
268268
}
269269

270+
# Helo command rejected: Host not found
271+
if (($config{LF_SMTPAUTH}) and ($globlogs{SMTPAUTH_LOG}{$lgfile}) and ($line =~ /^\S+\s+\d+\s+\S+ \S+ postfix\/smtpd\[\d+\]: NOQUEUE: reject: RCPT from \S+\[(\S+)\]: 450 4\.7\.1 (\S+): (Helo command rejected: Host not found)/)) {
272+
$ip = $1; $acc = "";
273+
$ip =~ s/^::ffff://;
274+
if (&checkip($ip)) {return ("$3 ","$ip|$acc","Spoofing")} else {return}
275+
}
276+
270277
# If the matches in this file are not syntactically correct for perl then lfd
271278
# will fail with an error. You are responsible for the security of any regex
272279
# expressions you use. Remember that log file spoofing can exploit poorly

0 commit comments

Comments
 (0)