I need to configure email domain as my localhost

i need to configure email domain as my localhost. i already have my mail server installed in my local machine, so i need to set my local machine as email domain

https://docs.erpnext.com/docs/v13/user/manual/en/setting-up/email/email-domain

this document says i have to enter my domain like example.com but like to is there away to add it with my local ip or “localhost” or host machine name (“pc-name.local”, “pc-name”)