making buffer size 1000 to follow SMTP standards and sending quit on client side when disconnecting