If any person has an interest in real estate, not exempt from taxation under section five, as holder of a duly recorded mortgage given to secure the payment of a fixed and certain sum of money, the amount of his interest as mortgagee shall be assessed as real estate in the town where the land lies; and the mortgagor shall be assessed only for the value of such real estate after deducting the assessed value of the interest therein of such mortgagee. If such estate is situated in two or more towns, the amount of the mortgagee's interest to be assessed in each town shall be proportioned to the assessed value of the mortgaged real estate in the respective towns, deducting therefrom the taxable amount of prior mortgages, if any, thereon.
Mass. Gen. Laws ch. 59, § 12