]> git.proxmox.com Git - pmg-api.git/commit
Don't add DKIM signature without domain
authorStoiko Ivanov <s.ivanov@proxmox.com>
Fri, 22 Nov 2019 09:40:57 +0000 (10:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 22 Nov 2019 11:32:47 +0000 (12:32 +0100)
commitb8e7dac71946e3bb709c50bf0ccda7fd14abf250
tree7d7e15c957b41ae8b62d2477d4fefacd149790f0
parentaabdee2905a30f4482fe849951aaf1de743774a1
Don't add DKIM signature without domain

When the DKIMSign module fails to determine the domain for signing
(the one added to the header and used for retrieving the publickey record)
the code logs that no signing will take place, but only does not set the
domain - resulting in a generated and added signature with domain 'example.com'

Fixed by returning the success-status from signing_domain and only signing if
it was successful.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/DKIMSign.pm