]> git.proxmox.com Git - pmg-api.git/commit
utils: allow '/' inside email address localpart
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 2 Feb 2021 13:03:16 +0000 (14:03 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 10 Feb 2021 09:44:21 +0000 (10:44 +0100)
commit959e331c66d9af1f2d9f02c704096d714e3dfe24
tree1377b79e15a23138e7d8bc31882420f26a1e9a22
parente89b61c5190e3e374c2c3bcb3dce444c64c718cf
utils: allow '/' inside email address localpart

The change is motivated by a report in our community forum [0], where
a mail addressed to an address containing '/' in its local-part ended
up in the quarantine.
This is permitted by RFC5322 ([1]), and, probably more relevant,
happily accepted and processed by postfix.

Once inside the quarantine (or the statistic database) the records cannot
be displayed (due to the parameter verification failure).

This leaves the user unable to delete the quarantined mail.

Apart from the quarantine and statistics the 'pmg-email-address'
format is only used in the PBSConfig and the fetchmail configuration
(both of which are available only to the admin and can be still be
edited irrespective of the set localpart).

[0]
https://forum.proxmox.com/threads/pmg-error-parameter-verification-failed-400.82353/
[1] https://tools.ietf.org/html/rfc5322

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PMG/Utils.pm