XI3.0 MailAdapter: Problem with receiving mails from Mailserver

Hi all,
I tried to set up a scenario using the mail adapter as the sender and the file adapter as the receiver.
The problem is that the mailadapter logs in into the mailserver but then it stops working with an error.
Here is my setup of the MailSenderChannel:
Transport Protocol: IMAP4
Message Protocol: XIPAYLOAD
Adapter Engine: Integration Server
URL: IMAP://mailservername
User: ****
Password: ****
Mailattributes: Use Mail Package & Keep Attachments is checked
Namespace and Interfacename is also filled in.
The Error Message is as follows:
#1.5#000255AF6C53005500000BC8001010520003E93BC7109362#1100867882226
#/Applications/ExchangeInfrastructure/AdapterFramework/SAPLibraries/SAPXDK#
#com.sap.aii.messaging.srt.xmb.XMBIMAPInitiatorServiceImpl.run()#J2EE_GUEST
#0####da269f003a2711d98349000255af6c53#output##0#0#Error#1
#com.sap.aii.messaging.srt.xmb.XMBIMAPInitiatorServiceImpl#Plain##
#exception caught during processing mail message; java.lang.StringIndexOutOfBoundsException:
String index out of range: -1#
I guess this message came up because my interface definition is wrong. How does the Datastructure for an incoming mail look like? I just defined one field as string to keep the whole email message. Does this work or do I need to have some kind of standard xsd for mail?
Thanks in advance!
/Michael

Hi Colin,
here comes the WSDL description of my message interface to receive the email:
<?xml version="1.0" encoding="ISO-8859-1"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:p1="http://sap.com/xi/XI/Mail/30" name="MI_Mail_into_XI" targetNamespace="http://sap.com/xi/XI/Mail/30">
     <wsdl:types>
          <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30" targetNamespace="http://sap.com/xi/XI/Mail/30">
               <xsd:element name="Mail" type="Mail" />
               <xsd:complexType name="Mail">
                    <xsd:annotation>
                         <xsd:appinfo source="http://sap.com/xi/TextID">
                         51f7dac03ede11d9c348000255af6c53
                         </xsd:appinfo>
                    </xsd:annotation>
                    <xsd:sequence>
                         <xsd:element name="Subject" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d2fbcb03ebc11d9a926ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="From" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d2fbcb13ebc11d9bd23ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="To" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143503ebc11d9bef6ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="Reply_To" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143513ebc11d9941fff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="Content_Type" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143523ebc11d980f2ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="Date" type="xsd:dateTime" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143533ebc11d9b24fff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="Message_ID" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143543ebc11d9cbc5ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="X_Mailer" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143553ebc11d9ce16ff790a50fa78
                                   </xsd:appinfo>
                              </xsd:annotation>
                         </xsd:element>
                         <xsd:element name="Content" type="xsd:string" minOccurs="0">
                              <xsd:annotation>
                                   <xsd:appinfo source="http://sap.com/xi/TextID">
                                   8d3143563ebc11d9979cff790a50fa78
                                   </xsd:appinfo>
                                   <xsd:documentation xml:lang="EN">
                                   any type
                                   </xsd:documentation>
                              </xsd:annotation>
                         </xsd:element>
                    </xsd:sequence>
               </xsd:complexType>
          </xsd:schema>
     </wsdl:types>
     <wsdl:message name="Mail">
          <wsdl:part name="Mail" element="p1:Mail" />
     </wsdl:message>
     <wsdl:portType name="MI_Mail_into_XI">
          <wsdl:operation name="MI_Mail_into_XI">
               <wsdl:output message="p1:Mail" />
          </wsdl:operation>
     </wsdl:portType>
     <ifr:properties xmlns:ifr="urn:com-sap:ifr:v2:wsdl">
          <ifr:category>
          ifmmessif
          </ifr:category>
          <ifr:methods>
               <ifr:method name="MI_Mail_into_XI">
                    <ifr:isSynchron>
                    false
                    </ifr:isSynchron>
                    <ifr:isInbound>
                    false
                    </ifr:isInbound>
                    <ifr:interfaceCategory>
                    outbound
                    </ifr:interfaceCategory>
               </ifr:method>
          </ifr:methods>
          <ifr:messages>
               <ifr:message name="Mail">
                    <ifr:messType>
                    ifmmessage
                    </ifr:messType>
                    <ifr:technicalNamespace>
                    http://sap.com/xi/XI/Mail/30
                    </ifr:technicalNamespace>
               </ifr:message>
          </ifr:messages>
     </ifr:properties>
