fix mail server bug