Where do passengers go through customs?

For outbound passengers going to the United States via Toronto, Montreal, Ottawa, or Halifax, US customs clearance is done at the respective airports.

For all other outbound passengers, customs clearance is done in the country of final destination (if connecting through another country, that country may require clearance).

For inbound passengers, customs clearance is done at the first point of entry into Canada where passengers exit the aircraft.