redhat@xxxxxxxxxxxx wrote: > Hi Guys, > > I have a redhat linux 8.0 box running as a mail server with the > following sendmail version: > > [root@kuldipmanak mail]# rpm -qa sendmail > sendmail-8.12.8-9.80 > > My mail is working fine from all the mail clients, but when I try to > send mail from the command line the from feild has the following > entry: > > simran@xxxxxxxxxxxxxxxxx > > mail is a cname in dns for this box. The entry should just be > simran@xxxxxxxxxxxx instead of the mail.chamkila.org. I have checked > my /etc/hosts file and do not see any incorrect entries. Any ideas > as to why this might be happening? Any suggestions would be grately > appreciated. Please take look at /etc/mail/sendmail.mc. Specifically the MASQUARADE_AS option. When you have uncommneted and set this option, recreate your sendmail.cf file using the instructions found at the top of sendmail.mc. Now restart sendmail so it will use the new sendmail.cf file and try your mail command again. BTW: Further study should include adding the following define in sendmail.mc... define(confDOMAIN_NAME, `mail.mydomain.com')dnl See /usr/share/sendmail-cf/README. Search for confDOMAIN_NAME Steve Cowles -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list