I found the following exercise and I would like to know whether the property is true or not, and above all how to prove it:
for $z$ so that $\Im z>0$,
$$\sup_{t\in\mathbb{R}}\left|\frac{t-i}{t-z}\right|=\frac{|z-i|+|z+i|}{2\Im z}.$$
I was able to prove it for $z=iy$, with $y$ a real nonnegative number, but I haven't succeeded in the general case, and I even doubt it is true.
Yes, the given property holds.
Let $z=a+ib$ with $b>0$ and, without loss of generality, $a>0$ (you have already solved the case $a=0$). Then $$f(t):=\left|\frac{t-i}{t-z}\right|^2=\frac{t^2+1}{(t-a)^2+b^2}.$$ By considering the derivative $f'(t)$ show that the maximum value is attained at $t_0=x_0+R$ (the minimum point is $x_0-R$), where $x_0=\frac{a^2+b^2-1}{2a}$ and $R=|x_0-i|=\sqrt{x_0^2+1}$. Note that $x_0$ is the unique point on the real line such that $|x_0-i|=|x_0-z|$. Hence the circle centered at $x_0$ and of radius $R$ passes through $\pm i$, $\pm z$, and $t_0$. Finally, verify that for such $t_0$ we have that $$\left|\frac{t_0-i}{t_0-z}\right|=\frac{|z-i|+|z+i|}{2\text{Im}(z)}.$$ In fact, $i=x_0+Re^{i\theta}$ and $z=x_0+Re^{i\phi}$, with $0<\phi<\theta<\pi$,
$$\left|\frac{t_0-i}{t_0-z}\right|=\left|\frac{x_0-i+R}{x_0-z+R}\right|=\left|\frac{1-e^{i\theta}}{1-e^{i\phi}}\right|= \frac{\sin(\theta/2)}{\sin(\phi/2)}$$ and $$\begin{align}\frac{|z-i|+|z+i|}{2\text{Im}(z)} &=\frac{|e^{i\phi}-e^{i\theta}|+|e^{i\phi}-e^{-i\theta}|}{2\text{Im}(e^{i\phi})}\\ &=\frac{\sin{((\theta-\phi)/2})+\sin{((\theta+\phi)/2})}{\sin{\phi}} \\&=\frac{\sin(\theta/2)\cos(\phi/2)}{\sin(\phi/2)\cos(\phi/2)} =\frac{\sin(\theta/2)}{\sin(\phi/2)}.\end{align}$$ and the equality is verified.