Modify the from header depending of destination domain in Exchange 2007

Hello.
I have an Exchange 2007 organization. One edge and 2 mailbox-cas-hub servers. I want to modify the "From" header depending of destination domain.
For example, if the destination domain is @example.com and the sender is
[email protected], the new sender must be changed to
[email protected] . The user1 has both email address added as smtp address and @newdomain.com was set as primary address to respond and receive emails.
I have tried with transport rule but I cannot create it, because I received an error when I want to modify the "From" value. The command and error message are:
Command:
New-TransportRule -Name 'Test' -Comments
'' -Priority '0' -Enabled $false -From
'[email protected]' -SentToScope
'NotInOrganization' -RecipientAddressContainsWords
'@example.com'
-SetHeaderName 'From' -SetHeaderValue
'[email protected]'
Error:
You can't set header 'From' with value
'[email protected]'
I have tried without "@" and only with the username, but I got the same error.
I have been the New-AddressRewriteEntry option, but on this command I cannot set a specific destination domain, only it can set an internaldomain and externaldomain parameters.
I would like to resolve this issue with Exchange 2007 tools or commands, but I guess this requirement can be done with a third-party tool, anyone knows any?
Thanks and regards.

I think what you're trying to do is pretty unusual, at least for Exchange. :-)
I don't know of anything that would run on Exchange that would be able to do that, but I think you can do it with something like Postfix.
http://www.108.bz/posts/it/conditional-address-rewriting-with-postfix/
http://comments.gmane.org/gmane.mail.postfix.user/228099
--- Rich Matheisen MCSE&I, Exchange MVP

