How to Setup SMTP for Gitlab on ubuntu Linux

how can i send/receive email using SMTP on gitlab running on ubuntu16.04?

Do you have your own email server? Are you using 3rd party email server like AWS or Google gmail?

I am using Gmail! and Now it’s working. any Idea how can I configure LDAP with gitlab server?