Commit Graph

13 Commits

Author SHA1 Message Date
Jonathan Hall
44cafde7d4 More complete clamdcscan tests
* construct our own Qpsmtpd::Transaction object for testing, so we're sure
   to have a pristine state
 * Move some logic into a should_scan() sub, to help separate scan_all from
   is_not_multipart (since the multipart state of a message has nothing to
   do with any configuration parameters)
2014-09-16 13:48:19 -05:00
Jonathan Hall
9faa1e1903 Fix clamdscan configuration handling
- Honor configured 'false' values
 - Treat 'scan_all' consistently with other options--permitting 0, 1, 'yes', or 'no' as values
2014-09-16 12:03:49 -05:00
Matt Simerson
ebdb25a4bd extracted config*() from Qpsmtpd.pm -> Config.pm
* includes full test converage for Qpsmtpd::Config
    * folded t/config.t into t/qpsmtpd-config.t
* includes additional tests for Qpsmtpd
    * folded t/tempstuff into t/qpsmtpd.t
* PBP adjustments here and there
* other tweaks to handle test warnings
2014-09-15 23:41:31 -07:00
Matt Simerson
3353578d8b clamdscan: add support for remote TCP/IP clamd
previous version only worked when clamd was running on the same machine and had access to the spool file. This version also works with a remote clamd.
2013-12-20 00:22:09 -05:00
Matt Simerson
9c095ab278 is_naughty is a setter now too 2013-04-29 23:49:22 -04:00
Matt Simerson
cc6ab49474 raised default max msg size in clamdscan from 128k
added max_size on config, so it's likely to get noticed, since even 1M is probably too low for most sites. This should likely default to the same as databytes?
2013-04-29 22:06:47 -04:00
Matt Simerson
f988f0337c find plugins -type f -exec perltidy -b {} \; 2013-04-21 00:50:39 -04:00
Matt Simerson
57a2f68564 karma: general improvements
skip earlytalker checks for positive senders

limit negative karma senders to 1 concurrent connection (hosts_allow)
  added karma::hook_pre_connection, to make hosts_allow change possible

added karma score to log entries
2013-03-13 03:19:48 -04:00
Matt Simerson
bf7c663662 clamdscan: replace immunity check with naught test
immunity check was disabled by default, as it wasn't a good policy. OTOH, a naughty check is a sensible default, as we can skip processing on messages we already decided to reject.
2012-11-19 00:30:36 -05:00
Matt Simerson
96f49c98ff clamdscan: default is scan always, even authenticated 2012-11-14 17:27:54 -05:00
Matt Simerson
4d394e847b clamdscan: fix karma decrementer 2012-06-25 02:57:37 -04:00
Matt Simerson
01c994439b clamdscan: make sure headers exist before operating on them 2012-06-22 23:37:42 -04:00
Matt Simerson
b00f4c7793 initial import - based on my qpsmtpd fork
which will merge into the main branch fairly easily
2012-06-22 05:38:01 -04:00