MimeMessage.reply() issue with MS Exchange Server 2007 Emails

I have an application that retrieves emails from an MS Exchange Server 2003 mailbox. The data from each message is read, validated and conditionally loaded to a table. If the message doesn't pass validation, a rejection email is sent back to the sender with an error message and a copy of the email. (We're using Java 1.5. However, I test with both 1.5 and 1.6.)
Also, if the message passes validation, positive notification is sent back to the sender.
Both processes use the method: javax.mail.Message.reply()It's coded as:
MimeMessage reply = (MimeMessage) message.reply(false);My organization is in the process of migrating to MS Exchange Server 2007. We've found that the reply() method no longer finds the sender method, thus unable to create a reply message. The error message we receive is:
javax.mail.SendFailedException: No recipient addresses
     at javax.mail.Transport.send0(Transport.java:110)
     at javax.mail.Transport.send(Transport.java:80)
     at org.ccci.gms.datacollector.DataCollector.sendReply(DataCollector.java:514)
     at org.ccci.gms.datacollector.DataCollector.processMessages(DataCollector.java:162)
     at org.ccci.gms.datacollector.DataCollector.main(DataCollector.java:101)After creating the MimeMessage object from the reply() method, I printed out the email header detail from both 2003 and 2007 messages. You'll note from below that the "To" or recipient address is missing from Server 2007.
MS Exchange 2003 works fine
From: [email protected]
To: [email protected]
Subject: Re: Report
In-Reply-To: <[email protected]>MS Exchange 2007 no longer works
From: [email protected]
Subject: Re: Reports
In-Reply-To: <[email protected]>I know I could just use the "addRecipient()" method to get around this problem. I wanted to know if anyone has encountered this issue. Please share the resolution. Any suggestions will be greatly appreciated.
Thanks,
LaelW

When the original message is accessed using IMAP, the reply method uses the information in the
IMAP ENVELOPE to determine where to send the reply. It first looks for the Reply-To address
in the ENVELOPE, then the From address.
Interestingly, when not using IMAP, the getFrom method returns the Sender header if the From
header is empty. The IMAP-specific code doesn't do that, although perhaps it should.
It would be interesting to compare the ENVELOPE data from the protocol trace in the two cases.
The ENVELOPE data will follow this syntax:
envelope     = "(" env-date SP env-subject SP env-from SP
          env-sender SP env-reply-to SP env-to SP env-cc SP
          env-bcc SP env-in-reply-to SP env-message-id ")"
So it's the first three address fields after the Subject that are relevant. If the From and Reply-To
fields are NIL, but the Sender field has a valid address, let me know. I should probably fix the
IMAP provider to fall back to the Sender field if the From field is missing.

