How to change email sender's domain name based on recipient's local or public domain name
Posted on 2008-06-14
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 : email@example.com
2. ISP POP3 account : firstname.lastname@example.org
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 email@example.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).
- 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 : firstname.lastname@example.org
- 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 email@example.com, with hope user3 can grab the email from ISP POP3 account.
Because default primary SMTP for each user-mailbox is mylocaldomain.local then user3 will receive email from user1 as firstname.lastname@example.org.
So when user3 tries to reply the email it will send to (reply-to) email@example.com 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 firstname.lastname@example.org NOT email@example.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.