Skip to content

Commit 7a75f78

Browse files
committed
Add failed pop3 login
Added failed pop3 login not detected in default RegexMain.pm.
1 parent 1827337 commit 7a75f78

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

regex.custom.pm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ if (($config{LF_SMTPAUTH}) and ($globlogs{SMTPAUTH_LOG}{$lgfile}) and ($line =~
274274
if (&checkip($ip)) {return ("$3 ","$ip|$acc","Spoofing")} else {return}
275275
}
276276

277+
#dovecot
278+
if (($config{LF_POP3D}) and ($globlogs{POP3D_LOG}{$lgfile}) and ($line =~ /^(\S+|\S+\s+\d+\s+\S+) \S+ dovecot: pop3-login: Disconnected (\s*\(no auth attempts( in \d+ secs)?\))?: (user=(<\S*>)?, )rip=(\S+),/)) {
279+
$ip = $6;
280+
$acc = $4;
281+
$ip =~ s/^::ffff://;
282+
$acc =~ s/^<|>$//g;
283+
if (checkip(\$ip)) {return ("Failed POP3 login from","$ip|$acc","pop3d")} else {return}
284+
}
285+
277286
# If the matches in this file are not syntactically correct for perl then lfd
278287
# will fail with an error. You are responsible for the security of any regex
279288
# expressions you use. Remember that log file spoofing can exploit poorly

0 commit comments

Comments
 (0)