Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-4013

MDN/send where not relayed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.9.0
    • JMAP, mdn
    • None

    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

          Activity

            People

              aduprat Antoine Duprat
              btellier Benoit Tellier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m