The auto fan will cut the extruder fan on when it gets above a certain temp. It is in Config_adv.h

The fan on/off for part cooling is handled in the Gcode or manually with the M106 Sxxx command.