RAZOR-CHECK(1p) | User Contributed Perl Documentation | RAZOR-CHECK(1p) |
"razor-check" - Razor Filtering Agent
razor-check [options] [ mail1 [ mail2 .. ] ] $ cat mbox | razor-check $ razor-check ./mbox $ razor-check -d mbox mail.1 mail.2 mail.3
"razor-check" checks a mail against the distributed Razor Catalogue by communicating with a Razor Catalogue Server. It should be invoked before the mail is delivered or processed by a human. "razor-check" terminates with exit value 0 if the signature for the mail is catalogued on the server (spam) or 1 if the mail is not catalogued by the server (not a spam). "razor-check" should be invoked against every incoming mail by mail processors (like procmail) or MTAs (like sendmail). An alternate method would be to call "razor-check" from cron, at regular intervals, to identify and mark spam in queued mailboxes.
If "razor-check" is passed more than one mail, it will check each against the database, printing out the serial number of every mail considered to be spam. "razor-check" supports mbox-formatted files with 1 or more mails in them as well as files containing a single RFC 822 (non-mbox) mail. More than one file may be present on the command line, can be either a non-mbox or mbox in any order. However, more than one non-mbox mail cannot be read from stdin.
"razor-check" is usually run by piping the contents of the mail to it, or by providing the name of the file that contains the mail message to be checked as the last argument. "razor-check" takes the following arguments:
"razor-report -e 1 -S a8a3d545adb73f9733675571ffeaf10cba87745b"
"razor-check" is usually invoked from procmail(1). Here are some common ways of using it with procmail:
:0 Wc | razor-check :0 Waf | formail -i "Subject: Razor Warning: SPAM/UBE/UCE"
:0 Wc | razor-check :0 Waf | formail -A "X-Razor2-Warning: SPAM."
:0 Wc | razor-check :0 Wa /home/foo/Mail/razor-caught
Vipul Ved Prakash <mail@vipul.net>, and Chad Norwood <chad@samo.org>
razor-agents(1), razor-agent.conf(5), razor-admin(1), razor-report(1), razor-revoke(1), razor-whitelist(5)
This is free software, distributed under the Artistic License 2.0.
2018-11-01 | perl v5.28.0 |