rubymta 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubymta/receiver.rb +13 -8
- data/lib/rubymta/version.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c52ecaf44252583e1acf920df9c794b12092e04
|
4
|
+
data.tar.gz: ba9c68b84c02143eae29d36c936fdbb6703cbb49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cf89849cd9d7be667570a3bf380b4a7a62211f15cef441381a3a992e60f806c08151779dff358e719f28b29a44cf39e0cee7f89a18057425182ef1935b1c76
|
7
|
+
data.tar.gz: 8ac70f9e8e603c43a2b43c6d2a84a3e5e08f7e5c17eb27aab55cfcc63591ebe58c2cde2b525e523af5826b69eed4d15ef0545901b18fa73de47301810906cefd
|
data/lib/rubymta/receiver.rb
CHANGED
@@ -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
|
-
|
365
|
-
|
366
|
-
return "556 5.7.27 #{ServerTitle} members must use port #{SubmissionPort} to send mail" \
|
367
|
-
if
|
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?
|
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.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-
|
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.
|
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.
|