Solved

How to change email sender's domain name based on recipient's local or public domain name

Posted on 2008-06-14
4
990 Views
Last Modified: 2010-05-18
Hi,

We have a local mail server with exchange 2007 & windows server 2003.

Each our user (user1, user2, user3, and so on) has 2 email accounts, and set up on their Outlook.
1. Exchange account : user@mylocaldomain.local
2. ISP POP3 account : user@mypublicdomain.com

On Outlook:
User will have Exchange account as their default email for sending.

On local mail server:
each user has user-mailbox user@ mylocaldomain.local and each user is also set up as external mail-contact user@mypublicdomain.com

I set those settings on local mail server with a hope that each user will have ability to choose to send email to other user's mailbox locally (exchange account) and externally (pop3 account).

Scenario:
- User1 sends email to user2 and user3
- User1 has default exchange account activated on his/her Outlook
- User1 has default smtp address on local mail server : user1@mylocaldomain.local
- User1 knows that user2 is in the office so user1 will send to user2@ mylocaldomain.local
- User1 knows that user3 is in another city for 3 months so user1 will send to user3@mypulicdomain.com, with hope user3 can grab the email from ISP POP3 account.

Problem:
Because default primary SMTP for each user-mailbox is mylocaldomain.local then user3 will receive email from user1 as user1@mylocaldomain.local.
So when user3 tries to reply the email it will send to (reply-to) user1@mylocaldomain.local and this is not valid on the internet.

I want exchange 2007 can detect if  user1 send emails to any public domain name (mypublicdomain.com, yahoo.com, gmail.com, etc) then exchange 2007 will send that email as user1@mypublicdomain.com NOT user1@mylocaldomain.com

I know how to set multiple domain for user-mailbox and set mypublicdomain.com as our default smtp address, but when user1 wants to send email to user3 to reach user3's POP3 email account then it will fail because email will stay on locally instead. or am I wrong?

Please help me.
0
Comment
Question by:qoekqoek
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:LegendZM
Comment Utility
>now how to set multiple domain for user-mailbox and set mypublicdomain.com as our default smtp >address, but when user1 wants to send email to user3 to reach user3's POP3 email account then it will fail >because >email will stay on locally instead. or am I wrong?


No, it won't fail. When you associate multiple SMTP addresses to a single account, it will get to that user. The hub will make sure of it.  I would associate the default mailbox policy so the public domain is the primary SMTP.

Why do you need the .local for internal mail?
0
 

Author Comment

by:qoekqoek
Comment Utility
I think I was thinking wrong on how Exchange or Mail works.

I was thinking if....

user1@mylocaldomain.local send email
to: user2@mylocaldomain.local,   <--- to other local user email
      user3@yahoo.com      <-- to other external email address

then when email is delivered...

#1a.  user2 (having mailbox) will get the email like:
From : user1@mylocaldomain.local
To: user2@ mylocaldomain.local,
       user3@yahoo.com

#2a.  user3 (as contact) will get the email like:
From : user1@mypublicdomain.local   <-- this one changed by exchange
To: user2@ mypublicdomain.local, <-- this one changed by exchange
      user3@yahoo.com

So when email is replied....

#1b.  user2 will have:
From : user2@mylocaldomain.local
To: user1@mylocaldomain.local
      user3@yahoo.com

#2b.  user3 will have:
From : user3@yahoo.com
To: user1@mypulbicdomain.local,   <--- landed on my ISP POP3 account
      user2@mypulbicdomain.local     <--- landed on my ISP POP3 account

Note: user1 and user2 have user-mailbox on exchange and only have 1 email address which is @mylocaldomain.local

I thought those are how exchange works, or at least those could be done by exchange. I guess I am wrong.

-----------------------------

And i have tried this:

user1 and user2 have user-mailbox on exchange and only have 1 email address which is @mypublicdomain.com (our ISP POP3 mail domain name.)

The problem i have, when

user1 send email
to: user2  <--- to other local user email
      user3@yahoo.com      <-- to other external email address

User3 will never have problem when reply the email, will be to: user1@mypublicdomain.com, user2@mypublicdomain.com

But the email will only stay on user2 mailbox on local mail server.  What if user2 is on vacation for 3 months can not reach local mail server, and wanting to have his/her email to be set to ISP POP3 mail instead.

Thanks
0
 
LVL 15

Accepted Solution

by:
LegendZM earned 500 total points
Comment Utility
So if I understand you correctly, you actually want to utilize the @address.local instead of the public ISP real domain for email? why might I ask?

So that when user 1 sends an email to user 2, it goes to his @domain.local address, but then if a user3 with a public address is also in the to field he cannot reply to users 1 or 2?

You should set the default SMTP address as the real domain. If he wants to access his mailbox outside the company look into implementing Outlook Web Access
http://technet.microsoft.com/en-us/library/bb124558.aspx

http://technet.microsoft.com/en-us/library/bb232184.aspx

http://www.microsoft.com/downloads/details.aspx?FamilyID=EE292C13-C933-4F59-91D9-16E4B38F5E34&displaylang=en
0
 

Author Comment

by:qoekqoek
Comment Utility
>> So if I understand you correctly, you actually want to utilize the @address.local instead of the public ISP real domain for email?

Kinda, if exchange can do what I am asking in this thread title.

>> but then if a user3 with a public address is also in the to field he cannot reply to users 1 or 2?

No he can't. Actually with this thread I got the idea that my assumption how exchange works is totally different.

>>You should set the default SMTP address as the real domain. If he wants to access his mailbox outside the company look into implementing Outlook Web Access

That's something I want to make sure. Just now I have already set up OWA, tested it and run okay.

LegendZM, your help is much appreciated!

Thank you.
0

Featured Post

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
This video discusses moving either the default database or any database to a new volume.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now