Earwax is a natural substance produced by the glands in the ear canal. Its main function is to protect the ear canal by