</wsdl:definitions>

Similar Messages

  • Mailadapter, receive mails from mailserver: attachment?

    hello
    i am receiving mails from the mailserver into xi with
    the mailadapter
    this is nice as long as the message data is in the mail text
    but we are receiving mails with the message as mail attachment
    i couldn't find a parameter to map/access the attachment, i always get the payload which is the normal mail text
    the only way i could find is creating an an abap proxy as the receiver and send the attachment back to xi as normal payload
    but the receiver should be the idoc adapter

    If the attachment is always the same, you can use the PayloadSwapBean (see note 794943) to get the attachment as main payload.
    If not, you need to write an adapter module by your own, which figures out, what the right payload is.
    Regards
    Stefan

  • TS3899 Problem with sending mail from iPhone

    I have three mail accounts (Exchange, POP, IMAP) on my iPhone 4 with iOS 7.0.4. All works fine for receiving mails, but sending does not work from any of them. I write mail, tap send and it seems to go (with the  sound) but never reach the reciever.
    I have the exact same account setup on the family iPad and there sending mails works fine.
    Any suggestions /solutions ?

    Sorry to intrude, but figured I'd ask. I'm having the same issue (emails I reply to and send via my phone disappear entirely -- no evidence on my comp either -- and I'm never sure if the intended recipient ever received them), but in trying to fix this issue, I discovered I'm actually missing the "Sent Mailbox" option entirely. It's not under Settings > Mail, Contacts, Calendars > Gmail > Account > Advanced > Mailbox Behaviors" -- only Drafts, Deleted and Archive are. Any idea where it is? How to get it back (assumign it was ever there to begin with)?
    I have an iPhone 4S w/ iOS 7.

  • Problem with sending mail from SAP (ECC6.0)

    Hi guys!!
    I am facing problem in sending email from SAP to outlook.
    I've checked SICF and SCOT configuration and they are same as my other server thorugh which i am able to send the mail.
    I use SBWP to send the mail. after i send i do not get any error message, and when i check it in outbox, there is a yellow triangle in the status which means "send process still running" . so the sending mail is taking hours. i've set the frequesncy of my B/G job RSCONN01 to 10 minutes. i checked and this job is running successfully every 10 minutes.
    Please suggest what could be the possible reason and what can i do to solve this issue.
    Thanks,
    Sheetal Sharma

    Hi,
    First of all ask your IT (Exhchange) guy to check port number 25 is open or not for communincation, if not open ask him to open.
    you can check this yourself by doing TELNET
    steps to do telnet :
    logon to your application server,
    go to command prompt
    and type  TELNET <IP address of email server> 25
    If it prompts some message like this
    "exhange.domain.com Microsoft ESMTP MAIL Service, Version: 6.0.3790.18 30 ready at  Mon, 16 Jun 2008 16:25:41 +0300. "
    then it means your port 25 is open for communication.
    Regards,
    Abuzar.

  • Hi...Problem with sending mail from SAP

    Hi all,
    My problem is:
    I have created a distribution list which contains Internet userids & SAP Userids.
    In the code I have written the follwing code for receiver list
              reclist-receiver = zwfi_yefap_paypr-list1."it contains distribution list name
              reclist-rec_type = 'C'.
              reclist-express = 'X'.
              APPEND reclist.
    I have passed this to function module SO_NEW_DOCUMENT_ATT_SEND_API1 receiver parameter.
    when I run the program SAP user id's are getting mails but  not  internet userrids.
    What couldbe the issue .
    Please let me know what could be the reason.
    Thanks in Advance.
    Raja

    Hello,
    U need to submit the report
    Start the send process
    SUBMIT rsconn01
    WITH mode = 'INT'
    WITH output = ' '
    AND RETURN.
    If useful reward.
    Vasanth

  • Problem with receiver mail adapter

    Hi All,
    I have a proxy to mail scenario. I am using mail message format from service market place.
    Now this is the xml after executing mapping:
    <Mail>
    <Subject>XYZ</Subject>
    <From>From_email</From>
    <To>To_email</To>
    <Reply_To />
    <Content_Type>text;charset="UTF-8";name="MYFILENAME.csv"</Content_Type>
    <Content>
    <Line>
    <Object>0000001</Object>
    <Code>1001</Code>
    </Line>
    <Line>
    <Object>0000002</Object>
    <Code>1002</Code>
    </Line>
    </Content>
    </Mail>
    <Line> tag gets repeated in the <content> tag. I want a csv file as mail attachment with the following content:
    0000001,1001
    0000002,1002
    First i used StrictXml2PlainBean. But, this was trying to parse all the fields including Subject and To fields.
    I only need data in <content> tag to be sent in csv file.
    So, i used MessagetransformBean. Even this is throwing parserExceptionerror: No data allowed here: (hex) 30, 30, 30(:main:, row:6, col:3)(:main:, row=6, col=3).
    Which module bean should i use now? What should be the parameters?
    Please let m know.
    Many Thanks
    Chandra

    Hi Prateek
    1. Isn't it a comman scenario to send extracted data from SAP, in a csv file as an attachment to email?
    2. How can i supress fields from mail package (from, to, subject etc) while using StrictXml2Plain bean?
    Thanks
    Chandra

  • Problem with deleting mail from my AOL account on the Mac Mail Program

    It worked perfectly on Tiger. But now that I am using leopard, I get this error message when I try to delete my aol mail on the Mail program.
    "The IMAP command “UID COPY” (to Deleted Messages) failed for the mailbox “INBOX” with server error: UID COPY failed Deleted Messages: no such mailbox."
    How do I fix this?!?

    See this...
    http://discussions.apple.com/thread.jspa?messageID=5652832&#5652832

  • Read E-Mail Actionblock -Unable to read mail from Mailserver

    Hi,
    As a part of business requirement I need to write a transaction which picks the attachment from a particular mail on a server on a scheduled basis.
    I am getting the below error while trying to connect to the server
    [INFO ]: ReadMail: Connecting To: xxxx.yyyy.mycompany.com
    [ERROR]: ReadMail error: Connect failed; nested exception is: java.net.ConnectException: Connection refused: connect+
    [ERROR]: ACTION FAILED: End Action ReadMail_0 :
    But with the same credentials I am able to send mail from xMII using the Send mail action block.So this signifies that I am using the right MailServer name.
    Is this the problem with the firewall with the server ? or
    Will there be different MailServer name for receiving and reading mails?
    How to know which port number to be used?
    Did any one faced this problem before?
    Appreciate your help
    thanks
    Raj

    Hi,
    Im also having problems with reading mails from mailserver.
    When I execute the transaction the action block Read Mail return me the following error:
    [ERROR] [ReadMail]Unable to read mail Exception: [unicode-1-1-utf-7]
    Could anybody help me?
    P.S.: Im using the imap4 protocol.
    Thank you!
    Edited by: Thiago Barros on Jul 29, 2010 5:15 PM

  • Problems with receiving

    hello again! : ( I have problems with receiving mails, my
    installation is local, therefore I am using telnet but it marks errors
    to me you have some idea?
    bash-2.03# telnet pegaso.qoslabs.com 25
    Trying 192.168.20.20...
    Connected to hostname.com.
    Escape character is '^]'.
    220 pegaso.qoslabs.com -- Server ESMTP (Sun ONE Messaging Server 6.0 Patch 1 (built Jan 28 2004))
    MAIL FROM: [email protected]
    250-2.5.0 No HELO/EHLO seen; continuing anyway, [192.168.20.20].
    250 2.5.0 Address Ok.
    RCPT TO: [email protected]
    550 5.1.1 unknown or illegal alias: [email protected]
    RCPT TO: katiuskac
    550 5.1.1 unknown or illegal alias: user
    DATA
    554 5.5.0 No recipients have been specified.
    QUIT
    221 2.3.0 Bye received. Goodbye.
    Connection closed by foreign host.
    what is the solution?
    do you have any idea?

    If the MTA believes that you have an error, it will give you the 5.5.1 error.
    The error may be any of several provisioning problems. Since you haven't sent me the ldap entry for the user, I really can't tell which error you may have made.
    A common error is the value you placed in "mailhost".
    This needs to be the Fully qualified name of your mail server, not an alias. If you desire to use an alias for the system, you need to make additional configurations.
    Please believe me, I'm trying to help you, but when there are dozens of possible errors, and I have no data to examine, I can't tell which error you may have made.
    I do know that if you correctly provision a user, that user will work.

  • TS3276 I receive a pop up from ICal saying the server does not recognize me user name and password.  This started yesterday.  I have no problems with receiving or sending emails through Mail

    I receive a pop-up from ICal saying the server does not recognize my user name and password for my me.com email address.  This started yesterday and occurs about every 5 minutes or so.  There are no problems with receiving or sending email through Mail.  I did change me email password several days ago but have no problems sending/receiving since then.

    I fixed the problem.  I opened Preferences in ICal and entered my new password.  No more pop-ups

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • TS3899 With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this pro

    With Yahoo Mail, and anotare account (Inacap Mail), I can only receive mails but I can't send emails. I don't know if this is a problem of the iPad or it is a problem with yahoo mail, because using Gmail and the email of my job I don' have this problem.

    Google them to confirm the settings that you need for the outgoing server, then check the setting you entered on the pad.  Pay real close attention to the outgoing server name, and port.  You may need to change in on the pad. 

  • I report a problem refund app in appstore but i haven't received mail from apple

    I report a problem refund app in appstore but i haven't received mail from apple I wait 2 days ago

    You could try contacting them again (we are fellow users here on these forums). Ttry the 'report a problem' page to contact them : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • I frequently receive a notice from Mail that it "can't connect" to my yahoo mail account, despite the fact that I can receive mail from that account. The banner appears with my coded password highlighted and asks me to choose 'cancel' or 'ok'.

    I frequently receive a notice from Mail that it 'can't connect' to my Yahoo account despite the fact that I am able to receive mail from that account. It appears with the name of my Yahoo account, my password (coded), and the choice to 'cancel' or 'ok'. If I click either, the banner goes away but comes back soon. I can open Mail and see that all accounts are online. I get the banner SEVERAL time during a session - very annoying!
    I have several accounts, but this only happens with Yahoo and sometimes Hotmail. Can anyone tell me how to resolve this Mail issue?
    Thanks.

    I have 5 IMAP and 1 POP (Hotmail).
    The Yahoo is IMAP.

  • I have problems sending e-mail from my iPhone.  I can receive OK.

    I have problems sending e-mail from my iPhone.  I can receive OK.  The e-mail gets put in the outbox, but never goes out.

    Did you set it up following this:
    http://portal.activehost.com/knowledgebase.php?action=displayarticle&id=4744

Maybe you are looking for

  • USB device not recognized in Windows 7?

    I have the strangest problem I've yet to encounter with my computer. As you may have guessed from the title, I am constantly getting the message displayed.  Any fix that has been suggested has been unhelpful or worked for a bit until my computer rest

  • Payment Wizard - Series period does not match current period

    Hi All, I've a problem during creation of Incoming Payment through Payment Wizard. 0 payments were added at the end of creation Incoming Payments--> Bill of Exchange  using Payment Wizard. In Non-Included Transactions  I can read: series period does

  • Need the following reports...urgent!!!

    Hi Gurus..... •A detailed report for listing goods receipts by material wise for a given period which contains detailed information like PO No, PO Date, Plant, GR ref, GR date, Material description. [Tables involved: EKKO, EKPO, MSEG, MARA, MKPF, MKE

  • Updating a table

    Hi I m having a function thrugh which i m getting parameters inside the func. I want to update a temp table using these parameters but i m getting an error 0ra-01722 invalid number,All the data types are varchar2 but the update is not giving error As

  • Copy an application with plugins into a new application and change theme...

    I copied an application (theme 23) with plugins into a new application and then changed the theme to theme 26. After that, all plugins (skillbuilders super lov, skillbuilders modal, and notification plugin) didn't work at all. However, when I changed