rubymta 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +9 -0
- data/lib/rubymta/base-x.rb +1 -1
- data/lib/rubymta/contact.rb +1 -9
- data/lib/rubymta/receiver.rb +5 -2
- data/lib/rubymta/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6b1e113a06ec76df5c004833056ec7d2bf41093b55f82c79d9dfd4eb44303782
|
4
|
+
data.tar.gz: 8572ffa52e494db9b8b423653383bda27209655949aea05d4a52d64617a4f0df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b46058554a0f2269088498612dfd1f3480f9f7aef01bcde012c0405a39b211d9b597497dfff15cdded3f14feb9137685a321d0624c4d6632101f50e6019f5e3b
|
7
|
+
data.tar.gz: 73e31d0803c31a285dc52a9912d9cd55f5d02be4e3e569fa9dce0d9bee6f51be33f5b5bc12d8b318cfbcad37fd50856230e2f063798afc6fc58dbfa037ed8c07
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
# v0.0.18
|
2
|
+
|
3
|
+
* Changed Fixnum to Integer. Fixnum was depreciated in Ruby 2.4. Fixed a Ruby bug in newer Ruby releases which affects OpenSSL (https://bugs.ruby-lang.org/issues/13328)
|
4
|
+
|
5
|
+
# v0.0.17
|
6
|
+
|
7
|
+
* Changed the RSET command to reset the command sequence to the point between the STARTTLS and the MAIL FROM command. It also deletes any MAIL FROM, RCPT TO, and DATA from the incoming mail. A RSET command right after a EHLO, HELO, STARTTLS is the equivalent of a NOOP.
|
8
|
+
|
9
|
+
|
1
10
|
# v0.0.16
|
2
11
|
|
3
12
|
* Removed the SpamAssassin check from the ItemOfMail class because I suspect Microsoft Outlook doesn't like the headers added by it.
|
data/lib/rubymta/base-x.rb
CHANGED
data/lib/rubymta/contact.rb
CHANGED
@@ -54,21 +54,13 @@ class Contact < Hash
|
|
54
54
|
# Count the violation and reset the 'expires_at' time -- Also
|
55
55
|
# counts the times this IP has been locked out -- only count
|
56
56
|
# one violation and one lock per instantiation
|
57
|
-
#
|
58
|
-
# The UseIPTables feature requires the 'at' app ("apt install at")
|
59
57
|
if !inhibited?
|
60
58
|
self[:violations]+=1
|
61
59
|
@inhibit = true
|
62
60
|
if prohibited?
|
63
61
|
self[:locks] += 1
|
64
|
-
self[:expires_at] =
|
62
|
+
self[:expires_at] = Time.now + ProhibitedSeconds
|
65
63
|
modify
|
66
|
-
if defined?(UseIPTables) && UseIPTables
|
67
|
-
puts insert = "iptables -I INPUT -s #{self[:remote_ip]} -j DROP"
|
68
|
-
puts drop = "echo \"iptables -D INPUT -s #{self[:remote_ip]} -j DROP\" | at #{t.strftime("%H:%M")} #{t.strftime("%Y-%m-%d")}"
|
69
|
-
`iptables -I INPUT -s #{self[:remote_ip]} -j DROP`
|
70
|
-
`echo "iptables -D INPUT -s #{self[:remote_ip]} -j DROP" | at #{t.strftime("%H:%M")} #{t.strftime("%Y-%m-%d")}`
|
71
|
-
end
|
72
64
|
raise Quit # force quit: some senders try to keep going
|
73
65
|
end
|
74
66
|
modify
|
data/lib/rubymta/receiver.rb
CHANGED
@@ -514,7 +514,10 @@ class Receiver
|
|
514
514
|
return msg if !msg.nil?
|
515
515
|
end
|
516
516
|
|
517
|
-
@level =
|
517
|
+
@level = 2 if @level>2
|
518
|
+
@mail.delete(:mailfrom)
|
519
|
+
@mail.delete(:rcptto)
|
520
|
+
@mail.delete(:data)
|
518
521
|
return "250 2.0.0 Reset OK"
|
519
522
|
end
|
520
523
|
|
@@ -601,7 +604,7 @@ class Receiver
|
|
601
604
|
def starttls(value)
|
602
605
|
send_text("220 2.0.0 TLS go ahead")
|
603
606
|
LOG.info(@mail[:mail_id]) {"<-> (handshake)"} if LogReceiverConversation
|
604
|
-
conn = @connection.
|
607
|
+
conn = @connection.deepclone # save the unencrypted connection in case of error
|
605
608
|
begin
|
606
609
|
@connection.accept
|
607
610
|
@mail[:encrypted] = @encrypted = true
|
data/lib/rubymta/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubymta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael J. Welch, Ph.D.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: RubyMta is an experimental mail transport agent written in Ruby. See
|
14
14
|
the README.
|
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
53
|
version: '0'
|
54
54
|
requirements: []
|
55
55
|
rubyforge_project:
|
56
|
-
rubygems_version: 2.
|
56
|
+
rubygems_version: 2.7.8
|
57
57
|
signing_key:
|
58
58
|
specification_version: 4
|
59
59
|
summary: A Ruby Gem providing a complete Mail Transport Agent package.
|