This appears to be a common issue but none of the solutions I've come across seem to be working. I'm using Ubuntu 18.04 LTS and mailutils / postfix. My /etc/postfix/main.cf looks like this:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
compatibility_level = 2
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mydomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = $myhostname, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
My /etc/aliases has the following entry:
root: myuser@mydomain.com
Note I want mail to default to user@mydomain.com when I don't specify a from address. Any suggestions are welcome! I've tried this and this but no success