mirror of
https://github.com/postalserver/postal.git
synced 2026-10-19 18:56:05 +00:00
fixes bug with receiving messages to the return path
treats all messages sent to the return path and any domain with the return path prefix the same
This commit is contained in:
@@ -256,7 +256,7 @@ module Postal
|
||||
uname, domain = rcpt_to.split('@', 2)
|
||||
uname, tag = uname.split('+', 2)
|
||||
|
||||
if domain =~ /\A#{Regexp.escape(Postal.config.dns.custom_return_path_prefix)}\./
|
||||
if domain == Postal.config.dns.return_path || domain =~ /\A#{Regexp.escape(Postal.config.dns.custom_return_path_prefix)}\./
|
||||
# This is a return path
|
||||
@state = :rcpt_to_received
|
||||
if server = ::Server.where(:token => uname).first
|
||||
|
||||
Reference in New Issue
Block a user