to address for sendmail using alias

Ok,

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.

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

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

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

x
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.

upanwarCommented:
Since you have set and alias for the jsmith to jsmith@externalserver.com 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.
0

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
roemelboemelCommented:
It should be possible by using a combination of
MASQUERADE_AS(`host.domain')
FEATURE(`allmasquerade')
further more
FEATURE(`masquerade_envelope')
or
MASQUERADE_DOMAIN(`otherhost.domain')
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.
0
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?

0
roemelboemelCommented:
FEATURE(`domaintable')
FEATURE(`genericstable')
would be worth a look to have more influence to rewrites
0
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.