Sending mail through sendmail

i have linux ES 3.0. my machine name abc.net.in domain is same abc.net.in i am running sendmail on server and have 50 users who access the mail server. how can these users can send email to yahoo.com or anydomain.com users as one user@abc.net.in. i.e all outgoing mails should be rewritten as user@abc.net.in.
rocky_prgAsked:
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.

psimationCommented:
Have a look at this site: http://www.entrophy-free.net 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
giltjrCommented:
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:

    From:  user@abc.net.in

or you want

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


giltjrCommented:
O.K. I think I understand.  

However, is there a reason that you do not want to use your registred domain name (abc.com) 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.

giltjrCommented:
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

     abc.net.in   abc.com

In the virtusertable you would want:

     user@abc.net.in user.common@abc.com

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
Linux

From novice to tech pro — start learning today.