sagator(1)
πΈ sagator(1) β the sgfilter era πΈ
ok so bestie, welcome to sagator, section 1 of the manual. this page is all about sgfilter, and honestly? it's giving gatekeeper of your inbox. let's get into it π
β¨ NAME β¨
sgfilter β scan something for viruses/spams over sagator's filterd() service π¦
β¨ SYNOPSIS β¨
sgfilter [--help] [--host hostname] [--port number] [--codes|-c]
[--non-safe|-x] [filename]
β¨ DESCRIPTION β¨
okay so this command? it's a part of sagator. its whole job is scanning emails for viruses/spams, no cap π¦ π«
it's usable, for example, for courier smtpd β but bestie it can also be used for procmail or other configurations. versatile queen π
β¨ OPTIONS β¨
--helpβ display a short help text. that's it, that's the vibe π--hosthostname β define a hostname of sagator'sfilterd()service π--portnumber β define a port of sagator'sfilterd()service π--codes,-cβ just check if the message is spam or not. set exit code to1if message is a spam,0if not a spam or processing failure. lowkey the "just tell me yes or no" mode π--non-safe,-xβ turn off "safe fallback" error recovery, which passes through if an error occurs. non safe processing returns an error code described in the "RETURN CODES" section. this one is the spicy one, handle with care π- filename β name of the file to open. if it is not defined, standard input is used π
β¨ RETURN CODES β¨
like, the receipts of how it went:
0β scanned email is clean (no virus and no spam has been found) β¨ slay, we love a clean inbox1β scanned email is infected (virus or spam has been detected). just error codes (--codes) option must be turned on to return this status. it's giving contaminated π¦64β an internal error occurred during scanning. non safe processing must be turned on to return this status π65β an error with communication tosgfilterd()service (service is not running?). non safe processing must be turned on to return this status π
heads up bestie: codes64and65only show up when non safe processing is on. otherwise it's the safe fallback doing its thing π«Ά
β¨ EXAMPLES β¨
an procmailrc filter:
# filter through sagator
:0fw
|sgfilter
# move identified emails to quarantine
:0
* ^X-Sagator-Status: .
$HOME/mail/quarantine
an courier filter:
xfilter "/usr/bin/sgfilter --host localhost --port 27"
β¨ AUTHOR β¨
Jan ONDREJ (SAL) <ondrejj (at) salstar.sk> π
β¨ SEE ALSO β¨
sgscan(1), sagator(8), sqback(8) π
and that's the whole page, bestie π this was version 0.1, dated December 20, 2004 β a certified vintage icon from the sagator era. go scan something. periodt πβ¨
π¦ where this page comes from
- epel 9: sagator-core 2.0.3-0.beta3.el9 Β· GPLv2+
- fedora 43: sagator-core 2.0.3-0.beta3.fc43.7 Β· GPL-2.0-or-later
- fedora 44: sagator-core 2.0.3-0.beta3.fc44.8 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms