rubymta 0.0.4 → 0.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 342f0caad82d98379a66f1b3a776211bf9469edd
4
- data.tar.gz: 90406eb6b7165e27a40f841f3e424883d4390824
3
+ metadata.gz: 6c52ecaf44252583e1acf920df9c794b12092e04
4
+ data.tar.gz: ba9c68b84c02143eae29d36c936fdbb6703cbb49
5
5
  SHA512:
6
- metadata.gz: 64bc2f2844106e9aa06089f2f3cdbc145702cbed7a60d155b0c5b287bc62f99a0db11997a2ae5aa81988d29ead7f741eb36409f2be496c6207b964c6a4ebf91d
7
- data.tar.gz: 118905e30a717ed45d89da660c5a06ed5dea9c203339d3dfdf1d309eec16ddf3520cd1e182c94a0e136a986d6f1449d8b75d807c2526ae25a4ce6f3cef85ee9e
6
+ metadata.gz: 93cf89849cd9d7be667570a3bf380b4a7a62211f15cef441381a3a992e60f806c08151779dff358e719f28b29a44cf39e0cee7f89a18057425182ef1935b1c76
7
+ data.tar.gz: 8ac70f9e8e603c43a2b43c6d2a84a3e5e08f7e5c17eb27aab55cfcc63591ebe58c2cde2b525e523af5826b69eed4d15ef0545901b18fa73de47301810906cefd
@@ -361,20 +361,25 @@ class Receiver
361
361
  # Also, members MUST use use authenticated email on the SubmissionPort to
362
362
  # submit mail; non-members MUST use non-authenticated email on the
363
363
  # StandardMailPort to submit mail
364
- if (from[:mailbox_id]) && (@mail[:local_port]!=InternalSubmitPort)
365
- # traffic is from our member
366
- return "556 5.7.27 #{ServerTitle} members must use port #{SubmissionPort} to send mail" \
367
- if @mail[:local_port]!=SubmissionPort
364
+ case @mail[:local_port]
365
+ when StandardMailPort # '25'--non client must come in here
366
+ return "556 5.7.27 #{ServerTitle} members must use port #{InternalSubmitPort} or #{SubmissionPort} to send mail" \
367
+ if from[:mailbox_id]
368
+ when InternalSubmitPort # '465'-- client, internal use only, block external use with iptables
369
+ return "556 5.7.27 Non #{ServerTitle} members must use port #{StandardMailPort} to send mail" \
370
+ if !from[:mailbox_id]
371
+ when SubmissionPort # '587'--client, external or internal req. auth & enc
372
+ return "556 5.7.27 Non #{ServerTitle} members must use port #{StandardMailPort} to send mail" \
373
+ if !from[:mailbox_id]
368
374
  return "556 5.7.27 Traffic on port #{SubmissionPort} must be authenticated (i.e., #{ServerTitle} client)" \
369
375
  if !@mail[:authenticated]
370
376
  return "556 5.7.27 Traffic on port #{SubmissionPort} must be encrypted" \
371
377
  if !@mail[:encrypted]
372
- else
373
- # traffic is from a non-member
374
- return "556 5.7.27 Non #{ServerTitle} members must use port #{StandardMailPort} to send mail" \
375
- if !from[:mailbox_id] && @mail[:local_port]!=StandardMailPort
376
378
  end
377
379
 
380
+ # use the mail_from(value) method in the configuration file to add
381
+ # more rules for filtering senders; psych_value will determine if
382
+ # the sender is a member, if you have a 'client_lookup(url)', as mentioned above
378
383
  if respond_to?(:mail_from)
379
384
  msg = mail_from(value)
380
385
  return msg if !msg.nil?
@@ -1,5 +1,5 @@
1
1
  module Version
2
- VERSION = "0.0.4"
3
- MODIFIED = "2017-09-16"
2
+ VERSION = "0.0.5"
3
+ MODIFIED = "2017-09-24"
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.4
4
+ version: 0.0.5
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-09-16 00:00:00.000000000 Z
11
+ date: 2017-09-24 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.6.13
56
+ rubygems_version: 2.5.1
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: A Ruby Gem providing a complete Mail Transport Agent package.