For Iranians, the election presents a stark choice between competing visions of the country.
Rafsanjani, a pragmatist who favored liberal political and economic policies, died of a heart attack aged 82.
Women will soon be allowed at indoor sport matches, but be banned from all outdoor sporting events, such as soccer games.
"We are not opposed to any of the entities operating in global markets who want to offer services in Iran."
The former Iranian president is making an intense media push as he returns to the public eye.
Mohammad Reza Rahimi, who was appointed in 2009 after Ahmadinejad's re-election, was indicted in March in connection with a billion-dollar money laundering and embezzlement scheme.