The absolute temperature, $T$ of the iron varies with its distance, $r$, from the Sun according to
$$T\propto \frac 1{\sqrt r}.$$
My reasoning is as follows.
If the radiant power of the sun is $L$, the solar energy passing through an imaginary spherical surface of radius $r$, centred on the Sun, per unit time, per unit area will be
$$I=\frac L{4\pi r^2}.$$
So we have an inverse square law of intensity. If we place an iron sphere of radius $a$ at distance $r$ from the Sun, the solar power intercepted will be
$$P=\pi a^2 I=\frac{\pi a^2 L}{4\pi r^2}.$$
The sphere will reach a temperature at which the rate of solar gain is equal to the rate of loss of energy by radiation. We will assume that the sphere absorbs all the intercepted radiation and that it emits as a 'black body' obeying Stefan's law, that is at a power of
$$P_{em}=\sigma A T^4= \sigma 4\pi a^2 T^4$$
in which $\sigma$ is the Stefan constant and $A$ is the surface area. So putting $P=P_{em}$ we get
$$T^4=\frac L {16\pi \sigma r^2},$$
from which follows the relationship given at the top.
The above result will not be accurate if the sphere doesn't absorb and emit as a black body, unless the sphere happened to absorb the same fraction $f$ of the solar power at all wavelengths and angles of incidence (the grey body idealisation). In this case it would also emit only a fraction $f$ of the power predicted by Stefan's law, so the factor of $f$ would cancel. [My misleading original remarks on non-black bodies were pointed out by Bert Barrois.]
Numerical example: We know that $\sigma =5.67 \times 10^{-8}\ \text{W m}^{-2}\text K^{-4}$ and $L=3.63 \times 10^{26}\ \text W$, so if $r=1.50 \times 10^{11}\ \text{m}$ (that is the distance to the Earth from the Sun), we find that $T=274$ K. Plausible?
Note that this answer applies to a macroscopic body, not to the particles making up the interplanetary plasma. Nor should it be applied to a body close to the Sun's surface. These points were raised by the contributor Math Keeps Me Busy.
$\mathcal O$
) than an upper-case theta $\Theta$. $\endgroup$