He is not a member of the inner circle of power now , though he has a personal relationship with Iran 's supreme leader , Ayatollah Ali Khamenei , and as interior minister he appointed the current president , Mahmoud Ahmadinejad , as a governor .