maildiode 0.1.1 → 0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +3 -0
- data/lib/server.rb +4 -2
- metadata +2 -2
data/README
CHANGED
|
@@ -95,3 +95,6 @@ http://www.tldp.org/HOWTO/Spam-Filtering-for-MX/index.html
|
|
|
95
95
|
|
|
96
96
|
List of IP addresses that should be exempt from greylisting:
|
|
97
97
|
http://cvs.puremagic.com/viewcvs/greylisting/schema/whitelist_ip.txt?view=markup
|
|
98
|
+
|
|
99
|
+
An smtp proxy with delay and greylisting, but it is written in C++
|
|
100
|
+
and it's not a full MTA: http://www.hermes-project.com/
|
data/lib/server.rb
CHANGED
|
@@ -45,7 +45,7 @@ module MailDiode
|
|
|
45
45
|
while !engine.terminate?
|
|
46
46
|
line = get_line(client, TIMEOUT_SECONDS)
|
|
47
47
|
if(!line)
|
|
48
|
-
MailDiode::
|
|
48
|
+
MailDiode::log_debug "Client disconnected"
|
|
49
49
|
return
|
|
50
50
|
end
|
|
51
51
|
line.chomp!(NEWLINE)
|
|
@@ -56,7 +56,9 @@ module MailDiode
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
rescue Errno::ECONNRESET
|
|
59
|
-
MailDiode::
|
|
59
|
+
MailDiode::log_debug "Client dropped connection"
|
|
60
|
+
rescue Errno::ETIMEDOUT
|
|
61
|
+
MailDiode::log_info "Client input timeout"
|
|
60
62
|
rescue Exception => e
|
|
61
63
|
MailDiode::log_error("Exception #{e.class}: #{e}")
|
|
62
64
|
e.backtrace.each do | line |
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: maildiode
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: "0.2"
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Smith
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date:
|
|
12
|
+
date: 2009-01-10 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|