Matt Simerson
9c1e62371b
added new t/config directory, with developer tests
...
run when $ENV{QPSMTPD_DEVELOPER} is set
plugins file is same as in config.sample, but with more stuff enabled
2012-06-04 03:34:48 -04:00
Matt Simerson
980c2a28bb
comment out vpopmail/checkpasswd plugins in config
2012-06-04 03:34:48 -04:00
Matt Simerson
85982d00f8
restore validate_password test
...
not sure how/why that got removed, but it wasn't intentional
2012-06-04 03:34:47 -04:00
Matt Simerson
99c0aa8abd
new karma plugin
2012-06-04 03:34:47 -04:00
Matt Simerson
0826b86dde
fix typo
2012-06-04 03:34:47 -04:00
Matt Simerson
7713333d31
p0f: POD improvements
2012-06-04 03:34:47 -04:00
Matt Simerson
9e70da4951
auth: adding tests (should have attached with a previous commit)
2012-06-04 03:34:47 -04:00
Matt Simerson
c61fb67e9b
checkpassword: remove newlines that appeared
2012-06-04 03:34:47 -04:00
Matt Simerson
55b5f34365
auth_vpopmail_sql test, eval 'use DBI' before testing
2012-06-04 03:34:47 -04:00
Matt Simerson
1a1dcc3e53
auth: eval 'use' so plugins can be enabled by default
...
and tested.
2012-06-04 03:34:47 -04:00
Matt Simerson
5a8a9be26c
make SPF level 2 a little more lenient
2012-06-04 03:34:47 -04:00
Matt Simerson
2910702a4d
relay: update MANIFEST
2012-06-04 03:34:47 -04:00
Matt Simerson
732202ae37
another test tweak, for switching from 192.168 to 192.0
2012-06-04 03:34:47 -04:00
Matt Simerson
8795d4fd6e
relay: use IETF IP testing addresses
2012-06-04 03:34:47 -04:00
Matt Simerson
2727b8529c
relay: added note to UPGRADING, dates to plugin author
2012-06-04 03:34:47 -04:00
Matt Simerson
974f1a95e8
new relay plugin, with tests!
...
replaces functionality of previous 3 relay plugins
2012-06-04 03:34:47 -04:00
Matt Simerson
bf5f1db436
delete 3 relay plugins
2012-06-04 03:34:47 -04:00
Matt Simerson
a69cd6bf64
basicheaders: adding missing semicolon, fixed POD error
2012-06-04 03:34:47 -04:00
Matt Simerson
1e26d1f5ec
earlytalker: add explicit reject_type perm
...
and replace whitelist with is_immune
2012-06-04 03:26:24 -04:00
Matt Simerson
0ab1b50e13
renamed reaper -> naughty
2012-06-04 03:26:24 -04:00
Matt Simerson
57a0e4ba7b
updated plugins to use QP::Plugins::is_immune
2012-06-04 03:26:16 -04:00
Matt Simerson
3a016b1da8
Plugin.pm: added is_immune
2012-06-04 03:23:14 -04:00
Matt Simerson
2a371a2c6e
consolidated chunks of code duplicated 4x into log_and_deny and log_and_pass
...
in apr_*_handler subs, return DECLINED when connection is not available to read (like during tests)
added 23 tests
deprecate action argument
'action log' did nothing, better logging controls available with loglevel
'action deny' -> reject 1
'action denysoft' => reject 1 reject_type temp
POD
use head2 for config options (instead of over, item, back)
added loglevel section
updated for replacement of action with reject options
2012-06-04 03:23:14 -04:00
Matt Simerson
600b0db54d
plugins.pod: much simpler way to get debug logging
...
for individual plugins
2012-06-04 00:02:01 -07:00
Matt Simerson
c2d23306dc
badrcptto: remove spurious semicolon
2012-06-04 00:01:30 -07:00
Matt Simerson
086b31c546
connection_time: make compatible with tcpserver deployment
2012-06-04 00:00:37 -07:00
Ask Bjørn Hansen
0e2384cceb
Make all plugins use $self->connection rather than $self->qp->connection
...
Merge remote-tracking branch 'msimerson/connect'
Conflicts:
plugins/async/require_resolvable_fromhost
plugins/require_resolvable_fromhost
2012-06-03 23:53:43 -07:00
Ask Bjørn Hansen
bfa73240ae
Merge pull request #21 from msimerson/fromhost
...
resolvable_fromhost refactor, adding tests
2012-06-03 23:49:01 -07:00
Matt Simerson
0a16621f02
connection consistency
...
- $self->qp->connection->notes
+ $self->connection->notes
and all tests pass.
2012-06-02 00:46:33 -04:00
Matt Simerson
e8e47ad93b
move 'use ParaDNS' into register and eval it
...
so eventually, plugin tests can run against it, if ParaDNS can be loaded
2012-05-23 23:39:43 -04:00
Matt Simerson
2f49cafcd6
resolvable_fromhost: refactored, added: POD, tests, reject, reject_type
2012-05-23 23:39:43 -04:00
Ask Bjørn Hansen
9e239fd83d
Merge pull request #16 from msimerson/geoip
...
Geoip plugin improvements
2012-05-23 15:39:10 -07:00
Ask Bjørn Hansen
1fd65b8cd9
Merge pull request #17 from msimerson/basic
...
basicheaders, add reject option, loglevel
2012-05-23 15:38:12 -07:00
Matt Simerson
162f2c13e7
basicheaders: updated Changes with brief summary
2012-05-23 18:07:15 -04:00
Matt Simerson
23f06fde7a
basicheaders: removed deprecated argument warning
2012-05-23 17:56:06 -04:00
Matt Simerson
09935b0bf6
basicheaders: added whitelist support
...
because alerts.etrade.com doesn't set a Date header in alerts
2012-05-23 17:12:26 -04:00
Matt Simerson
80b94eb47a
removed newline
2012-05-22 18:14:10 -04:00
Matt Simerson
e07488d4f6
hrmm, why didn't Test::Qpsmtpd::Plugin::log work?
2012-05-22 17:41:40 -04:00
Matt Simerson
bb0a0cb19b
added geoip test file to MANIFEST
2012-05-22 17:41:01 -04:00
Matt Simerson
2dcd34467e
geoip: eval loading of Geo::IP, tests, enabled in config
...
eval Geo::IP and log an error if missing
added 2 tests
enabled in config/plugins
2012-05-22 17:40:02 -04:00
Matt Simerson
521aa4919f
basicheaders, add reject option, loglevel
...
added reject option
document the existence of the loglevel option
factored date validity tests into their own sub
added tests
improved POD
2012-05-21 21:30:02 -04:00
Ask Bjørn Hansen
d407f349b3
Merge pull request #14 from msimerson/dnsbl
...
dnsbl, POD tweaks, DENY type tests
2012-05-21 15:13:05 -07:00
Matt Simerson
9d0c2f8469
dnsbl, POD tweaks, DENY type tests
...
consolidated POD at top of file
added example options to reject_type POD head
added an example loglevel entry
consolidated DENY[SOFT|DISCONNECT] logic into get_reject_type
added tests for get_reject_type
2012-05-21 17:07:37 -04:00
Matt Simerson
ed8ce150be
domainkeys: fix failing tests
...
the previous DK commit moved the 'use Mail::DomainKeys::*' stuff into an eval. The right idea, but tests still fail because I forgot to remove the bare 'use' lines.
2012-05-21 12:17:32 -07:00
Matt Simerson
d5f15a7d33
enable domainkeys plugin
2012-05-21 08:30:48 -07:00
Matt Simerson
41550c2681
domainkeys: only register hooks if Mail::DomainKeys is loadable
2012-05-21 05:59:44 -04:00
Matt Simerson
efbaf2ec6f
added loglevel option for plugins
...
Plugins can now use a 'loglevel' argument in config/plugins entry
Includes user instructions prepended to docs/logging.pod
Already works for all plugins that use named arguments
2012-05-21 05:34:37 -04:00
Matt Simerson
15bf425fe4
greylisting: added upgrade note
2012-05-21 05:25:47 -04:00
Matt Simerson
51486d0b04
SPF plugin: refactored, tests, new config option
...
added POD description of spfquery note
changed spf_deny -> reject (and offered 4 more options, see POD for reject)
backwards compatible with old config settings
replicates qmail-smtpd SPF patch behavior
improved logging (again)
uses a stringy eval 'use Mail::SPF' in the register sub. If missing, warn and log the error, and don't register any hooks. This is much nicer error than the current, "*** Remote host closed connection unexpectedly." broken mail server that results from enabling the SPF plugin without Mail::SPF installed.
background: I noticed I was deferring valid emails with the SPF plugin at 'spf_deny 1', and without changing the code, there wasn't a way to change how ~all records were handled. This provides that flexibility.
2012-05-21 04:19:45 -04:00
Matt Simerson
edacbf914c
anglebrackets: emit log entry when change made
2012-05-20 23:41:15 -07:00