I've changed my /etc/hosts file as follows, I added the second line:
127.0.0.1 localhost
127.0.0.1 myservername.mydomain.com myservername
I also added myservername.mydomain.com to the /etc/mail/local-host-names file
I now can send an email as follows (logged into linux as user "Me")
Me@myservername:~$ mail someone@mydomain.com
Cc:
Subject: test
test
<ctrl-d>
Me@myservername:~$
The mail gets delivered to someone@mydomain.com, and the from/return address is:
From: Me@myservername.mydomain.com
Mail to the domain @myservername.mydomain.com is properly forwarded to this linux box.
But when I try to reply, instead of getting the mail delivered to user "Me" mailbox, I get this error:
: RCPT TO:<Me@myserver.mydomain.com>
Remote server replied: 550 5.1.1 <Me@myserver.mydomain.com>... User unknown
Interestingly, I can send mail to root@myserver.mydomain.com successfully, but Me@myserver.mydomain.com errors with 550 User unknown
So perhaps there is a step I'm missing that allows inbound email messages to get delivered to other local users besides root? Turns out I can actually deliver mail to ANY other user defined, but not "Me"