Change postfix hostname

Edit /etc/postfix/main.cf
Change the myhostname field.

myhostname = gitlab.droidzone.in

Restart postfix.

# service postfix restart
[ ok ] Stopping Postfix Mail Transport Agent: postfix.
[ ok ] Starting Postfix Mail Transport Agent: postfix.

You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.