I have a toplevel domain hosted by myself. Receiving mail works fine.
However, every mail I send gets a sender with domain like @localhost.domain.com, instead of @domain.com. I am not able to point out where in /etc/postfix/main.cf the configuration is done.
Some of main.cf:
mydomain = domain.com
myorigin = $mydomain
myhostname = xxx.studby.ntnu.no # Statically assigned from my ISP
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
Is this the correct setup?