Then here just do:

    if (!hmail.todo.using_lmtp) return next();