• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 417
  • Last Modified:

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?
0
ryan80
Asked:
ryan80
  • 2
1 Solution
 
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
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now