مراية لـ
https://github.com/postalserver/postal.git
تم المزامنة 2025-12-01 05:43:04 +00:00
don't use localhost as the HELO on outgoing SMTP connections
It can be configured using `dns.helo_hostname` or will be set to `dns.smtp_server_hostname` Related to #19
هذا الالتزام موجود في:
@@ -68,6 +68,7 @@ dns:
|
|||||||
return_path: rp.postal.example.com
|
return_path: rp.postal.example.com
|
||||||
route_domain: routes.postal.example.com
|
route_domain: routes.postal.example.com
|
||||||
track_domain: track.postal.example.com
|
track_domain: track.postal.example.com
|
||||||
|
helo_hostname: # By default, this will be the same as the `smtp_server_hostname`
|
||||||
dkim_identifier: postal
|
dkim_identifier: postal
|
||||||
domain_verify_prefix: postal-verification
|
domain_verify_prefix: postal-verification
|
||||||
custom_return_path_prefix: psrp
|
custom_return_path_prefix: psrp
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ module Postal
|
|||||||
else
|
else
|
||||||
# Nothing
|
# Nothing
|
||||||
end
|
end
|
||||||
smtp_client.start(@source_ip_address ? @source_ip_address.hostname : "localhost")
|
smtp_client.start(@source_ip_address ? @source_ip_address.hostname : self.class.default_helo_hostname)
|
||||||
log "Connected to #{@remote_ip}:#{port} (#{hostname})"
|
log "Connected to #{@remote_ip}:#{port} (#{hostname})"
|
||||||
rescue => e
|
rescue => e
|
||||||
log "Cannot connect to #{@remote_ip}:#{port} (#{hostname}) (#{e.class}: #{e.message})"
|
log "Cannot connect to #{@remote_ip}:#{port} (#{hostname}) (#{e.class}: #{e.message})"
|
||||||
@@ -244,5 +244,9 @@ module Postal
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.default_helo_hostname
|
||||||
|
Postal.config.dns.helo_hostname || Postal.config.dns.smtp_server_hostname || "localhost"
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
المرجع في مشكلة جديدة
حظر مستخدم