Hello there
How to implement to stop process any rules after first rule triggered?
For example - when AV rule detect virus in letter - do not process next rules like spam detect.
Now our rules look like (see att).
Logs are:
Aug 12:57:06 antispam postfix/smtpd[321288]: connect from unknown[192.168.1.16]
Aug 12:57:26 antispam postfix/smtpd[321288]: D3E6018109E: client=unknown[192.168.1.16]
Aug 12:57:48 antispam postfix/cleanup[321295]: D3E6018109E: message-id=<>
Aug 12:57:48 antispam postfix/qmgr[2439]: D3E6018109E: from=<mail@mail.com>, size=496, nrcpt=1 (queue active)
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: MIME::Body::File->open /tmp/.proxdump_177349_18118864DB4C1C97B63/msg-177349-27.txt: Operation not permitted at /usr/share/perl5/MIME/Body.pm line 435.
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: new mail message-id=
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: Subject: test AV #012
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: virus detected: EICAR-Test-File (custom)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: SA score=4/5 time=5.056 bayes=undefined autolearn=no autolearn_force=no hits=ALL_TRUSTED(-1),KAM_DMARC_STATUS(0.01),KAM_LAZY_DOMAIN_SECURITY(1),MISSING_DATE(1.396),MISSING_FROM(1),MISSING_HEADERS(1.207),MISSING_MID(0.14),SPF_NONE(1)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: notify <admin@domain.com> (rule: Block Viruses, 0EE48181208)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: block mail to <user@domain.com> (rule: Block Viruses)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: processing time: 5.486 seconds (5.056, 0, 0.271)
Aug 12:57:54 antispam postfix/lmtp[321297]: D3E6018109E: to=<user@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=33, delays=27/0.03/0.08/5.5, dsn=2.7.0, status=sent (250 2.7.0 BLOCKED (18118864DB4C1C97B63))
Aug 12:57:54 antispam postfix/qmgr[2439]: D3E6018109E: removed
Aug 12:57:55 antispam postfix/smtpd[321288]: disconnect from unknown[192.168.1.16] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Is it possible to do this?
Regards
How to implement to stop process any rules after first rule triggered?
For example - when AV rule detect virus in letter - do not process next rules like spam detect.
Now our rules look like (see att).
Logs are:
Aug 12:57:06 antispam postfix/smtpd[321288]: connect from unknown[192.168.1.16]
Aug 12:57:26 antispam postfix/smtpd[321288]: D3E6018109E: client=unknown[192.168.1.16]
Aug 12:57:48 antispam postfix/cleanup[321295]: D3E6018109E: message-id=<>
Aug 12:57:48 antispam postfix/qmgr[2439]: D3E6018109E: from=<mail@mail.com>, size=496, nrcpt=1 (queue active)
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: MIME::Body::File->open /tmp/.proxdump_177349_18118864DB4C1C97B63/msg-177349-27.txt: Operation not permitted at /usr/share/perl5/MIME/Body.pm line 435.
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: new mail message-id=
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: Subject: test AV #012
Aug 12:57:48 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: virus detected: EICAR-Test-File (custom)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: SA score=4/5 time=5.056 bayes=undefined autolearn=no autolearn_force=no hits=ALL_TRUSTED(-1),KAM_DMARC_STATUS(0.01),KAM_LAZY_DOMAIN_SECURITY(1),MISSING_DATE(1.396),MISSING_FROM(1),MISSING_HEADERS(1.207),MISSING_MID(0.14),SPF_NONE(1)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: notify <admin@domain.com> (rule: Block Viruses, 0EE48181208)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: block mail to <user@domain.com> (rule: Block Viruses)
Aug 12:57:54 antispam pmg-smtp-filter[177349]: 18118864DB4C1C97B63: processing time: 5.486 seconds (5.056, 0, 0.271)
Aug 12:57:54 antispam postfix/lmtp[321297]: D3E6018109E: to=<user@domain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=33, delays=27/0.03/0.08/5.5, dsn=2.7.0, status=sent (250 2.7.0 BLOCKED (18118864DB4C1C97B63))
Aug 12:57:54 antispam postfix/qmgr[2439]: D3E6018109E: removed
Aug 12:57:55 antispam postfix/smtpd[321288]: disconnect from unknown[192.168.1.16] helo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Is it possible to do this?
Regards