All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad,
, is His slave and Messenger.
If the insurance on things sent by mail is a cooperative insurance, then it is permissible and it is permissible to benefit from its compensation, whether the insurance is free or in return for money.
However, if it is a commercial insurance, then it is not permissible. If this commercial insurance is compulsory and you do not find a company that does not have this commercial insurance or that it is difficult to find it, then it becomes permissible, in this case, to deal with the mail companies that provide commercial insurance on letters.
For more benefit, please refer to Fatwa 81425.
Allah knows best.