def METHOD_NAME(self, SMTP_instance, username, password):
    # mangle request packet
    if self._request_data.get("authenticated"):
        response = (235, "Authentication successful.")
    else:
        response = (535, "authentication failed (#5.7.1)")
    return {self._request_data.get("recipient"): response}