During the US attack on Afghanistan, during a meeting in Europe between Ryan Crocker (deputy assistant secretary of state), Hillary Mann and a team of Iranian diplomats, the Iranians agreed to:
Provide assistance to US pilots downed near Iran
Let the U.S. send food in through the Iranian border
Agreed to restrain some "really bad Afghanis,"; Tehran quietly placed Gulbuddin Hekmatyar under house arrest.
Iran supplied the US with specific intelligence about Taliban assets that should be attacked. On top of that, they let it be known they were willing to hold "Unconditional talks" with the US.
Rumsfeld and Cheney rejected the idea. Deputy national security advisor, Stephen Hadley wrote a memo known as "Hadley's Rules", that stated:
"If a state like Syria or Iran offers specific assistance, we will take it without offering anything in return. We will accept it without strings or promises.
We won't try to build on it."
After a full year of 'back door' high level diplomacy between Iran and the American government, without any prior warning to those involved in these talks, Bush gave his "axis of evil" speech. Either Bush didn't know the Iranians helped, and offered to talk unconditionally.. or Bush just doesn't care. Despite calling Iran evil, negotiations with Iran continued every month for another year.
When Flynt Leverett and Hillary Mann went public with the Iran talks, the White House fired them and imposed "prior restraint".
Iran also agreed agreed, via the a fax from the Swiss, to:
"Decisive action" against all terrorists in Iran
An end of support for Hamas and the Islamic Jihad
To cease its nuclear program, and also an agreement to recognize Israel.
The Bush administration ignored the offer, then lodged a "formal complaint" with the Swiss government about their ambassador's meddling.
http://www.esquire.com/features/iranbriefing1107