Page 1 of 1

Perm Block problem

Posted: 17 Apr 2017, 18:28
by baal81
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

Re: Perm Block problem

Posted: 17 Apr 2017, 20:19
by Sergio
You should post the log line that you are trying to regex.

Re: Perm Block problem

Posted: 18 Apr 2017, 14:40
by baal81
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>