to address for sendmail using alias


I beleive that this will be my last question for now with sendmail. I have sendmail setup so that it is using alias's for sending to local users.  It sends the email to an external email address. It is now working correctly, but when the user receives it, the "To:" field lists the email address formated in the local server format.

email is sent to jsmith. jsmith has an alias that emails it to Jsmith gets the email at his address, but it in the "To:" field it says jsmith@localhost.localdomain.

Is there a place that I can change this, so that the shows up in the "To:" field?
LVL 12
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Since you have set and alias for the jsmith to so you are getting mail on that external address but Originally this mail is sent to jsmith@localhost.localdomain so that is the reason you are seeing that address in TO field.

I dont think that we can change this.

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
It should be possible by using a combination of
further more
can be useful.

These setups tends to be very specific in shades for every site, so a general cookbook like config is hard to give.
ryan80Author Commented:
that looks interesting, but the recipient domain and the masquerade_as names that I want to use are different. How would this work?

would be worth a look to have more influence to rewrites
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.