smtp: Reworked smtp_endofresp() to allow for extra capability detection