Mail send failure caught in endless "resend" loop

So, I tried to send an email out via my iPhone and it failed to send. Now that email seems to be caught in an endless loop of "resend" attempts, all to no avail. Any ideas on how I might remedy the situation?

Delete the account on your iPhone then go to webmail for your email account and make sure your Drafts and Outbox folders are empty, then recreate the account on your iPhone.

Similar Messages

  • Intermittent mail sending failure - net_io_connectionclosed

    I am using:
    SQL Server 2012 (Service Pack 2 - Business Intelligence Edition)  11.0.5058
    .Net Version 4.5.1 (378675)
    Windows Server 2012 R2 Standard
    Exchange Server 2010 R2 (Hosted on a seperate server)
    I am getting the following error in the Reporting Services log intermittently for reports:
    emailextension!WindowsService_15!7cc0!10/16/2014-06:05:33:: e ERROR: Error sending email. Exception: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
       at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
       at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       --- End of inner exception stack trace ---
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider.Deliver(Notification notification)
    notification!WindowsService_15!7cc0!10/16/2014-06:05:33:: i INFO: Notification d4b91fc4-0cc5-464a-a927-af8c24e4fcc8 completed.  Success: True, Status: Failure sending mail: Failure sending mail., DeliveryExtension: Report Server Email, Report: Missed NDD
    Despatch, Attempt 0
    They try to send the mail via an exchange server that is hosted on a separate server, the report server email is set up as:
    <Extension Name="Report Server Email" Type="Microsoft.ReportingServices.EmailDeliveryProvider.EmailProvider,ReportingServicesEmailDeliveryProvider">
                    <MaxRetries>3</MaxRetries>
                    <SecondsBeforeRetry>900</SecondsBeforeRetry>
                    <Configuration>
                        <RSEmailDPConfiguration>
                            <SMTPServer>****.****.****</SMTPServer>
                            <SMTPServerPort>
                            </SMTPServerPort>
                            <SMTPAccountName>
                            </SMTPAccountName>
                            <SMTPConnectionTimeout>
                            </SMTPConnectionTimeout>
                            <SMTPServerPickupDirectory>
                            </SMTPServerPickupDirectory>
                            <SMTPUseSSL>
                            </SMTPUseSSL>
                            <SendUsing>2</SendUsing>
                            <SMTPAuthenticate>
                            </SMTPAuthenticate>
                            <From>****.****@****.****</From>
                            <EmbeddedRenderFormats>
                                <RenderingExtension>MHTML</RenderingExtension>
                            </EmbeddedRenderFormats>
                            <PrivilegedUserRenderFormats>
                            </PrivilegedUserRenderFormats>
                            <ExcludedRenderFormats>
                                <RenderingExtension>HTMLOWC</RenderingExtension>
                                <RenderingExtension>NULL</RenderingExtension>
                                <RenderingExtension>RGDI</RenderingExtension>
                            </ExcludedRenderFormats>
                            <SendEmailToUserAlias>True</SendEmailToUserAlias>
                            <DefaultHostName>
                            </DefaultHostName>
                            <PermittedHosts>
                            </PermittedHosts>
                        </RSEmailDPConfiguration>
                    </Configuration>
                </Extension>
    I have starred out some details for anonymity. I have other servers with a matching configuration file as above (although on a 2008 version of SSRS) that never have this problem.
    The issue is intermittent and doesn't affect one specific report and on some occasions the retries work however quite often they don't work at all. I have had the network guys here monitor the port to see if the mail is even leaving the server and apparently
    the failed attempts do not register any data in wire shark. I don't believe this to be a size issue with the reports as they aren't supposed to deviate much.
    Any help would be much appreciated.
    Dave T

    Hi behavedave,
    According to your description, you have data-driven subscription failure randomly. Right?
    In this scenario, there's nothing wrong on your subscription configuration. Since the issue happens randomly, we can hardly to figure out reason directly. Here are two articles about subscription monitoring and troubleshooting. Please refer to links below:
    Monitoring and Troubleshooting Subscriptions
    Troubleshooting Subscriptions: Part II, Using the Reporting Services Trace Log File
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou 

  • Mail sending failure

    Hello friends,
    we have developed one service to send mail through SMTP settings.  My client is using Office 365 email Id. 
    For Example:
    username: [email protected] , password: XXXXXX
    From email: [email protected]
    ssl=true
    hostname: smtp.office365.com
    In above case,Mail successfully sent.
    But as per below settings, we are getting failure in mail sending:
    username: [email protected] , password: XXXXXX
    From email: [email protected]
    ssl=true
    hostname: smtp.office365.com
    Error: "Mailbox unavailable. The server response was: 5.7.1 Client does not have permissions to send as this sender"
    In above case,we have used different from Name and account email id.  
    Please give me some solution to solve above issue.
    Thanks,
    Sonal Patel

    Hi,
    Thanks for your question. You might need to make sure if SMTP server accept the specific account to access or SMTP server accept the anonymous access.
    Below links might help:
    http://stackoverflow.com/questions/12081159/5-7-1-client-does-not-have-permission-error-while-sending-email-from-code
    http://serverfault.com/questions/238095/mailbox-unavailable-client-does-not-have-permissions-to-send-as-this-sender-o
    (Please Note: Since above websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of these information.)
    Also, This is the forum to discuss questions and feedback for Microsoft Office clients. There is not so much about server/host aspects here. You might need to post in the forum for Office 365 community:
    http://community.office365.com/en-us/f/default.aspx
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Thanks,
    Ethan Hua CHN
    TechNet Community Support

  • Subscription reports - mail send failure

    Hello All,
    We have SCCM 2012 SP1 and SQL Server 2012 installed on the same box. The SQL reporting service runs with an domain account.
    Unfortunately any reports with a subscription to an e-mail address are not sent. The error msg is "Failure sending mail. - The specified string is not in the form required for an e-mail address. Mail will not be sent"
    I don't understand which string is meant. I don't see any error in the event log.
    Could you please help?
    Thanks,
    Edy
    Edy from Switzerland

    You should have a look at the log file created in SQL reporting services, it might contain more detailed information. It could be issue with the SMPT port. I ran into this issue a few years ago -
    http://blog.coretech.dk/kea/configuring-sql-reportings-services-mail-subscriptions-with-configuration-manager/ Might not be the same issue but maybe you can use the info to start the troubleshooting phase.
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not

    Interesting db mail issue. If i click send test mail from sql mgmt studio, it works fine, but when i execute a SP to send a mail, it fails. One thing I noticed is that the "LastModified" column in the mail log shows the domain account when a test
    mail was sent from mgmt studio, but show "sa" when the SP was used to send mail. 
    This is from SQL 2012, did not see this in sql 2008, looks like 2008 always used the service account.  any ideas ?
    Get this error:
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 1 (2013-04-30T16:36:52). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Client does not
    Thanks.
    Ranga

    Hi Ranga,
    I also use SQL Server 2012. I send a test email through SQL Server Management and the last modified By “sa”.
    If you used stored procedure to send a test email. Please use the command below:
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'Adventure Works Administrator',
    @recipients = '[email protected]',
    @body = 'The stored procedure finished successfully.',
    @subject = 'Automated Success Message' ;
    I can both send test email through SQL Server Management Studio and SP. Make sure you have the right profile. Since you could send test mail via SQL Server Management Studio, please try again to send it via SP.
    Thanks.
    If you have any feedback on our support, please click
    here.
    Maggie Luo
    TechNet Community Support

  • How to check the success/failure of e-mail sending from Sharepoint?

    Dear Expert,
    I connect Exchange 2010 and SharePoint 2010. When user create workflow in sharepoint, it will send the email to confirm. if it's done. but I checked from user they didn't get the email. I would like to know how to check the success/failure of e-mail
    sending from Sharepoint? 
    Thank you

    By default, there is no logging mechanism in SharePoint for outgoing mails.
    Mails in SharePoint are sent by giving an SMTP sever IP address in Central Administration. SharePoint never sends email directly. It relays or routes mails to the SMTP server. So, logging should be done in the SMTP server itself.
    There is also another way of doing it. You can enable SMTP service of IIS for sending emails from SharePoint, which would also just relay the mails to an SMTP Server. But in this case, you can enable logging in your IIS SMTP Service. Please visit this blog
    for more details.
    In your case you need to check your exchange server for any failure for relaying mails.
    Regards, Vikas Patel

  • ICloud Setup on Mac post Mavericks upgrade results in endless do loop

    iCloud Problems
    So you open Internet Accounts - and delete from internet accounts [email protected] (can’t logout)
    The dreaded account is gone……..
    So now back to System preferences and into the iCloud icon to set User [kaiserja] as default iCloud account and cure the ills of the world.
    You go back to internet accounts and get —
    Ahhhh grasshopper, we have endless do loop here.  Has wasted phenomenal amounts of time.  Fortunately, gmail works so I can send and get mail, as do my iPhone, iPad and Exchange accounts.  Think I’m going to need to switch personal mail to gmail after investing nearly 12 hours in attempting to set up an apple mail client in OSX Mavericks.
    Is there a fix for this or is this just another open bug unresolved?

    Rebuilding in this system, so when trying to sign in to iCloud to set up
    Proper data entered and the window goes away but nothing happens
    Conclude issue is with iCloud setup, so to system preferences and iCloud we go
    From there we get sent to internet accounts, after clicking internet accounts, we see the screen below and delete the inactive [email protected]
    (BTW have no idea what inactive means.  account functions on iPhone, iPad and iCloud over safari)
    After deleting the offending user account, we see
    All gone so all should be golden, no?  So returning to iCloud set up, we get
    and opening Internet accounts and entering our apple id leads us back to here....
    an obvious and not very helpful statement as I use this account on multiple devices, but just deleted it from here.
    Ahhhh grasshopper, we have endless do loop here.  Assuming it is keychain related, so I reset my login keychain.  Lather, rinse, repeat just like shampoo instructions same errors over an over again. 
    Has wasted phenomenal amounts of time.  Fortunately, gmail works so I can send and get mail, as do my iPhone, iPad and Exchange accounts.  Think I’m going to need to switch personal mail to gmail after investing nearly 12 hours in attempting to set up an apple mail client in OSX Mavericks.
    Is there a fix for this or is this just another open bug unresolved?
    Thanks for any help, ideas or suggestions......

  • Random mail arrival failure. SMTP log reports arrival, user never gets it

    Our 10.5.4 Mail server has become progressively less and less reliable over a period of months. I can reproduce repeatable (but inconsistent) instances of mails sent to us and failing to arrive. The weirdness even extends to emails sent from outside to multiple recipients on our server *in the same email*, and where some of the recipients get it and the others don't (while the non-recipients are randomly receiving other mails OK). Or, an external sender sending an email while I'm on the phone with him, it failing to arrive (and never does), and then a resend half an hour later arrives immediately.
    Needless to say, confidence in our mail server is plummeting.
    The OS-X Server mail log *actually records a mail arrival event* even when the user never gets the email, thus:
    Aug 6 13:15:42 dreadnought postfix/smtpd[14462]: connect from sonar.wycliffe.nsw.edu.au[192.168.9.100]
    Aug 6 13:15:42 dreadnought postfix/smtpd[14462]: 39D248C515F: client=sonar.wycliffe.nsw.edu.au[192.168.9.100]
    Aug 6 13:15:42 dreadnought postfix/cleanup[14464]: 39D248C515F: message-id=<[email protected].l ocal>
    Aug 6 13:15:42 dreadnought postfix/qmgr[100]: 39D248C515F: from=<[email protected]>, size=29520, nrcpt=1 (queue active)
    Aug 6 13:15:42 dreadnought postfix/smtpd[14462]: disconnect from sonar.wycliffe.nsw.edu.au[192.168.9.100]
    Aug 6 13:15:43 dreadnought postfix/smtpd[14471]: connect from localhost[127.0.0.1]
    Aug 6 13:15:43 dreadnought postfix/smtpd[14471]: 0BBFE8C5170: client=localhost[127.0.0.1]
    Aug 6 13:15:43 dreadnought postfix/cleanup[14465]: 0BBFE8C5170: message-id=<[email protected].l ocal>
    Aug 6 13:15:43 dreadnought postfix/qmgr[100]: 0BBFE8C5170: from=<[email protected]>, size=29969, nrcpt=1 (queue active)
    Aug 6 13:15:43 dreadnought postfix/smtpd[14471]: disconnect from localhost[127.0.0.1]
    Aug 6 13:15:43 dreadnought postfix/smtp[14466]: 39D248C515F: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.85, delays=0.01/0/0.01/0.83, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0BBFE8C5170)
    Aug 6 13:15:43 dreadnought postfix/qmgr[100]: 39D248C515F: removed
    Aug 6 13:15:43 dreadnought postfix/pipe[14473]: 0BBFE8C5170: to=<[email protected]>, relay=cyrus, delay=0.23, delays=0.01/0/0/0.21, dsn=2.0.0, status=sent (delivered via cyrus service)
    Aug 6 13:15:43 dreadnought postfix/qmgr[100]: 0BBFE8C5170: removed
    ...and the upstream mail filter (sonar in this case, our virus and spam filter) corroborates that an email arrived as well. But, as I said, the user (me) +never got this email+. Numerous other users report the same experience. Some mails arriving at our mail server simply never get put into inboxes and disappear. Poof.
    The only lead I have is multiple instances of the following message in the console at (roughly) the same time as the mail arrival failure:
    *6/08/08 1:15:00 PM com.apple.launchd[1] (0x11a220.cron[14553]) Could not setup Mach task special port 9: (os/kern) no access.*
    I have taken to rebooting the server twice daily to reduce the frequency of these occurrences. The machine is a G5 XServe hosting 700 accounts in a School.

    In the log example quoted above, ignore all the http:// references. Apple's discussions software is assuming the square brackets in the log mean "insert URL"

  • Mail Send Functionality using SO_NEW_DOCUMENT_ATT_SEND_API1

    hi,
    i m using Fn Module "SO_NEW_DOCUMENT_ATT_SEND_API1" to send email with attachment.
    I have written  a program which will fetch data in excel format . this excel should be sent as attachment to specified receiver. however i m having difficulties adding attachment to function module.
    I specified under parameter "contents_bin" but its giving some error message related wth structure.
    I chkd SDN and wasnt able to find any resolution yet.
    Any suggestion or idea which can be useful on this.
    Thanks.

    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default 'write email address' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM

  • Apple Mail Assertion Failure

    Hi,
    My company uses Office 365 for hosted Exchange email. We have 1 user who uses Apple Mail on OSX 10.7 to connect to the server in Exchange mode (using EWS). This was working great until a few days ago where he has sporadic connection problems. Reproducable situation below:
    1) Select 100 emails in any given folder
    2) Drag/drop those emails into another folder to move them there
    3) They will start moving but it will fail at somepoint and give the message "Cannot execute move operation".
    4) After that message appears it is usually several minutes before he can try again or send any emails.
    5) Trying to send an email immediately after the error message results in the "Cannot send message using the server" dialog where you are prompted to select a different server to send the message. Choosing an SMTP server results in the message being sent but sometimes (and only sometimes) the message is resent a couple of hours later through the exchange system.
    We are getting a million of the following assertion failure messages in the console:
    06-06-2012 12:22:05.518  Mail: *** Assertion failure in -[EWSGetFolderResponseOperation handleResponseMessage:withObject:], /SourceCache/Message/Message-1278/MessageStores.subproj/EWSResponseOperation.m: 340
    EWS did something wrong: An internal server error occurred. The operation failed. on EWS response <EWSGetFolderResponseOperation: 0x7fb9cb1ae620> (EXECUTING)
    0   Message 0x00007fff8f712ef8 -[MFAssertionHandler _handleFailureWithPreamble:description:arguments:] + 116
    1   Message 0x00007fff8f71308e -[MFAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 185
    2   Message 0x00007fff8f662c64 -[EWSResponseOperation handleResponseMessage:withObject:] + 556
    3   Message 0x00007fff8f656eb6 __-[EWSGetFolderResponseOperation executeOperation]_block_invoke_1 + 77
    4   CoreFoundation 0x00007fff87979cee __NSArrayEnumerate + 718
    5   Message 0x00007fff8f6572ae -[EWSGetFolderResponseOperation executeOperation] + 453
    6   Message 0x00007fff8f73397f -[MonitoredOperation main] + 228
    7   Foundation 0x00007fff9152e6b4 -[__NSOperationInternal start] + 705
    8   Foundation 0x00007fff91541912 ____NSOQSchedule_block_invoke_2 + 124
    9   libdispatch.dylib 0x00007fff8a798a86 _dispatch_call_block_and_release + 18
    10  libdispatch.dylib 0x00007fff8a799965 _dispatch_worker_thread2 + 255
    11  libsystem_c.dylib 0x00007fff8c83b3da _pthread_wqthread + 316
    12  libsystem_c.dylib 0x00007fff8c83cb85 start_wqthread + 13
    06-06-2012 12:22:05.518  Mail: Recieved EWS error: Error Domain=MFEWSErrorDomain Code=94 "An internal server error occurred. The operation failed." UserInfo=0x7fb9cecbb7c0 {NSLocalizedDescription=An internal server error occurred. The operation failed.}
    We have tried deleting the account and making a new one. As well as removing the mailbox folder (~/Library/Mail/V2/EWS-*) and the Apple Mail plist file. We have also setup the email on a different Mac (also OSX 10.7) but we still get the same assertion failure message.
    This user's email account works fine in Outlook on Windows and Mac (Outlook 2010 and 2011) and it also works fine through the online web portal. Outlook 2011 Mac uses EWS (the same protocol Apple Mail uses) and it's not throwing any errors and everything works properly so that is leading me to believe it's an issue with Apple Mail.
    Perhaps related, perhaps not, but the user's iPhone and iPad have also stopped working properly with the account. They will sometimes connect but a lot of the time they give an error message about not being able to connect to the server. This leads us to believe it's an exchange server problem, but then why does it work in Outlook and the online portal without any problems? It's only the Apple products that are falling apart.

    I ended up having to reproduce the problem in Outlook 2011 Mac before O365 support would help me. Apparently Apple Mail isn't one of the officially supported clients so they weren't going to figure it out for me. Once they ran out of ideas they just gave me the "Apple Mail is officially supported" excuse and stopped helping me.
    Although we weren't initially having the problem in Outlook 2011 Mac it did start giving tons of errors during certain operations (with a -19907 error code) after a while. Not sure why it started doing that ... but it did. This was only happening with one of our user's accounts so it had to be something server-side that was the problem. I eventually got a support ticket in their system (despite being a P1 plan holder) so that they could call me. We did some Wireshark capturing to try to diagnose the problem but by that time the problem had fixed itself.

  • MAIL Sender adapter going in to error

    Hello Experts ,
    We have configured one mail sender adpater with a custom module to read the attachements in the email message. This was working fine before.
    We recently had a restart of the PI servers. After that the channel is going in to error. The first error as per NWA logs is :
    failed to call the adapter engine; caused by javax.ejb.EJBException: Exception in getMethodReady() for stateless bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: com.sap.engine.services.ejb3.util.pool.PoolException: javax.ejb.EJBException: Exception raised from invocation of public void com.sap.aii.adapter.mail.ejb.XIMailAdapterBean.ejbCreate() throws javax.ejb.CreateException method on bean instance com.sap.aii.adapter.mail.ejb.XIMailAdapterBean@243be1e1 for bean sap.com/com.sap.aii.adapter.mail.app*xml|com.sap.aii.adapter.mail.ejb.jar*xml|XIMailAdapterBean; nested exception is: javax.ejb.CreateException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Failed to load messages into Queue AFWSend from database. Reason: com.sap.engine.services.dbpool.exceptions.BaseSQLException: ResourceException occurred in method ConnectionFactoryImpl.getConnection(): com.sap.engine.services.connector.exceptions.BaseResourceException: Cannot get connection. Reason: the thread of component "ejbContexts/sap.com/com.sap.aii.adapter.mail.app/com.sap.aii.adapter.mail.ejb.jar/XIMailAdapterBean" in application "sap.com/com.sap.aii.adapter.mail.app" is currently associated with a restricted resource set and it is not allowed to get connection within it.
    After that whenever it is trying to process a message its throwing the below error :
    exception caught during processing mail message [588]com.sap.aii.af.lib.mp.module.ModuleException
    Has anybody faced thsi error before? Please help!!!
    Thanks

    Hi VR
    Have you tried swapping by Payload name?
    Please try it out with the following configuration, and remove any extra lines - there are duplicate key names and values in your configuration.
    You should be able to see the successfully swap by payload name in the audit log as shown below.
    Rgds
    Eng Swee

  • Mail sender adapter POP server not configured for URL access

    Hi Experts,
    I have a Mail --> PI --> R/3 scenario and I am configuring the Mail sender adapter for POP3. The issue is that the POP server is not configured to be accessed via a URL and hence the URL pop://hostname/ is causing the following error at runtime:
    _1. When I use pop://Fully qualified host name/
    _Error: exception caught during processing mail message; java.net.UnknownHostException
    _2. When I use pop://IP address of host/
    _Error: exception caught during processing mail message; java.net.SocketException: Connection timed out:could be due to invalid address
    I am able to ping the POP3 server from the PI server using both the FQDN and IP address.
    Can someone please help.
    Thanks,
    Shobhit
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM
    Edited by: Shobhit Swarup Mathur on Jul 14, 2009 9:29 AM

    Hi Shobhit
    Check with these notes:
    804102
    xi 3.0 mail adapter with pop3 user authentication problem
    810238
    XI 3.0 Mail Adapter for POP3 may not report some errors
    also check mailserver security settings ...
    Connection refused occures when XI cannot connect
    in most cases so try checking it again , maybe some ports are not opend on the firewall
    Thanks
    Edited by: Abhishek Agrahari on Jul 14, 2009 11:44 AM

  • Mail Sender Adapter for Exchange 2007 IMAPS account

    Hi everybody,
    I have the following todo:
    I configured a Mail Sender Adapter that is supposed to fetch mails from an IMAP account.
    The mails contain text files with data to be processed by XI 3.0 SP 22.
    The mail server is Exchange 2007 and requires IMAPS. IMAP is not enough. I read the notes
    - 893590 - XI 3.0 Mail sender adapter with IMAP or POP with SSL problem
    - 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
    and configured the sender apapter as follows:
    URL:                     imaps://<ip address>/owa
    Authentication method:     Plain
    User:                    <domain>\<user>
    Password:                       topsecret
    Poll Interval: 5
    The first challenge is to setup the adapter with SSL. To do so, I added the Exchange server's
    root SSL certificate in the default truststore service-ssl via the KeyStorage service.
    This is necessary, as far as I know, to successfully validate the Exchange server's trusted
    certifacate which is being transfered to XI during SSL handshake.
    Since the communication channel in RWB is in status error with following message:
    mail client job stopped completly
    exception caught during processing mail message; java.io.IOException: invalid IMAP status response; not finding * STATUS, but 001I NO owa doesn't exist.
    mail client job scheduled,
    I do not know how to setup SSL for IMAPS. I successfully tested a PING to the Exchange server.
    Are there already experiences with Exchange 2007?
    What I have to do to fetch mails from an Exchange 2007 IMAPS folder/account with a Mail Sender Adapter?
    Kind regards,
    Andreas

    Hi,
    It should be imap and not imaps.
    You can try imap://xxx.xxx.de:993/Inbox
    Make sure that port 993 is correct. If you have doubt, then you may try 143 which is default port instead of 993 in the above url.
    regards,
    ganesh.

  • Error in mail sender channel : invalid sequence number

    Hello all,
    I'm having the following issue.
    I'm using the mail adapter to get messages from a mail server, which are attached to the mail.
    This interface is already productive, and is working fine most of the time.
    Only frequently I get the following error, which can be found in the java log.
    exception caught during processing mail message[630];
    java.io.IOException: the specified message not found: -ERR invalid sequence
    number
    This error seems only to appear when there are a lot of mails to be fetched.
    All the mail is read into PI and processed succesfully, only I also get a lot these errors.
    Does anyone know what causes this error?
    I also don't know where this sequence number is coming from, and what's the meaning of this.
    Is it possible it's trying to read the same mail more then once?
    The settings in the mail sender channel are:
    - transport protocol : POP3
    - message protocol : XIPAYLOAD
    - Use mail package : enabled
    - content encoding : none
    - Keep attachments : enabled
    - QOS : exactly once
    - Set adapter specific message attibutes : enabled
    The PI version is 7.01
    Thanks a lot in advance for the replies on this question.
    Kind regards,
    Marco van Iersel

    Hi
    Well we have used it with POP3 and it is working in the way as it should be.
    This feature is recommended  by sap when the number of emails to be read is large.
    You can set this additional parameter to restrict the number of mails fetched by sender mail adapter in one polling interval.
    Sometimes the mailbox configured for the sender mail adapter contains large number of unread mails, which exceeds the average expected number of mails in one polling interval. In such a case, processing of all the unread mails in the same polling interval by sender mail adapter degrades the system performance. To avoid this, set value of this parameter to the maximum number of mails to be fetched and processed in one polling interval. The remaining mails exceeding the limit would be processed in the next polling interval.
    That's why I have asked you to give it a try.

  • Mail Sender to Abap Proxy Receiver with Attachements

    Hi All,
    Scenario: I need to create a ticket in Solman from a mail. I intend to do the scenario as Mail sender to Abap Proxy receiver asynchronous.
    I have configured my sender mail adapter and am able to get the mails in XI. The attachements also appear in Inbound payload as MailAttachement-1, MailAttachement-2 etc. I have checked use mail packege and keep attachements in sender adapter.
    Transport Protocol: IMAP4
    Message Protocol: XIPAYLOAD
    Queries:
    1. My Inbound Data Type is the mail Package -- ximail30_xsd. Here in sxmb_moni I can see the mail attributes like from, to and the mail body in content. But How can I read the attachements in my message mapping.
    2. How can I pass these attachements to Abap Proxy ( I do not need to alter attachments only pass to proxy ). These attachements have to be attached to the Solman ticket in SOLMAN server.
    Appreciate your kind response to my above queries.
    Thanks.
    Regards,
    Siddhesh S.Tawate
    PS: I have tried using PayloadSwapBean in adapter module but still the content at source remains same.

    Hi,
    Please find below the part of code that might help you. I have given code only responsible for attachements part of the ticket.
    loop at lt_attach into l_attachment.
            count = count + 1.
            if count = 1.
              first_line = 1.
            endif.
            l_type = l_attachment->GET_CONTENT_TYPE( ).
            split l_type at '"' into l_type
                                     file_name
                                     l_name.
            l_name = file_name.
            split file_name at '.' into file_name
                                        file_type.
            l_xstring = l_attachment->GET_BINARY_DATA( ).
            strlen = xstrlen( l_xstring ).
            Compute int = ( strlen div 255 ).
            Compute rem = ( strlen mod 255 ).
            if rem <> 0.
              int = int + 1.
            endif.
            count1 = int.
            if count = 1.
              last_line = count1.
            else.
              if int = 1.
                first_line = last_line.
              else.
                last_line = first_line + count1.
              endif.
            endif.
            wa_APPX_HEADERS-APPXNO = count.
            wa_APPX_HEADERS-DESCR = l_name.
            wa_APPX_HEADERS-FILETYP = file_type.
            wa_APPX_HEADERS-FILENAM = l_name.
            wa_APPX_HEADERS-FILEFM_UL = 'BIN'.
            wa_APPX_HEADERS-FIRSTL = first_line.
            wa_APPX_HEADERS-LASTL = last_line.
            wa_APPX_HEADERS-FILELEN = strlen.
            wa_APPX_HEADERS-LAST_USR = sy-uname.
            GET TIME STAMP FIELD wa_appx_headers-TIMESTAMP.
            append wa_APPX_HEADERS to it_APPX_HEADERS.
            while count1 <> 0.
              count1 = count1 - 1.
              if count1 <> 0.
                wa_APPX_LINES_bin-LINE = l_xstring+0(255).
                shift l_xstring left by 255 places in BYTE MODE.
              ELSE.
                wa_APPX_LINES_bin-LINE = l_xstring.
              endif.
              append wa_APPX_LINES_bin to it_APPX_LINES_bin.
              clear: wa_APPX_LINES_bin, wa_APPX_LINES.
            endwhile.
            first_line = last_line + 1.
            clear: strlen, count1, file_name, file_type, l_type, int, rem, l_xstring, l_attachment.
          endloop.
    CALL FUNCTION 'BAPI_NOTIFICATION_CREATE'
            EXPORTING
              NOTIF_EXT                = wa_NOTIF_EXT
            NOTIF_CRM                = wa_NOTIF_CRM
      IBASE_DATA               =
         IMPORTING
           NUMBER                   = Refnum
           NUMB                     = Numb
           REFNUM                   = Ticket_No
           SYSID                    = SYSID
            TABLES
              NOTIF_PARTNERS           = it_NOTIF_PARTNERS
            NOTIF_NOTES              = it_NOTIF_N_EXT
              NOTIF_SAP_DATA           = it_NOTIF_SAP_DATA
            NOTIF_TEXT_HEADERS       = it_NOTIF_TEXT_HEADERS
            NOTIF_TEXT_LINES         = it_NOTIF_TEXT_LINES
            APPX_HEADERS             = it_APPX_HEADERS
            APPX_LINES               = it_APPX_LINES
            APPX_LINES_BIN           = it_APPX_LINES_BIN
             RETURN                   = RETURN
    Please observe how first and last line of attachement is calculated. That is what created problem for me initially.
    Hope this helps.
    Regards,
    Siddhesh S.Tawate

Maybe you are looking for

  • How to check whether a file is present in the UNIX directory of app. server

    Hi,         I am creating files in the UNIX directory in the application server using :                    CONCATENATE '/sapmnt/RD1/interfaces/client670/'                    p_fname '.CSV' INTO w_filename.            OPEN DATASET w_filename FOR OUTPU

  • For PrintControl.cab in crystal reports 2008 How can i configure Web.config in VS2005

    hi,  Now i am using crystal report 2008 evalution  with VS2005. In my ASP.net Application Viewiing reports using Crystalreportviewer PrintMode=ActiveX (not in PDF).If i am trying to print using Printcontrol.cab..in the client machine the activeX cont

  • Upgrade IMP 9.1.1 to 10.5.2 and CUPC 8.6.3

    I have a customer that I will be upgrading CUCM 9.1.1 to 10.5.2 and IMP 9.1.1 to 10.5.2 very shortly.  My question is they are currently using CUPC 8.6.3 client on the IMP 9.1.1 server.  They are not using Jabber yet.  I cannot find an documentation

  • Problem Transfering Photos from PC to iPhone 4 with version 5.1.1

    I can't transfer multiple Folders containing photos from my PC to my iPhone.  My digital photos on my PC are simply in Folders as JPEG files.  When I try to transfer the Folders in iTunes I can only select the "All Folders" option.  The "Selected Fol

  • Disappearing drop shadows..

    on two of my web pages, I lose the drop shadow on some objects when I have gradient or image fill selected for the page background. One page I lose it on a QT Movie(image fill), and on another page with jpg images(gradient). Text drop shadows on thes