Sending mail through sendmail

i have linux ES 3.0. my machine name domain is same i am running sendmail on server and have 50 users who access the mail server. how can these users can send email to or users as one i.e all outgoing mails should be rewritten as
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have a look at this site: gives excellent pointers for configuring sendmail (amongst others) on ES. Basically, you have to configure the server to authenticate the smtp requests from your users ( else you have an open relay server which will get you blacklisted in no time at all).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Just to verify.  You want every email that that is sent out to say that it is from one specify username, or you want it to say that specific user's name.  That is:


or you want

     Bob's to say From:
    Jane's to say From:
rocky_prgAuthor Commented:
suppose sends mail to domain   for  user gltjr    then user should get a mail with from field read as
we is local domain not registered  where is  our  linux server
and is registerd domain colocated  outside our lan "common" is user on
now when user at gltjr send mail to then it would be fetch by our server and delivered to  similary for all users.

O.K. I think I understand.  

However, is there a reason that you do not want to use your registred domain name ( for e-mail internally?

I will have to check, but I am 99% sure that you can configure sendmail to change the domain name on an e-mail.  I am not sure how easy it is, of if it can be done, to get senmail to change the e-mail box name (the part before the '@').

 I know that I have used a smtp server that can do this.  However, I am not sure if it is part of the standard sendmail.

O.K. I am not 100% sure how to do this, but I will point you in the direction and you can research yourself.

You need to look at the domaintable and virtusertable configuration files.

In the domaintable you would want something like

In the virtusertable you would want:

I bleive that if you just left "user" as "user" instead of converting it to "user.common" you would only need the domaintable configuration file.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.