Perm Block problem

Post Reply
baal81
Junior Member
Posts: 2
Joined: 17 Apr 2017, 17:52

Perm Block problem

Post 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
Sergio
Junior Member
Posts: 1715
Joined: 12 Dec 2006, 14:56

Re: Perm Block problem

Post by Sergio »

You should post the log line that you are trying to regex.
baal81
Junior Member
Posts: 2
Joined: 17 Apr 2017, 17:52

Re: Perm Block problem

Post 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>
Post Reply