can anyone help me, i want block it for max 24h not perm.. but it even block it perm
# test for relay
if (($globlogs{CUSTOM2_LOG}{$lgfile}) and ($line =~ /reject(.*)\[(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\](.*)\<(\S+)\> (.*)\>/)) {
return ("Failed Relay_check from IP: $2 to: $4",$2,"LF_SMTPAUTH","2","25,143,110,465,993,995","3600");
}
big thx to all my head smokes xd
Perm Block problem
Re: Perm Block problem
You should post the log line that you are trying to regex.
Re: Perm Block problem
this one ill try to filter:
Apr 17 18:23:51 odin postfix/smtpd[30161]: NOQUEUE: reject: RCPT from pws3.mxtoolbox.com[64.20.227.134]: 454 4.7.1 <test@example.com>: Relay access denied; from=<supertool@mxtoolbox.com> to=<test@example.com> proto=ESMTP helo=<PWS3.mxtoolbox.com>
Apr 17 18:23:51 odin postfix/smtpd[30161]: NOQUEUE: reject: RCPT from pws3.mxtoolbox.com[64.20.227.134]: 454 4.7.1 <test@example.com>: Relay access denied; from=<supertool@mxtoolbox.com> to=<test@example.com> proto=ESMTP helo=<PWS3.mxtoolbox.com>