Hi Raoul, I have never been using "Amazon Simple e-mail service". I guess what you are mentioning is that feature: https://aws.amazon.com/blogs/aws/ses-delivery-notifications/
As far as I understand this, this feature relies on MDN (Message Disposition Notification, https://tools.ietf.org/html/rfc8098). <https://tools.ietf.org/html/rfc8098%29.> To quickly sum it up: - The email sender (you) position a header asking for a report. This is done through the Disposition-Notification-To header. - The client reads the email, and send a MDN receipt. - Your email server is then able to recognize, parse then push information about such MDN receipt. The good news is that the team @linagora had recently been working on MDN notification, so most of the components will be soon "in place": - The james-project/mdn project allows MDN parsing and had recently been contributed. The MDNReportParser will return you a java object describing the full structure of a report. - For detecting MDN, you can rely on the HasMimeType HasMimeTypeParameter matchers. You can combine them together with a "composite matcher" as done in https://github.com/linagora/james-project/pull/1367/files#diff-0b1002f9ab4c6fce613371af22c06750 mailetcontainer.xml file. You will need to write a mailet for generating the JSON and attaching it to the email as a mail attribute (this allows uncoupling JSON string generation from PUSH transport mechanism). Note that we already have a component for pushing a string attribute of emails over AMQP, tested with RabbitMQ. It is the AMQPForwardAttribute mailet. Note that such a contribution would be really interesting, and I will provide you guidance for implementing it. As this might interest other developers, I Ccedthe James developer mailing list. Best regards, Benoit Tellier Le 13/04/2018 à 18:06, Raul Torralba Adsuara a écrit : > > Hi Tellier, > > We are interested in use james-project for a mail server, but we need > to receive mail delivery reports as amazon simple e-mail service. We > know bounces mailet, but we don't know is possible to handle this > delivery reports with a mailet now, and if is not possible, we are > interested to improve the project to optionally allow it. > > Un saludo. > -- > > *Raúl Torralba* > Mobile/Web Development Director *NRS-GROUP* > +34 964 52 33 31 > Avda. Arcadi García Sanz,19 - 1° A, Vila-real, Castellón, 12540 - España > www.nrs-group.com > <http://www.nrs-group.com> rtorra...@nrs-group.com > <mailto:rtorra...@nrs-group.com> > > > > ------------------------------------------------------------------------ > Este mensaje y los ficheros que puedan ser adjuntados son > confidenciales. Los mismos contienen información reservada que no > puede ser difundida. Si usted ha recibido este correo por error, tenga > la amabilidad de eliminarlo de su sistema y avisar al remitente > mediante reenvío a su dirección electrónica; no deberá copiar el > mensaje ni divulgar su contenido a ninguna persona. > > Su dirección de correo electrónico junto a sus datos personales > constan de un fichero titularidad de Net Real Solutions S.L. cuya > finalidad es la de mantener el contacto con Ud. Si quiere saber de qué > información disponemos de Ud., modificarla, y en su caso, cancelarla, > puede hacerlo enviando un escrito al efecto, acompañado de una > fotocopia de su D.N.I. o documento acreditativo equivalente, a la > siguiente dirección: Avenida Arcadi García Sanz, 19, 1° A, Vila-Real o > a través de correo electrónico a l...@nrs-group.com > <mailto:l...@nrs-group.com>. > > Asimismo, es su responsabilidad comprobar que este mensaje o sus > archivos adjuntos no contengan virus y, en su caso, eliminarlos. >