Run a dns server like bind first to serve locally only defined and host zone if a domain home.lab
In the zone define it's dns server and a and mx records with mail.home.lab which can be same server
Install SMTP server like postman
Configure to serve emails as local for home.lab and you are set