Description
In production I ended up with many legitimate emails in relayed denied mail repository:
admin@cqlsh:cnb_prd_tmail> select * from mailrepositorycontentv2 where name = 'cassandra://var/mail/relay-denied' ALLOW FILTERING ; name | mailkey | attributes | bodyblobid | errormessage | headerblobid | lastupdated | messagesize | perrecipientspecificheaders | recipients | remoteaddr | remotehost | sender | state -----------------------------------+--------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------+--------------+----------------------------------------------------+---------------------------------+-------------+-----------------------------+----------------------------------------------------+------------+------------+------------------------------------+-------------- cassandra://var/mail/relay-denied | 9e968014-6e3f-4e58-92ef-2f7097407ce9 | {'ContactAttribute': '{"serializer":"StringSerializer","value":"{\"userEmail\":\"xxx.xxx@xxx.fr\",\"emails\":[\"xxx@xxx.com\"]}"}', 'extractedContacts': '{"serializer":"StringSerializer","value":"{\"userEmail\":\"xxx.xxx@xxx.fr\",\"emails\":[\"xxx@xxx.com\"]}"}'} | 1_658_5B332HDCiU0HYG2PbgVjLrAVJIIKIxn1rUFPvInB4NI= | null | 1_658_7m0iljMyTW91XNeCm_IWgEs5FFUai1vTNv_xRLtrwaU= | 2024-02-14 16:16:15.360000+0000 | null | null | ['xxx@yyy.com'] | 127.0.0.1 | localhost | xxx.xxx@avocat.fr | relay-denied
Those mails were sent via JMAP but did not have the JMAP username metadata leading them to be qualified as not sent by JMAP and thus not routed.
Investigations showed that MDN/send method was not positionning the username attribute.
Attachments
Issue Links
- links to