Dear Jean-Philippe,
Thank you for your prompt response.
After reading more about SMTP, I now understand that my initial request cannot be fulfilled directly.
Regarding your proposed solution:
As I understand it, before transmitting the email, the remote SMTP client announces the message size. At that point, FortiMail decides whether to accept or reject the transmission. Since the recipient address is not yet known at that stage, if the message is rejected, it is not possible to log the recipient address.
A possible workaround would be to accept all messages regardless of size, and then apply a Content Profile that redirects oversized messages to quarantine. Additionally, alert emails would be sent to the sender, recipient, or administrators, depending on the organization’s policy. This approach would allow us to retain a log of the event.
We plan to implement this solution in the near future, but have not tested it yet.
Thank you for your help and willingness to assist.
Best regards,