Unless the decedent directs otherwise in his will, if any part of the gross estate on which the tax has been paid consists of the value of property included in the gross estate under section
2041, the executor shall be entitled to recover from the person receiving such property by reason of the exercise, nonexercise, or release of a power of appointment such portion of the total tax paid as the value of such property bears to the taxable estate. If there is more than one such person, the executor shall be entitled to recover from such persons in the same ratio. In the case of such property received by the surviving spouse of the decedent for which a deduction is allowed under section
2056 (relating to marital deduction), this section shall not apply to such property except as to the value thereof reduced by an amount equal to the excess of the aggregate amount of the marital deductions allowed under section
2056 over the amount of proceeds of insurance upon the life of the decedent receivable by the surviving spouse for which proceeds a marital deduction is allowed under such section.