Protostellar chemistry dominated by external irradiation