HOME LINKS SAL PUBLIC SOFTWARE SEARCH MADE UP

SAGATOR



sgfilterd()
  A service to filter data sent by sgfilter command.
  
  This service can be used to filter an email through sagator.
  Some headers should be added to filtered email. A client for this
  service is the sgfilter script. See man sgfilter for more information.
  
  Usage: sgfilterd(scanners,host='127.0.0.1',port=27,prefork=2)
  
  Where: scanners is an array of scanners (see README.scanners for more info)
         host is a hostname to bind
         port is a tcp port to bind
         prefork is a number, which defines preforked process count.
           Set this parameter to actual processor count + 1
           or leave it's default (2).
  
  Example: sgfilterd(SCANNERS)
  
  Input protocol description:
    MAIL FROM: sender_email
    RCPT TO: recipient_email
    DATA length
    ...
  
  Where: sender_email is sender's email address
         recipient_email is recipient's email address. You can send more
           RCPT TO: lines.
         length is whole data length in bytes (including control characters,
           as newlines, ...)
  
  Output protocol description:
    XXX L.LL VIRNAME
    ...
    ^D
    
  Where: XXX is three digit status, one from these:
             250 - clean
             251 - not clean, but sending forced
             451 - an internal error occured during scanning
             550 - reject
             551 - drop
         L.LL is an floating number of virus/spam level status
         VIRNAME is an short description (like virus name, 'SPAM' string
             or other one line short description
         ... is modified email message (if some scanners are defined
             to modify scanned message)
         ^D is an EOF character, after message the communication is closed
  
  New in version 0.7.0.