mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 18:26:06 +00:00
fix(message-dequeuer): ensure SMTP endpoints are sent to SMTP sender appropriately
closes #2853
This commit is contained in:
@@ -47,4 +47,8 @@ class SMTPEndpoint < ApplicationRecord
|
||||
routes.each { |r| r.update(endpoint: nil, mode: "Reject") }
|
||||
end
|
||||
|
||||
def to_smtp_client_server
|
||||
SMTPClient::Server.new(hostname, port: port || 25, ssl_mode: ssl_mode)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user