If you are using WHM/CPanel, go to
WHM > Tweak Settings
and Allow all users to make external SMTP connections.
I consent for Kayako to process my data and agree to the terms of the Privacy Policy