update Received headers to use UTC timestamps

This commit is contained in:
Adam Cooke
2018-01-13 19:28:31 +00:00
parent 5f88ee85bf
commit ce68d9eacd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -326,7 +326,7 @@ module Postal
@headers = {}
@receiving_headers = true
received_header_content = "from #{@helo_name} (#{@hostname} [#{@ip_address}]) by #{Postal.config.dns.smtp_server_hostname} with SMTP; #{Time.now.rfc2822.to_s}".force_encoding('BINARY')
received_header_content = "from #{@helo_name} (#{@hostname} [#{@ip_address}]) by #{Postal.config.dns.smtp_server_hostname} with SMTP; #{Time.now.utc.rfc2822.to_s}".force_encoding('BINARY')
if !Postal.config.smtp_server.strip_received_headers?
@data << "Received: #{received_header_content}\r\n"
end