A bit new to managing my own email server. I have the mail stack installed and working for multiple domains on my AWS server but I did not change anything in the organization setup mentioned here for lack of experience in knowing what specifically to change, especially with 3 different domains using the mail server:
I did however change my hostname and confirmed after reboot typing hostname returns mail.mydomain.com (the most “important” domain) however in email headers I am seeing the long AWS host name with the internal ip (ip-172-73-73-23-us.west.internal…) vs mail.mydomain.com.
How do I go about fixing this? Even better, is it possible for me to set each mail account to use mail.domain-for-this-email-user.com for sent emails?