Peculiarities of the atmosphere and envelope of a post-AGB star, the optical counterpart of IRAS 23304+6347