public void run() {
        try {

            //init IO-Stream from/to client and send Ready-Message
            inFromClient = new BufferedReader(new InputStreamReader(
                    connectionSocket.getInputStream()));
            outToClient = new DataOutputStream(
                    connectionSocket.getOutputStream());

            send(outToClient, "+OK proxyServer ready");

            //take authorization of client
            while (!belive) {
                if (isRegisteredUser(inFromClient.readLine(), outToClient)) {
                    while (!belive) {
                        belive = isRightPass(inFromClient.readLine(), outToClient);
                    }
                }
            }

            //authorization successful, start transaction
            if (belive) {
                //client collects his email
                if (client.getTyp().startsWith("POP3Client")) {
                    pop3transaction();

                    //client sendet neu email
                } else if (client.getTyp().startsWith("SMTPClient")) {
                    smtpTransaction();

                    //something else
                } else {
                    send(outToClient, "QUIT");
                }
            }

            //close client-connection
            connectionSocket.close();
            System.out.println("connection is broken");


        } catch (Exception e) {
            // System.out.println(e.getMessage());
        }
    }