As Mideast braces for all-out war to resume, Iran is still passing messages to the U.S. via intermediaries, foreign ministry says