qoekqoek
asked on
How to change email sender's domain name based on recipient's local or public domain name
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.
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.
ASKER
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
I was thinking if....
user1@mylocaldomain.local send email
to: user2@mylocaldomain.local,
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
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
user2@mypulbicdomain.local
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
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
>> 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.
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.
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?