rubymta 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bdfc3b08cef62adc0c3dd94734b329bbb66b965
4
- data.tar.gz: f1958ebd5cd0bc24c3614684b48183abc367648b
3
+ metadata.gz: 4449c3d949eae74a0d181c0ed70dff9bc2077328
4
+ data.tar.gz: a2c5a0c3875372065733b1ef4bc9c8ec841f9350
5
5
  SHA512:
6
- metadata.gz: f68f8e2369d32a6275b05ceb741887e48dbb41c3e39515a100069968a59f46d94d7041160b8ffeebd653b13e130d340bab63a2f230ba9175ac5f42cb847f46b6
7
- data.tar.gz: 70aad9ee52184c6b29015c6b0d8774569deed6155fa640188f6ad423529825181550e6f6112970b9aa045bfebb0f46cc405b80649cb9e71ad1d9f8e969da2047
6
+ metadata.gz: 6efff36106006c5639cbb69aa3688bfeff46911b4550827e2ec778c33793d6a900f38a48b8be491b71b5f0af9186a566a7ff2b05362136ad470112cbf6c23561
7
+ data.tar.gz: d3220cd027a8c4f40102374ebfcce0c6657f1d741f9e2b076e1c77a6f266dd4a4d606b8c179ea9c728da0e3e97038548fd4f800aa0f7bb35972242ef2f39f08b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # v0.0.9
2
+ * Added a `rescue OpenSSL::SSL::SSLError` to catch sender certificate violations.
3
+ * Added a `LogLevel` into the Config file (config.rb) to control the logger output. I use LOGGER::INFO as my default.
4
+ * Changed the log message that the SqLite3 database is open to a `debug` level.
5
+
6
+ # v0.0.8
7
+
8
+ * No changes. I didn't properly rebuild the gem in v0.0.7.
9
+
10
+
1
11
  # v0.0.7
2
12
 
3
13
  * In `Receiver#starttls` I added a `begin` block to catch errors I believe are caused by spammers sending random data as a certificate. It's open at this moment, `rescue => e`, but as soon as I discover what the spammers are doing, I'll tighten this up by specifying the proper exception.
@@ -10,6 +20,7 @@
10
20
  * Replaced a call to a legacy method 'add_block' to the proper method 'violation'. This bug only activated if the sender slammed the connection shut during the data block transfer.
11
21
  * Fixed a bug causing a run-time error when the sender sent an email, and slammed the connection shut after issuing the DATA command.
12
22
 
23
+
13
24
  # v0.0.5
14
25
 
15
26
  * Changed the code that enforces the rule that: external non-member mail has to come in on port 25; external member mail has to come in on port 587; and internal mail can come in on port 465. Port 465 is open, i.e., requires no authentication nor encryption. (You should use iptables to be sure port 465 is not open to the Internet.
@@ -623,6 +623,8 @@ class Receiver
623
623
  @mail[:encrypted] = true
624
624
  rescue => e
625
625
  LOG.error(@mail[:mail_id]) {e.inspect}
626
+ rescue OpenSSL::SSL::SSLError => e
627
+ LOG.error(@mail[:mail_id]) {e.to_s}
626
628
  end
627
629
  return nil
628
630
  end
@@ -25,6 +25,7 @@ require_relative 'receiver'
25
25
 
26
26
  # get setup and open the log
27
27
  LOG = Logger::new(LogPathAndFile, LogFileLife)
28
+ LOG.level = LogLevel
28
29
  LOG.formatter = proc do |severity, datetime, progname, msg|
29
30
  pname = if progname then '('+progname+') ' else nil end
30
31
  "#{datetime.strftime("%Y-%m-%d %H:%M:%S")} [#{severity}] #{pname}#{msg}\n"
@@ -55,7 +56,7 @@ Sequel.split_symbols = true
55
56
 
56
57
  # Open the sqlite3 database for rubymta use
57
58
  S3DB = Sequel.connect("sqlite://#{S3DBPath}")
58
- LOG.info("Database '#{S3DBPath}' opened")
59
+ LOG.debug("Database '#{S3DBPath}' opened")
59
60
 
60
61
  # Create the tables we need if they don't already exist
61
62
 
@@ -1,5 +1,5 @@
1
1
  module Version
2
- VERSION = "0.0.8"
3
- MODIFIED = "2017-10-13"
2
+ VERSION = "0.0.9"
3
+ MODIFIED = "2017-10-14"
4
4
  end
5
5
 
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.8
4
+ version: 0.0.9
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: 2017-10-13 00:00:00.000000000 Z
11
+ date: 2017-10-14 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.