sendmail - Sending emails from the machine with name of the HOSTNAME
In my server I work with sendmail, for a long time I try to send emails from user "root" and get this mail with full name of the HOSTNAME machine. but in the from I only see "root" and not root(at)myhostname.com, when I add the LOCAL_USER(`root')dnl to /etc/mail/submit.mc file, it's work i see the root(at)myhostname.com but if I try to send mail from user "root" like - echo "bla" | mail -s "test" root i get this error: "root... User address required"
in addition, I use a file ".forward"
anybody know as a problem and know the solution ?
If there is a solution with "aliases" file, I like to see an example...