User Validation by Email Doesn't Work

I moved the site from cpanal hosting to ubuntu hosting and webmin control panel.
And after I made the suggested settings in the elgg reference, the site works, but when the members register, they do not receive the activation message on the email.