Originally Posted by
phedre
As mentioned above, you'll clear in YYZ on the way out, and then on your last segment before re-entering Canada (Detroit, going by your post).
Wrong, Canada doesn't have a program like the US pre-clearence system... You will clear immigration/customs again in Toronto when going back from your trip.