From which you have received (it)
Yes, the last it is necessary for the sentence to make grammatical sense.
Receive, when applied to specific objects (like the box), is transitive, so it needs an object to be acted upon. You receive the box; "the box" is nicknamed it (for the purposes of this sentence; this is called anaphora), hence you receive it.
That said, it sounds much better to me to reword it:
Please return the box to the address it came from.