Narrative:

When we arrived at the gate; there was black smoke coming out of right engine. About 45 mins later; the cabin filled up with heavy white smoke from APU. Crew deplaned aircraft. Captain and first officer opened all 4 doors; and the fire department was called. The aircraft was ferried to ZZZ and on my return trip several days later I heard it was still there.

Google
 

Original NASA ASRS Text

Title: SMOKE IN CABIN AT GATE FORCES FLT AND CABIN CREWS TO EVACUATE B767.

Narrative: WHEN WE ARRIVED AT THE GATE; THERE WAS BLACK SMOKE COMING OUT OF R ENG. ABOUT 45 MINS LATER; THE CABIN FILLED UP WITH HVY WHITE SMOKE FROM APU. CREW DEPLANED ACFT. CAPT AND FO OPENED ALL 4 DOORS; AND THE FIRE DEPT WAS CALLED. THE ACFT WAS FERRIED TO ZZZ AND ON MY RETURN TRIP SEVERAL DAYS LATER I HEARD IT WAS STILL THERE.

Data retrieved from NASA's ASRS site as of May 2009 and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.