Machine for chamfering and filming rails of cabinet doors. Optional dowel insertion