Similar Messages

  • Oracle HRMS Integration with Microsoft Exchange Server 2007

    I would like to know if it is possible to integrate Oracle HRMS 11.5.10.x with Microsoft Exchange Server 2007 using Microsoft Identity Lifecycle Management (ILM) 2007?
    Has anyone ever come across something like this and successfully achieved it? Does anyone know of a step-by-step guide (or forum discussion) to achieve this?
    Response(s) will be highly appreciated.

    hi,
    We actually implemented integration of SAP with microsoft exchange server. It is not necessary for server and IIS to be in the same machine.
    regards,
    Ganesh.N

  • Issues with 2010 exchange server DAG

    Hello, for some reason, at some point today our monitoring alerted us that the application status is 'down' on our DAG on exchange.
    In the cluster failover manager, each host had written the following log entry:
    "Cluster node 'SERVERNAME' was removed from the active failover cluster membership. The Cluster service on this node may have stopped. This could also be due to the node having lost communication with other active nodes in the failover cluster. Run
    the Validate a Configuration wizard to check your network configuration. If the condition persists, check for hardware or software errors related to the network adapters on this node. Also check for failures in any other network components to which the node
    is connected such as hubs, switches, or bridges."
    I followed the article based on the issue
    But was unable to locate the problem. A few errors we returned regarding a single point of failures on the NICs for the exchange servers, labelling them as a single point of failure, but otherwise, the exchange servers within the DAG seem OK.
    I have also checked the DAG settings within Exchange Management Console to see if there is any issues within that and I can see all databases are healthy and synced, with one server having the Databases mounted which is normal behaviour. Despite all this
    I am still unable to see any actual issues which could lead to why the cluster of the DAG is showing as down.
    I have taken a look within the cluster management MMC and can see that there is nothing listed within the 'Cluster Core Resources', other than the clusters IP, surely there should be an application or directory listed here ?
    any help or advice would be greatly appreciated.
    thanks

    Hi,
    Do you use the Validate a Configuration Wizard to review the network configuration?
    If not, please use the Validate a Configuration Wizard to review the network configuration to check result.
    And please make sure the cluster service is running on these nodes.
    Please check if Antivirus is running, if there is Antivirus, please disable temporarily.
    Please make sure the Network Binding order should be correct.
    Besides, please check the Cluster Events log to see if there is any related error message.
    Best regards,
    Belinda Ma
    TechNet Community Support

  • Backup Issue of exchange server 2007 mailbox store

    Dears
    Exchange server 2007 with CCR clustering
    I have got a problem with the backup of one of my mailbox store. Its going till the last and giveing the final error as follows:-
    V-79-57344-65247 - A failure occurred reading an object.
    Also the warning as follows:-
    Backup- \\mailserver.domain\Microsoft Information Store\First Storage Group
    WARNING: "\\mailserver.domain\Microsoft Information Store\First Storage Group\Database" is a corrupt file. This file cannot verify.
    Backup V-79-57344-34108 - An unexpected error occurred when cleaning up snapshot volumes. Confirm that all snapped volumes are correctly resynchronized with the original volumes.
    Does it mean my information store is really a corrupted file. It has been properly monted and logs are genearting.
    Even when I checked the last full backedup log file from the management shell it clearly shows the backing up is properly happened on the log files.
    When I checked the event log of Exchnage server I can see these logs:-
    Event ID 401, 403 errors
    The size of the problem store is 308 GB.
    One of the other store with 46 GB is backing up without any issue

    Hi,
    If you have a space issue with the Exchange server, you can upgrade drives on active node and passive node one by one. It is not recommended to upgrade them at the same time.
    For more information about upgrading Exchange 2007 CCR active node or passive node, here are some helpful threads for your reference.
    Upgrade hard drives on passive node. Process and procedure
    http://social.technet.microsoft.com/Forums/exchange/en-US/08b9e893-87c9-48c3-bab2-91027cc09949/upgrade-hard-drives-on-passive-node-process-and-procedure?forum=exchangesvravailabilityandisasterrecoverylegacy
    Upgrading hard drives in exchange server
    http://social.technet.microsoft.com/Forums/exchange/en-US/0e4514f9-76da-44d2-9dec-a3be5add79b1/upgrading-hard-drives-in-exchange-server?forum=exchangesvravailabilityandisasterrecoverylegacy
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Migration of Unity users from MS Exchange server 2007 to 2010

    Hi,
    I am having Unity 7.0 with MS Exchange server 2007,now want to transfer the users and Unity mailboxes to MS Exchange server 2010. Want to know the procedure. Can anyone help me out?

    The way you're doing it has two very high hurdles.
    First, you have to get the data out of an offline server and into Office 365.  That's hardly a trivial task.  If the server were online and reachable by the Internet you could use a move request or a third-party tool like MigrationWiz.
    Second, if you do get the mail moved, you will want to synchronize the legacyExchangeDN attribute from the old organization into an X500 proxy address in Office 365 for all mailboxes to preserve mail replyability.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Exchange server 2007, whether to extract the list who's opened, downloaded or executed

    Hi all,
    With an Exchange server 2007 system and Outlook 2007 is used to have access to for the staff.
    Is there any possible way to get the emplyee-list whom has opened, downloaded or executed the attached files in mails that are generally determined as the Ransom-ware files or Spear-phishings or spyware files in use's Inbox under the
    Exchange server 2007 system.
    Can anyone help provide me that Exchange server 2007 has such a monitoring & audit functionalities to retrive the user activities logs who has triggered the acctached files which are generally considered as the Ransom-ware files or Spear-phishings
    or spyware files 
    Your guide and tips would be appreciated in advance. Thanks and regards.

    Thank you for your response and before I close this session, let me please ask you one more last question below.
    According to your response above and provided that mailbox audit is set to be logged for all users, for example, and among mailbox actions as viewed as an image file below, what action log does that describe the attached files that have been whether to
    be downloaded, executed( opened )?
    Action
    Description
    Administrator
    Delegate
    Owner
    Copy
    An item is copied to another folder.
    Yes
    Yes
    No
    Create
    An item is created in the mailbox. (For example, a message is sent or received.) Note that folder creation isn't audited.
    Yes*
    Yes*
    Yes
    FolderBind
    A mailbox folder is accessed.
    Yes*
    Yes**
    No
    HardDelete
    An item is deleted permanently from the Recoverable Items folder.
    Yes*
    Yes*
    Yes
    MessageBind
    An item is accessed in the reading pane or opened.
    Yes
    No
    No
    Move
    An item is moved to another folder.
    Yes*
    Yes
    Yes
    MoveToDeletedItems
    An item is moved to the Deleted Items folder.
    Yes*
    Yes
    Yes
    SendAs
    A message is sent using Send As permissions.
    Yes*
    Yes*
    Not applicable
    SendOnBehalf
    A message is sent using Send on Behalf permissions.
    Yes*
    Yes
    Not applicable
    SoftDelete
    An item is deleted from the Deleted Items folder.
    Yes*
    Yes*
    Yes
    Update
    An item's properties are updated.
    Yes*
    Yes*
    Yes
    Further, would that all be availble from Exchange 2007 for the mail-box auditing function for the target of the  assumed ransomware files or spyware files triggered in a stored mail in Inbox?
    Thanks and regards,
    Lee, Peter Byoungki

  • Exchange server 2007 automatic transfert

    Hi all,
    I have a strange problem with my Exchange server 2007 : since several days, all my incoming and outcoming mails from Exchange server are automatically transfered to my admin mailbox.
    The messages are like "Microsoft Exchange from ..." and I have the original message attached to the email.
    I don't find where to disable this option and how it activate alone ... :/
    Anyone know this problem ?
    Best regards,
    Billy
    Billy LAILLE

    Hi Ed,
    Ok you were right.
    Journaling was activated for my mailbox under Transport Hub.
    Thanks a lot for you help,
    Billy
    Billy LAILLE

  • HELP - Exchange Server 2007 Transport Rule Issue

    Hi all,
    sorry if here is not the place to put my question but I did not find another forum, so if anyone can help me I appreciate.
    - I have an Exchange Server 2007 SP3 environment with 1 MBX Server and 3 CAS/HUB Servers.
    - I have created a Transport Rule that said:
    "all emails that have @test.com in BCC field are dropped off except one group can send" .
    The issue is the rule doesn´t work.
    Anyone can help me, please?
    Thanks in advance.
    Luiz

    The Exchange previous versions forums are here: 
    http://social.technet.microsoft.com/Forums/en-US/category/exchangeserverlegacy
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Hidden Contact Subfolders are visible on iPhone after sync with Exchange Server 2007

    Hello,
    We have encountered an issue where synchronizing the iPhone with Contacts from an Exchange Server 2007 mailbox, causes hidden contact subfolders (from Outlook) to be visible and appear in the Groups list in the Contacts App on the iPhone.  This does not occur with Exchange Server 2010 mailboxes.
    We have a 3rd party application that creates hidden subfolders in the default Contacts folder on Exchange Server 2007 mailboxes.  The hidden folders do not display in the Outlook client, Blackberry or on an Android phone.  We did see that they were showing up in Outlook Web Access until we applied this Microsoft Exchange Server 2007 Service Pack 3 Rollup 2 patch unto the Exchange server:
    http://support.microsoft.com/kb/2210042 - A sub contact folder is still visible after you set the "PR_ATTR_HIDDEN" attribute to "True" in an Exchange Server 2007 environment.
    After the patch was applied, the hidden contacts do not show up anywhere else.  However, when we synced the mailbox to an iPhone and synced existing contacts, all of the hidden folders appear in the Contact Groups list.  Is there a way to hide the hidden sub contact folders on the iPhone and prevent them from appearing in the Contact Group lists?
    Any help provided would be most appreciated.
    Thanks and Best Regards

    Hi SBuchan,
    I have an open case with Microsoft about it.  It is an issue with ActiveSync in Exchange 2007 that sends the hidden objects.  Microsoft tried to resolve this in Exchange 2010 by sending a delete message after sending the hidden objects to remove them from the device.  Am awaiting to see if they will approve a design change to Exchange 2007 ActiveSync to prevent the synching of hidden objects.

  • Hi, in our Enterprise environment, we have a single mac with Mavericks version 10.9.2 and Office for Mac 14.4.1. When setting up outlook, we are trying to connect to a mailbox on exchange server 2007.

    Hi, in our Enterprise environment, we have a single mac with Mavericks version 10.9.2 and Office for Mac 14.4.1. When setting up outlook, we are trying to connect to a mailbox on exchange server 2007. We put in the EWS details in the server field since our autodiscover function is not functioning. But still it doesn't work. There are no errors, no popups. We turned on the logging and in the logs, it says a error of -3259. We are stuck and any help will be really appreciated.

    I have a customer experiencing exactly the same issue. Their computer is running Windows 7 Pro with Office 2007 SP3. After seemingly exhausting all troubleshooting options, I backed up their data, formatted the hard drive and performed a clean install of
    Windows and all their applications. It didn't solve the problem!
    What's strange is the customer also has a laptop computer, running the same version of Outlook, and that doesn't experience any problems connecting to Office 365 on the same network.
    My next step is to send the customer a new ADSL modem/router to try.
    I have another customer on Office 365, also running Outlook 2007, and they also experience issues with emails sitting in the outbox while Outlook displays the status message “Outlook is trying to retrieve data from the Microsoft exchange server outlook.office365.com.”
    In this case Outlook doesn't freeze/stop responding, like it does for the first customer I mentioned.

  • Mail / Calendar with Exchange Server 2007

    Hi all,
    We have a problem with Apple Mail and Calendar (Mountain Lion) connected to an Exchange Server 2007.
    Apple Mail for no reason doesn't show the available data on the server. At first all goes right but after a few hours the data get corrupt. Folders disappear, mails aren't shown, ... The folders and mails are there in the server. I can check that with Outlook for Mac or on a collegues machine on Windows.
    I tried:
    - deleting the mail cache and mail data and restart
    - removing the accounts and setting them up again
    - creating a new user and trying mail in that user
    None of those solved my problem.
    Apple Calendar doesn't sync its data correctly. Example:
    I create an event in calendar A. From that event I onvite calendar B to join the event. So far, so good. Everything just syncs fine. Then for some reason I delete the event from calendar A. In the server the event is still there. I checked in Outlook. This error is reproducable.
    I tried:
    - naming the user to <WORKGROUP>\<user>
    - deleting the calendar cache and calendar data
    None of those solved my problem.
    Can anybody help me with this?

    Hi and Welcome to the Forums!
    The configuration I think you have is MS Exchange on the back end fronted (to the Internet) by Outlook Web Access (OWA). As such, Blackberry Internet Service is the interface between OWA and the BB...there is no direct interaction between the BB and the Exchange server. As such, only email will reconcile wirelessly in this configuration. Calendar, contacts, and other items must be reconciled via USB/BT tether.
    Now, that said, there is a free solution to do what you desire -- it's called BES Express. BES is BlackBerry Enterprise Solution and provides OTA sync of email, calendar, contacts, etc. Full BES is not free. But BES-X is. If you truly require full reconciliation of all things from Exchange, I recommend you research BES-X.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Newbie needs some direction with Exchange Server 2007

    I am in school and I have been given an assignment that is kinda hard for me.  I am not asking for answers but I am asking for direction.   If you guys can point me to some research that will help me It would be much appreciated. 
    Here is the scenario:
    Your organization plans to open a remote location that requires a server to host Exchange Server 2007
    with the CAS, Hub Transport, UM, and Mailbox roles. Your Senior Administrator has assigned you the
    task of choosing the hardware to support this server. Using the links below and internet research, design
    a server capable of hosting the previously mentioned roles and 1,000 mailboxes. Choose a processor,
    hard drive, and RAM.
    Here are the questions associated with the scenario:
    Questions
    1. What is the total cost of the server you designed?
    2. Would you recommend a multiple core processor? If so, why or why not?
    3. What is the minimum amount of RAM necessary?
    4. Would you recommend a RAID setup? If so, what RAID level? If not, what would you suggest for
    fault tolerance.
    Your guidance and expertise is much appreciated.  Just point me in the right direction for research....

    Hi Mikenater,
    Thank you for your question.
    1. What is the total cost of the server you designed?
    A:the total cost depend on the price of hardware and software in your country, we didn’t give an exact answer.
    2. Would you recommend a multiple core processor? If so, why or why not?
    A: I suggest we use the multiple core processor, because Exchange consume much hardware resources. including CPU,RAM and so on, when we use multiple core processor, Exchange will deal with a mount of request without no response. It is convent for us to manage
    Exchange server.
    3. What is the minimum amount of RAM necessary?
    A:  AS you said that a server to host Exchange Server 2007 with the CAS, Hub Transport, UM, and Mailbox roles. The minimum amount of RAM is 4GB. However, if there are 1000 mailbox, we suggest the RAM is higher, we could refer to
    the following link:
    https://technet.microsoft.com/en-us/library/bb738124(v=exchg.80).aspx
    4. Would you recommend a RAID setup? If so, what RAID level? If not, what would you suggest for fault tolerance. 
    A: Exchange 2007 have high availability for database, for example LCR,CCR,Scc or SCR, we could refer to the following link:
    https://technet.microsoft.com/en-us/library/bb124721(v=exchg.80).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • Need Documentation on how to intehrate Exchange server 2007 with SAP portal

    hi,
    i need some documentation on how to integrate microsoft Exchange server 2007 with SAP portal.
    can anybody help?

    Hi Payel,
    Pls check the links below..
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/7a/ec015c8446d447a83776d40f31c84f/content.htm">Link</a>
    Note : As specified in the document,  only the following versions of Microsoft Exchange server are supported:
    &#9679;     Exchange Server 2000
    &#9679;     Exchange Server 2003
    Regards,
    Venkat.

  • How to setup microsoft outlook 2011 with exchange server 2007

    How to setup microsoft outlook 2011 for Mac with Exchange server 2007?

    The folks who set up the Exchange Server should be happy to help you.

  • M4E with N73 - MS Exchange server 2007

    Hi Guys,
    maybe I am stupid, but I can't seem to get this thing to work,
    I have installed mail for exchange 2.3, finally the security setting is showing, I have approved the certificate but still I am getting the very general :
    "Error in Exchange server. try again later."
    to explain my steps:
    1. configure the connection to use the HSDPA/Cellular link.
    2. hostname: owa.domain.com , username and password.
    server is Exchange server 2007 and configured behind an ISA server. OWA 2007 from a browser works fine.
    please any assistance would be great, I don't even know how to approach it anymore.
    thanks in advance,
    Badsyntax (Simon)

    Hi Imran,
    As per my information Webcenter Suite 10.1.3.2 does not have any direct integration capability with MS Exchange Server due to DEEP LINK LIMITATION. Only possible work around is go for External Application SSO registration and then render that URL in IFRAME.
    As far as WEBCENTER INTERACTION is concerned i think its seprately licensed and eventhough it's free you need extra Hardware to Install and Configure.
    Regards,
    Vindhyachal Sharma

