Commit Graph

27 Commits

Author SHA1 Message Date
Matt Simerson
55388248e4 store envelope from and to in connection notes 2013-04-29 23:50:18 -04:00
Matt Simerson
9c095ab278 is_naughty is a setter now too 2013-04-29 23:49:22 -04:00
Matt Simerson
5eab739359 SMTP.pm: reduce auth details from Received header.
based on patch from Devin Carraway

  http://www.nntp.perl.org/group/perl.qpsmtpd/2012/08/msg9954.html
2013-04-26 03:35:02 -04:00
Matt Simerson
8e9e2926c4 Qpsmtpd: untaint config data passed to plugins
if QP passes in tainted data, such as a hostname that subsequently gets used to open a connection using IO::Socket, the plugin die because the information is tainted. Fix it once here, instead of in each plugin.
2013-04-25 18:44:21 -04:00
Matt Simerson
c3c5643296 Qpsmtpd.pm: split config args on /\s+/, was / / 2013-04-25 17:53:55 -04:00
Matt Simerson
736e3b6eb3 distinguish rejecting versus tolerated failures 2013-04-24 16:25:31 -04:00
Matt Simerson
3d7d43e0af split is_immune into itself + is_naughty
is_immune tests designates to plugins they should always skip processing.

That's typical for naughty connections, but this change provides the ability to handly naughty connections differently than (whitelisted/relayclients/known good) senders.
2013-04-24 00:23:24 -04:00
Matt Simerson
8122fcfb27 Plugin: override dns_timeout by passing in a value 2013-04-21 12:14:27 -04:00
Matt Simerson
73c988ac05 find . -name '*.pm' -exec perltidy -b {} \; 2013-04-21 00:08:43 -04:00
Matt Simerson
23332dc71b moved triplicated init_resolver into Plugin.pm 2013-03-27 19:03:13 -04:00
Matt Simerson
a1ab386779 Q:Plugin.pm: abstracted out store_deferred_reject 2013-03-27 18:16:43 -04:00
Matt Simerson
5f9aed1162 adjust_karma now increments properly 2013-03-23 00:51:00 -04:00
Matt Simerson
5758412c53 v0.91 bump for release 2012-11-20 03:33:08 -05:00
Matt Simerson
4a745d6baf updated more split '' syntax to split // 2012-11-20 01:40:57 -05:00
Matt Simerson
df577ff3fe replace all instances of split '' with split //
newer versions of perl don't accept split '' syntax any longer
2012-11-19 12:32:21 -05:00
Matt Simerson
4f181c5153 SMTP.pm: fixed invalid operator
which produced this warning:
   Useless use of string eq in void context at lib/Qpsmtpd/SMTP.pm line 639.
2012-11-14 17:37:38 -05:00
Matt Simerson
61f7ea00e0 TcpServer, improve IPv6 support, by Michael Holzt 2012-11-14 17:29:46 -05:00
Matt Simerson
df715db16b allow messages with no body: Robin's patch
This is Robin's patch from here: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/mail-mta/qpsmtpd/files/qpsmtpd-0.83-accept-empty-email.patch?view=markup
2012-11-14 17:27:55 -05:00
Matt Simerson
7eedea8754 added missing semicolon 2012-11-14 17:27:54 -05:00
Matt Simerson
477c5a6bdf karma: added adjust_karma method
makes it easier to set karma in plugins
2012-11-14 17:27:54 -05:00
Matt Simerson
b5d99eea05 Qpsmtpd.pm: bump version 2012-06-25 19:26:47 -04:00
Matt Simerson
6654ff0150 TcpServer: assign default value during declaration 2012-06-23 23:04:50 -04:00
Matt Simerson
98c5487518 SMTP.pm: test if unrec cmd is set (suppress warning)
and decrease log message priority in rcpt_response
2012-06-23 00:18:40 -04:00
Matt Simerson
feab782a0a Transaction.pm: added debugging messages for DESTROY 2012-06-22 18:16:43 -04:00
Matt Simerson
37cc9c6d87 Plugin.pm: more descriptive variable names
append optional log_mess to log entry (more description)
subsequent attempts to set naughty don't overwrite the first
set the naughty rejection type to be the reject type of the plugin that marked the connection naughty
get_reject_type can be passed an explicit default
2012-06-22 18:14:44 -04:00
Matt Simerson
e094e4a177 Qpsmtpd.pm: less default logging at LOGINFO 2012-06-22 18:09:20 -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