mail.example.com, hostname, mailname...

Team,

I have named my server “mail.example.com”, is that a problem?

Also, should I have “mail.example.com” in my /etc/hostname and /etc/mailname or just “example.com”?

Thx!