Do you want to set a default email domain name on Debian just configure a mainname file,

Run the below command,
 


# echo mydomain.com > /etc/mailname