diff options
author | drebs <drebs@leap.se> | 2015-04-15 14:16:13 -0300 |
---|---|---|
committer | drebs <drebs@leap.se> | 2015-04-16 11:53:48 -0300 |
commit | ae90151c632b376abc2a5bdf76d136b3a3629ea6 (patch) | |
tree | 05a6275c3f4f0597c0790da89925fdb0b9125dd6 /pkg/utils/gpg-keys | |
parent | 057de70291aee0eaedb8f8318dd1132e960e7e97 (diff) |
[bug] fix extraction of uuid from message headers
Before this commit, the mail receiver system used to compare the domain of the
delivery addresses found in the "Delivered-To" header to find out the final
delivery address. If we assume that the mail server delivery to the spool mail
directory was correct, then we have two facts: (1) the topmost "Delivered-To"
header is the one that indicates the correct final delivery address; and (2)
we should expect the address to be <uuid>@<domain> because of the earlier
alias resolve query made by the mail server.
Another problem is that the domain comparison would compare whatever is in the
"Delivered-To" header with whatever the python's socket module would return,
which depends on the values on /etc/hosts and the order of the values in that
file. This was causing problems whenever the platform made changes in
/etc/hosts.
So this commit eliminates the domain check and gets the uuid from the first
"Delivered-To" header found in the message.
Related: #6858.
Diffstat (limited to 'pkg/utils/gpg-keys')
0 files changed, 0 insertions, 0 deletions