mirror of
https://github.com/mjl-/mox.git
synced 2024-12-27 08:53:48 +03:00
add comment about not verifying Sender for submissions
This commit is contained in:
parent
6b68920a3a
commit
7cceb3d834
1 changed files with 2 additions and 0 deletions
|
@ -1659,6 +1659,8 @@ func (c *conn) submit(ctx context.Context, recvHdrFor func(string) string, msgWr
|
|||
|
||||
// Check that user is only sending email as one of its configured identities. Not
|
||||
// for other users.
|
||||
// We don't check the Sender field, there is no expectation of verification, ../rfc/7489:2948
|
||||
// and with Resent headers it seems valid to have someone else as Sender. ../rfc/5322:1578
|
||||
msgFrom, header, err := message.From(dataFile)
|
||||
if err != nil {
|
||||
metricSubmission.WithLabelValues("badmessage").Inc()
|
||||
|
|
Loading…
Reference in a new issue