Similar Messages

  • SIP Trunk Diversion (Cfwdall) inserting Domain in the FROM header of the originating PBX

    Hello,
    We recently performed an upgrade from 8.61 to 8.62. Since the upgrade, incoming off-net diversion (cfwdall) to the PSTN stopped working. Here is the call flow for our setup:
    PSTN caller-->AVAYA CM SIP TLS-->AVAY SES SIP-->CUCM-->CFWDALL-->Avaya SES SIP TLS-->Avaya CM-->PSTN.
    Calling from an internal SCCP Phone to another SCCP with CFWDall works fine. The problem is when a caller from the PSTN calls an SCCP phone with CFWDALL to PSTN cell phone the call fails at the Avaya with "407 Proxy Authentication required". I believe this because the FROM header has the domain of the Avaya and not the IP Address of CUCM.
    Prior to the upgrade, the Diversion SIP INVITE FROM header has the ip address of the CUCM server:
    INVITE sip:[email protected]:5060 SIP/2.0
    Via: SIP/2.0/TCP 10.170.99.12:5060;branch=z9hG4bK422a01feef6dc
    From: <sip:[email protected]>;tag=315634~10e1eefb-2ebd-4fac-98ce-62a72a88c661-62310000
    To: <sip:[email protected]>
    Post upgrade the CUCM server is sending the originating sip domain from the Avaya SES:
    INVITE [email protected]:5060 SIP/2.0
    Via: SIP/2.0/TCP 10.170.99.12:5060;branch=z9hG4bK4214471ca38c3
    From: <sip:[email protected]>;tag=315423~10e1eefb-2ebd-4fac-98ce-62a72a88c661-62309759
    To: <sip:[email protected]>
    I think this can be addressed with a SIP normalization script to replace the sip.avayadomain.com with the IP Address of the CUCM server sending the INVITE. I have yet have to implement a SIP normalization script and would like some expert help in creating the normalization script.
    Thanks.

    Hello,
    We recently performed an upgrade from 8.61 to 8.62. Since the upgrade, incoming off-net diversion (cfwdall) to the PSTN stopped working. Here is the call flow for our setup:
    PSTN caller-->AVAYA CM SIP TLS-->AVAY SES SIP-->CUCM-->CFWDALL-->Avaya SES SIP TLS-->Avaya CM-->PSTN.
    Calling from an internal SCCP Phone to another SCCP with CFWDall works fine. The problem is when a caller from the PSTN calls an SCCP phone with CFWDALL to PSTN cell phone the call fails at the Avaya with "407 Proxy Authentication required". I believe this because the FROM header has the domain of the Avaya and not the IP Address of CUCM.
    Prior to the upgrade, the Diversion SIP INVITE FROM header has the ip address of the CUCM server:
    INVITE sip:[email protected]:5060 SIP/2.0
    Via: SIP/2.0/TCP 10.170.99.12:5060;branch=z9hG4bK422a01feef6dc
    From: <sip:[email protected]>;tag=315634~10e1eefb-2ebd-4fac-98ce-62a72a88c661-62310000
    To: <sip:[email protected]>
    Post upgrade the CUCM server is sending the originating sip domain from the Avaya SES:
    INVITE [email protected]:5060 SIP/2.0
    Via: SIP/2.0/TCP 10.170.99.12:5060;branch=z9hG4bK4214471ca38c3
    From: <sip:[email protected]>;tag=315423~10e1eefb-2ebd-4fac-98ce-62a72a88c661-62309759
    To: <sip:[email protected]>
    I think this can be addressed with a SIP normalization script to replace the sip.avayadomain.com with the IP Address of the CUCM server sending the INVITE. I have yet have to implement a SIP normalization script and would like some expert help in creating the normalization script.
    Thanks.

  • MODIFY THE RESPONSE HEADER VALUE IN IIS BASED ON THE QUERY STRING IN THE REQUESTED URL

    We Hosted a directory on IIS.
    The Files in the directory are saved with a Guid values.
    when there is a request from the client for a given resource ,we need to fetch the file name from the query string and modify the reponse header :" Content-Disposition",So that the User can Download with the requested name

    Sounds like a question for the ASP.NET forums:
    http://forums.asp.net
    Or the IIS forums in case you want to write some kind of module to do this without involving ASP.NET:
    http://forums.iis.net/

  • Modifying the column header

    how to modify the column header in the table...
    MATNR, WERKS, DESC1, LGORT, MAKTX, LGOBE,LABST
    is not meaningful to the user....
    this is defined in the meRepMeta.xml
    how do i modify the column header

    actually the information is display on the jsp
    the following code will list the headername as describe in the xml
    see this :
    http://i192.photobucket.com/albums/z231/yzme/page2.jpg
    how do i modify it...
    the code is automatically generated when i import the xml to create MI Smart sync projetc
    <tr class="miHeader" >
    <% for(int col=0; col < colCount; col++) { %>
    <td class="1stCellHeader" ><theader><%=tableViewBean.getTableContent(0,col)></theader></td>
    <% } // end of a row %>
    </tr>
    public String getTableContent(int row, int column) {
    Vector data = (Vector) tableContent.elementAt(row);
    //Check for end of Vector
    if (row >= tableContent.size()) {
    return "";
    return data.elementAt(column).toString();
    Message was edited by:
            yzme yzme
    Message was edited by:
            yzme yzme

  • How to modify the soap header of ebxml control?

    I need to change the soap header information of the ebxml control
    from
    <eb:CPAId>http://www.openuri.org/cpa</eb:CPAId>
    to
    <eb:CPAId>MyString</eb:CPAId>
    and I want to add some additional information to the header such as the wsse feature
    <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility">
    <wsse:UsernameToken>
    <wsse:Username>1234</wsse:Username>
    <wsse:Password>5678</wsse:Password>
    <Organization>abc</Organization>
    <Domain>DEFAULT</Domain>
    </wsse:UsernameToken>
    </wsse:Security>
    Does anyone know where I can change the type value?
    Thanks, Kun

    Your code works. But if I place the TextInput in the formItem
    and form tags, the Y value becomes 0. You can try this one:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Form paddingBottom="0" paddingTop="0"
    paddingRight="0">
    <mx:FormItem label="Title:">
    <mx:TextInput width="275" id="newSongTitle"/>
    </mx:FormItem>
    <mx:FormItem>
    <mx:Button id="submitSongData" label="Add Song"
    width="150"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Text text="{newSongTitle.x}" width="322"/>
    <mx:Text text="{newSongTitle.y}" width="322"/>
    <mx:Button label="set Y" click="{newSongTitle.y =
    newY.value}"/>
    <mx:NumericStepper id="newY" value="50" minimum="0"
    maximum="400"/>
    </mx:Application>

  • TS2998 Help! My Mac mail uses another person's name in stead of mine in the "from" heading when trying to send e-mail. How can I fix this?

    Mac mail started using another person's name instead of mine. In the "From" line it shows someone other than me so the receipient will not know I am sending them an e-mail. HELP!, This is crazy. Is there a fix?

    Does this problem happen EVERY time you send an email?
    Do you see the wrong FROM entry before you hit the send button? Or does the recipient report seeing another name other than yours?
    Do you recognize the incorrect name being shown? Is it something you or someone else using your machine have ever used? Is it a name you have never heard of before?
    Go to your SENT folder in Apple Mail. What do you see when you open one of your SENT emails, in the FROM slot? Is the name correct or incorrect?
    Also, I don't understand your comment "I noticed it when I try to send a link via e-mail to another person." are you saying that when you paste a link into an email to someone that your name in the FROM field changes? Where are you putting the link, in what place in the email?

  • Split domain with Exchange 2007

    Hi,
    I have been asked by my bosses to look at moving some of our users onto Exchange online and I could do with some help before I head down that way.
    At present I have an Exchange 2007 Server sat in my office which I am planning to replace with a new Exchange Server in the next few months, but in the mean time we are starting to have a more mobile set of workers who need to access their email from multiple
    external locations.
    We are also at the point where we need to purchase 12 extra exchange and office licenses.
    So the idea is, we buy Office 365 including Office for the extra 12 users and create a split domain between our Exchange Server and the Office 365 hosted exchange server.
    Can anyone give me any pointers on how to do this? We are not planning to go down a totally hosted solution in the next few years.
    Thanks,
    Anthony

    Depends on what exactly you mean by split domain. If you are only concerned about mail flow, you can follow this setup:
    http://community.office365.com/en-us/w/exchange/786.simple-domain-sharing-for-smtp-email-addresses.aspx
    If you want to have free/busy and the other features across the two organizations, you will have to do a Hybrid deployment:
    http://technet.microsoft.com/en-us/library/hh852414.aspx

  • How to setup the From header  in fullname and email address format

    when I sent mail from the messaging express , the mail that I sent cannot show the sender in the fullname and email address format. I use webmail and other mail client . It show only email address. I don't know how to setup this . I use the SUN JES messaging server 6.0 SP1 .

    exactly so.
    in general, for any configutil setting:
    0=off=no
    1=yes=on

  • Javafx media component can not modify the http header. javafx media component can not append parameter in url such as m3u8?channel=2

    1. When our HLS stream server check user name and password. In http header such as the cookies value. There are not place for it.
    2. The mp4 can append ?parameter=value. But m3u8 can not be appended.

    1. When our HLS stream server check user name and password. In http header such as the cookies value. There are not place for it.
    2. The mp4 can append ?parameter=value. But m3u8 can not be appended.

  • How to modify "From" header when certain condition met on "Return-Path" header

    We are activating TLS enforcement (STARTTLS) between our customer domain (@tls.customer.com) and their business partner (@tls.partner.com) on internet MTA (Cisco ESA C370 running AsyncOS 8.0.1-023)
    Customer is managing their internal mail infrastructure and have user mail domains based on country. So for example user X in Switzerland will have sender address: [email protected]
    My understanding is that their are using IQ Suite software to re-write sender address into [email protected] to be able to enforce TLS based on this domain.
    So far so good until the business partner at receiving end mentioned that they receive reply-to: [email protected] but from: [email protected]
    And this will interfere with the policy at their end that require both sender header fields to be the same.
    My customer mentioned that they have modified both "From" and "Sender" fields using IQ Suite but somehow on our IronPort we are seeing both appears on "From":
    From: <[email protected]>, <[email protected]>
    And on message tracking I can see DKIM matching on [email protected] rather than on [email protected]
    Message 218480027 (51299 bytes) from [email protected] ready.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 matched per-recipient policy DEFAULT for outbound mail policies.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 is not signed. No domain key profile matches [email protected]
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 successfully signed. DKIM ch.customer.com-DKIM matched ch.customer.com.
    10 Feb 2015 09:13:27 (GMT +01:00)     Message 218480027 queued for delivery.
    So I suspect that customer internal mail still has [email protected] on "From" header and [email protected] on "Return-path" header.
    The question is how can I modify "From" header to match that on "Return-path" before sending it to partner.
    Appreciate the feeback.

    From my tests and knowledge.
    We cannot manipulate the From: header to use the variable of the return-path/envelope sender.
    However if you know specifically what to re-write then we can specially re-write the From: header to a specific address.
    This is done as;
    Content filter or message filter condition set
    Action would be:
    insert-header("From", "[email protected]")
    This is all i can think of for this type of request

  • How can I change the "From:" field in iOS Mail?

    This is a weird one.
    I have a gmail work email account that has been set up for me. There's a primary email address assigned to it, and a secondary one (which is the one I want to use).
    No problem at all sending from the secondary account on my MacBook Pro. I just hit the drop down menu by the "From:" field, and I can select it from there.
    However, when I send from my iPhone, I'm only given the option of sending from my primary email address, not the secondary one. This is despite the fact that I've synced Mail accounts via iTunes.
    Any idea how I might fix this so I can send from the secondary account on my iPhone?

    First of all, please fill in the Computer Model and Operating System fields on your My Settings’s profile (and click Save). This is essential information that should always be provided when asking for help.
    Now, what does “I can't change it” mean? What appears in the From header of the messages you send is determined by your Mail > Preferences > Accounts > Account Information settings...

  • "From" header in Mail no longer working correctly.

    The "From" header in Mail is working differently, and not of any use, in Yosemite. Prior to the update I could click on a recipient's name, then click the "From" header above, and get a list of all emails from that particular recipient. Now, regardless of which recipient is highlighted, clicking the "From" header sorts all emails from each recipient together, but in alphabetical order. So now to find all the emails from a recipient's name starting with an "M", I have to scroll through all the A's, B's, C's, etc until I get to the M's. Is anybody else having this issue & is there a way to fix it?

    Problem solved. I guess I didn't type the dash correctly. Re-did it and now the hotkeys appear in the accounts list and they work when I apply them.

  • Removing Exchange 2007 from SBS 2008 (In an Exchange 2010 Coexistance Scenario) - In order to remove 2007 Mailbox Objects from Active Directory and remove the SBS2008 server completely

    I'm trying to remove Exchange 2007 from an SBS 2008 server
    (Server 2008 Standard FE).  My ultimate goal is to completely remove the SBS 2008 Server from the network environment.
    We have an Exchange 2010 Coexistence Scenario and Mailboxes/Public Folders/etc have been moved over to the 2010 mail server, on Server 2008 R2.
    I have moved all Shares, FSMO roles, DHCP, DNS, etc over to their respective servers.  We have two full blown DC's in the environment.
    I'm ready to remove Exchange 2007 from SBS 2008 and DCPROMO the server.  I can NOT seem to find a TechNet article that shows me how
    to proceed in this kind of scenario.  I am trying to use the TechNet article:
    http://technet.microsoft.com/en-us/library/dd728003(v=ws.10).aspx
    This article references Disabling Mailboxes, Removing OAB, Removing Public Folder Databases, then uninstalling Exchange using the Setup Wizard. 
    When I go to Disable Mailboxes I get the following error:
    Microsoft Exchange Error
    Action 'Disable' could not be performed on object 'Username (edited)'.
    Username (edited)
    Failed
    Error:
    Object cannot be saved because its ExchangeVersion property is 0.10 (14.0.100.0), which is not supported by the current version 0.1 (8.0.535.0). You will need a later version of Exchange.
    OK
    I really don't see why I need to Disable Mailboxes, Remove OAB and Public Folder Databases since they have been moved to 2010.  I just want
    to remove Exchange 2007 and DCPROMO this server (actually I just want to remove any lingering Exchange AD Objects referring to the SBS 2008 Server, using the easiest and cleanest method possible).
    Can someone point me in the right direction?
    Thanks!

    Hi,
    Based on your description, it seems that you are in a migration process (migrate SBS 2008 to Windows Server
    2008 R2). Now, you want to remove Exchange Server and demote server. If anything I misunderstand, please don’t hesitate to let me know.
    On current situation, please refer to following articles and check if can help you.
    Transition
    from Small Business Server to Standard Windows Server
    Removing SBS 2008 –
    Step 1: Exchange 2007
    Removing SBS 2008 – Step 2:
    ADCS
    Removing
    SBS 2008 – Step 3: remove from domain / DCPROMO
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft
    does not guarantee the accuracy of this information.
    Hope this helps.
    Best regards,
    Justin Gu

  • Mail and Exchange 2007 won't allow customizable "From" Header

    I use Mac Mail with an Exchange 2007 server. In Preferences > Accounts, under "Account Information," I have two different e-mail addresses (e.g., the address for that exchange server and a gmail address) listed in the "Email address" field. When I create a new message, there is a pull-down menu next to "From:" that is supposed to allow me to choose which of those two e-mail addresses should appear in that field.
    However, regardless of which e-mail address I choose, the e-mail message always has the "From:" address for the exchange server. In other words, it won't allow me to customize the "From:" field. This worked properly in the past and I've been using it for awhile, but it quit working when I re-installed Mail. Everything else works perfectly.
    Anyone else experiencing this? Any recommendations?
    Thanks!

    Thanks for your message.
    Actually, changing "Reply-To" isn't what I need. I need the proper e-mail address to show in the "from" field; for example, because I need to send messages to a server and those messages need to come from a specific e-mail address.
    And, the pull-down message is definitely next to the "From" field whenever a new message is generated.
    I actually don't receive messages in Mail for the other two accounts (e.g., I use Gmail's web interface for Gmail messages). I'm simply needing to modify the "From:" field in OUTGOING messages, something that used to work but quit working recently.

  • Can autoreply use Mail attribute for From header in autoreply?

    Hi:
    We've recently moved from 5.x to 6.2, and users are complaining that autoreply/vacation messages are coming with the user's mailEquivalentAddress in the From: header rather than the email address that is in the Mail attribute. In our case, Mail is set to [email protected]
    Here's our version info:
    jeffw@ash:/ims/log# imsimta version
    Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
    libimta.so 6.2-3.04 (built 01:43:03, Jul 15 2005)
    SunOS ash.usg.tufts.edu 5.9 Generic_118558-08 sun4u sparc SUNW,Netra-T12

    Well, "noreverse" will prevent "from" address from being rewritten.
    However, from your description of the problem, it's likely to have no effect at all.
    A normal rewrite is when a "mailAlternateAddress" gets rewritten. You said you use "mailEquivalentAddress". That should never be rewritten. If you're indeed using "mailAlternateAddress", then it might work. Try it.... If you're really using, "mailEquivalentAddress", then Sanjay is barking up the wrong tree......

Maybe you are looking for