sagator(1)

πŸ“¦ version 2.0.3, in epel 9, fedora 43, fedora 44

🌸 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 πŸŽ€
  • --host hostname β€” define a hostname of sagator's filterd() service 🏠
  • --port number β€” define a port of sagator's filterd() service πŸ”Œ
  • --codes, -c β€” just check if the message is spam or not. set exit code to 1 if message is a spam, 0 if 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 inbox
  • 1 β€” 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 to sgfilterd() service (service is not running?). non safe processing must be turned on to return this status πŸ™ˆ
heads up bestie: codes 64 and 65 only 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