The formation of circumstellar Na I and Ca II resonance absorption lines in a type Ia supernova is studied in the case where the supernova explodes in a binary system with a red giant. The model suggests a spherically symmetric wind and takes into account the nonstationary ionization and heating of the wind by X rays from the shock wave and by gamma rays from radioactive 56Ni decay. For wind densities typical of a red giant, the expected optical depth of the wind in Na I lines is shown to be too small (τ < 10−3) for their detection. Under the same conditions, the optical depth of the predicted Ca II 3934 Å absorption line is sufficient for its detection (τ > 0.1). It is concluded that the Na I and Ca II absorption lines detected in SN 2006X could not be formed in the red giant wind and are most likely related to clouds at distances exceeding the dust evaporation radius (r > 1017 cm). An upper limit for the rate of mass loss through a stationary wind with velocity u has been obtained from the absence of Ca II absorption lines in SN 2006X unrelated to the similar Na I components: Ṁ < 10−8 (u/10 km s−1) M ⊙ yr−1.