Maybe you are looking for

  • Ipod Restore Error

    Hi all, Sorry to make my first post here a cry for help, but desperate times call for desperate measures. For the past day or 2, my iPod has been stuck on the loading screen (apple logo) when turned on, and it is not being picked up by iTunes. From r

  • External drive won't mount w/o shutdown/startup

    I have about a two year old LaCie Firewire 400 external drive (w/two partitions) that I've run about three hours per week for backups (via SuperDuper). I have retired my old G3 iMac (Panther) and am now running a 3.06 iMac w/Snow Leopard. I am connec

  • Payment Run FPY1: Cheque request file to external system

    Hi, My business requirement is that in IS-U sometimes customers makes over payments which needs to be refunded back in case If they close the utility connections. In our case we need to make this payment by cheques. Technical requirement: Refunds wil

  • Is there a class for BigInteger in c++

    I am wondering whether there is a written class already for BigInteger in c++ I have to rewrite a java project in c++ and I need BigInteger to use.. Thanks in advance

  • Installation of CUE stucks at "boot helper"

    Hi all, I have call manager express 7.0(1) and trying to install cue 7.1. I am able to enter cue module and configure  bootloader mode.But once i type " boot helper" i get following error ServicesEngine boot-loader> boot helper nw_boot: 0 cue-install