Mail Sender Adapter with IMAPS

Hi,
I had a Mail Sender Adapter running fine with imap. Our Email Server has changed now to secure protocol. Therefore I need to use the Mail Sender Adapter with IMAPS. If I use imaps://<mailserver>:993 in the channel configuration the Mail Adapter aborts with error "not initialized; mail agent null" and in the default trace it says "failed to initialize the channel: java.io.IOException: illegal protocol for XMBIMAPInitiator: imaps#". If I configure the Mail Adapter with  <b>imap</b>://<mailserver>:993 the Mail Adapter starts and says "running", but it does not poll the postbox. In the security.log file there is a warning about untrusted certificates "com.sap.security.core.server.https.SecureConnectionFactory#Plain###Attempting to create outgoing ssl connection without trusted certificates#". I did already import the (CA) Certifcate of the mailserver with key storage service of J2EE Engine in the Trusted area and I configured the J2EE Engine for using SSL (the https access to the J2EE Engine works fine).
What is still missing in XI 3.0 (SP12)? I can access the postbox securely with e.g. Thunderbird using port 993.
Has anyone an idea or had already this issue?
Thanks for any help in advance.
Peter

Hi Sebastian ,
The Mail sender --IMAPS , did  it solve your issue because i fcae the same kind of Error in Communication Channel :
exception caught during processing mail message; java.io.IOException: unable to create a socket
Mail sender CC:imaps://NZxxx.dknz.nzcorp.net:993/NZDKINVOICES
-Login Credentials is correct.
-Defualt XI Paramters are correct
-Mail Server is the right one
-Tried in command prompt , N:/telnet NZxxx.dznz.corp.net 143 , but i get response : Could not open connection to the host, on port 143 .Connection Failed
Could you kindly assist
Thanks,
Vara

Similar Messages

  • Mail Sender Adapter with multiple sMIME attachments

    Hi!
    I 'm using XI 3.0 SP 15.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, contain a certificate and multiple xml-attachments. The xml's represent an IDOC-structure (INVOIC.INVOIC02).
    The task is to first check the certificate, and then to send each of the XML attachments separately to an SAP-System.
    1) We have twelve partner which use this e-Invoicing interface. How do I administer the certificates and do I have to create for each partner a "Sendervereinbarung"?
    2)
    The second problem is, that I have multiple payloads which have to be processed separately. How can this be done?
    kind regards and thanks a lot for your help
    MArtin

    As we have multiple xml-attachments, I guess we have a major problem anyway.
    I guess Certificate verification in the sebder agreement is done after the Module Processing of the email-adapter isn't it?
    Due to the multiple attachments we have to write a customer specific Module for the email-adapter anyway.
    I guess the only way is that the module validates the certificate against the J2EE KeyStore and then extracts the various xml attachments to a file share.
    A File sender adapter then polls the file share and the sender aggreement / receiver agreement /mapping ... process starts.
    The only question is if the file adapter works also without a sender agreement, so that the xml's are stored on the file share
    Do you have an idea, if this works? or do you see any alternatives?
    thanks alot for your help!!
    MArtin

  • Mail sender adapter with Variable Transport Binding doesn't work

    Hi,
    we have PI/700 SP7.
    An external partner sends an email with one attachment (a simple csv file).
    I take "PayloadSwapBean" (with swap.keyName = payload-name) to get the attachment.
    Both, the Adapter-Specific Message Attributes indicator and the Variable Transport Binding indicator are set.
    I set the mail package format indicator too.
    What I need is the sender, receiver and subject of the mail plus the attachment.
    Unfortunately it is not possible to read in the email with this configuration - I get an error.
    If I unset the Variable Transport Binding indicator - I get the email but without "sender, receiver and subject" in "SHeaderFROM, SHeaderTO, SHeaderSubject". The "mail package" is overwritten by the attachment.
    Is it a problem of the namespace "http://sap.com/xi/XI/System/Mail"?
    Do I have to define this namespace or do I have to import a content (SAP BASE 700, SP7 is imported)?
    Please help...
    Regards
    Wolfgang

    Hi Wolfgang,
    I hope it is not due to the namespace.
    This might help you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e6c7911-0d01-0010-1aa3-8e1bb1551f05
    Need some Guide regarding Configuration of Sender Mail Adapters....
    Regards
    Agasthuri Doss
    Message was edited by: Agasthuri Doss Baladandapani

  • 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.

  • Mail Sender Adapter - read from public folder.

    Hello Experts.
    I have a scenario, where I need to read an incoming mail from a public folder, and after mapping the attachment (which is a csv) I need to put the result as a file in a shared folder.
    right now the problem is, I am not sure how to access the public folder.
    should I use one of the exchange users, and try to access the public folder?
    what should I be writing in the URL parameter in the mail sender adapter ? (imap://server/???/public folder ?)
    Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
    Anyone ever did something like this and can help?
    Thanks,
    Imanuel Rahamim.

    Hi Imanuel,
    do u mean u want to pick the mail which contains an attachement from a specified folder instead of inbox?
    u can configure the URL like imap://host:port/path/PublicFolder.
    after PI received the mail. we can use PayloadSwapBean to get the attachement payload and do following message mapping.
    ur question: Also - in case I will want to switch the location of the mail to a private foler inside of the user mailbox - what is the URL parameter in that case?
    do u mean u want to pick the mail from a specified mail account? if like this, create an user for the interface only. then configure the UserName/Password in the channel.
    Regards,
    Kevin Song

  • IMAP-Mail sender adapter handling with read messages in mailbox

    Hi,
    (PI 7.0)
    we have a "funny" situation:
    We are using imap-mail-sender adapter polling a mailbox.
    Sometimes there are read messages in mailbox so the adapter cannot read these messages.
    When we sort all read messages and we mark e.g. the second message in list as not read, the adapter polls fetch the first (already read) message and afterwards the not-read message and afterwards no other message is read.
    I think this behaviour is wrong because pi should not handle an already read meassage.
    Does anybody know this problem?
    Or is it a problem of the mail-server (Exchange 2003)?
    Thanx and regards
    Wolfgang

    Hi,
    thanx for your answer.
    The default behaviour of imap is "only fetching unread message" (s. FAQ of mail adapter)...
    The mail sender channel with IMAP4 fetches only the unread messages from the specified mail box in the order they are stored. Therefore, please make sure that you have some unread messages in the top of the list (if ordered by most recent on top). After a polling cycle, you can look at the status of this channel at the adapter's monitor. This should show any error if the messages are not processed correctly. Once the messages are read but not processed correctly, they remain in the mail box but are not read in the subsequent polling cycle. You must correct the problem and delete these messages using your mail client program or reset them as unread so that they can be resend.
    In our example the adapter fetchs read messages too (till the first unread one)  - and this is wrong (i think so!?).
    But I dont know if its a MS-Exchange problem.
    Regards
    Wolfgang
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:20 PM
    Edited by: Wolfgang Hummel on Oct 7, 2009 12:21 PM

  • How can i read only .txt file and skip other files in Mail Sender Adapter ?

    Hi Friends ,
                       <b> I am working on scenario like , I have to read an mail attachement and send the data to R3.</b>
                        It is working fine if only the .txt file comes.
                      <b>Some times ,html files also coming along with that .txt files. That time my Mail adapter fails to read the .txt file.</b>
                       I am using PayLoadSwap Bean and MessageTransformBean to swap and send the attachment as payload .
                         <b>Michal as told to write the Adapter module to skip the files .But i am not ware of the adapter moduel . If any blogs is there for this kind of scenarios please give me the link.</b>
                           Otherwise , please tell me how to write adapter module for Mail  Sender Adapter?
                      How to download the following
                        newest patch of XI ADAPTER FRAMEWORK CORE 3.0
    from SAP Service Marketplace. Open the file with WinZip and extract the following
    SDAs:
    &#61589;&#61472;aii_af_lib.sda, aii_af_svc.sda
    &#61589;&#61472;aii_af_cpa_svc.sda
                        I have searche in servive market place .But i couldn't find that . Can you please provide me the link to download the above .
                      If any other suggestions other than this please let me know.
    Regards.,
    V.Rangarajan

    =P
    Dude, netiquette. Messages like "i need this now! Do it!" are really offensive and no one here is being payed to answer anyone's questions. We're here because we like to contribute to the community.
    Anyway, in your case, just perform some search on how you could filter the files that are attached to the message. The sample module is just an example, you'll have to implement your own. Tips would be to query the filename of the attachments (or maybe content type) and for the ones which are not text, remove them.
    Regards,
    Henrique.

  • Mail Sender Adapter - Attachment Handling

    Hello,
    I 'm using XI 3.0 SP 14.
    I have problems with my Mail-Sender-Adapter.
    The mails, I fetch, have an xml-attachment which
    represents an IDOC-structure (ORDERS.ORDERS05).
    I want to sent this attachment as payload to an SAP-System.
    The problem is now, that I have 2 Payloads (SXMB_MONI).
    One for the normal email-body and one for my original
    xml-attachment. See below:
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailMessage</SAP:Name>
      <SAP:Description>mail message</SAP:Description>
      <SAP:Type>Application</SAP:Type>
      </SAP:Payload>
    - <SAP:Payload xlink:href="cid:[email protected]">
      <SAP:Name>MailAttachment-1</SAP:Name>
      <SAP:Description>mail attachment</SAP:Description>
      <SAP:Type>ApplicationAttachment</SAP:Type>
      </SAP:Payload>
      </SAP:Manifest>
      </SOAP:Body>
    The XI Runtime Workbench (SXMB_MONI) takes (in my case)
    the wrong one (email-body-attachment) and gives me
    an parsing error. (Error occurs at my IDOC-Receiver-Adapter)
    Now my question:
    Can I remove the email-body-attachment, so that
    the further processing works with my xml-attachment?
    Or how can I resolve my problem.
    best regards
    Marcel Reichert

    Hi Marcel,
    use the PayloadSwapBean module to get the attachment as main payload.
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
    As parameters use:
    swap.keyName = payload-name
    swap.keyValue = MailAttachment-1
    Regards
    Stefan

  • 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: date

    Hi all
    I need to fetch the mail date during the processing with mail sender adapter. I can't find a relevant field in the Adapter-Specific Message Attributes (SHeaderFROM, SHeaderTO etc.).
    Do you know how to fetch the mail date during the processing of a mail via mail sender adapter?
    Thx
    Tobias

    Thanks for the response.
    The problem is that the mail is perhaps not processed when it is created. For example: the mail is created on 01th of april and sent to the mailbox. But the PI mail sender adapter is fetching the mail on 02nd of april. Due to the reason I can't use current date - I need the original sending date of the mail.
    Thx

  • Transport protocol SMTP in Mail Sender Adapter

    Hi Experts,
    How can I use SMTP as the Transport Protocol instead of POP3 / IMAP4 protocols in the Mail Sender Adapter.
    I am referring Note 856599 - FAQ Mail Adapter.pdf but not getting a l
    " 9. Other Questions
    Q: How can I configure my sender channel for my SMTP server?
    A: You can specify your SMTP server as URL. For example, if your
    server is called host, your URL should look like
    smtp://host:port/ "
    Regards,
    Shobhit

    Hi
    How can I use SMTP as the Transport Protocol instead of POP3 / IMAP4 protocols in the Mail Sender Adapter.
    In case of sending mail from XI you can use SMTP. To read mails you need POP3
    IMAP works for both.
    Yes in XI mail adapter receiver type. URL field you can use URL like
    SMTP://Mailhost.com
    Refer this
    The specified item was not found.
    Thanks
    Gaurav

  • Problem of encoding for mail sender adapter

    Hello, everyone.
    I have faced the problem of mail sender adapter.
    When someone send message with any content encoding (even UTF-8) and 8bit content type encoding the XI mail adapter corrupt special and foreign symbols. I checked the message for correct structure and encoding with tpcgw utility and it was fine. For example (this is what I can see in tcpgw)
    ==== Response ====
    +OK
    +OK Password required for user itra_xi
    +OK XXXXX maildrop has 1 messages (2048 octets)
    +OK 1 2048
    +OK
    +OK 1459 octets
    Return-path:
    Received: from (port=20091 helo=XXXX)
         by mx76.mail.ru with psmtp
         id 1O7UoW-0003I4-00
         for XXXXXX; Thu, 29 Apr 2010 18:34:04 +0400
    Message-ID:
    Subject: Message 29 4
    Date: Thu, 29 Apr 2010 17:33:43 +0300
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
         boundary="----=_NextPart_000_0018_01CAE7C2.1D0BBA60"
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2900.5843
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
    X-Spam: Not detected
    X-Mras: Ok
    This is a multi-part message in MIME format.
    =_NextPart_000_0018_01CAE7C2.1D0BBA60
    Content-Type: text/plain;
         charset="utf-8"
    Content-Transfer-Encoding: 8bit
    Test
    Тест
    And after processing by XI mail adapter  I have this payload (XIPAYLOAD mode using mail package)
    Test
    Тест
    The same situation with using mail package in xml document.
    Any suggestions how this can be corrected?

    I switched UTF-8 encoding during displaying of http content in tcpgw utility and all other mail clients detect it as UTF-8 and work fine. Also this problem occurs with different mail clients that are senders of the message. So it seems adapter takes each byte of cyrillic symbol (each from two) and represents it as individual symbol.
    Correct me if I'm wrong. Maybe there is some configuration somewhere allowing to correct or maybe it's possible to write module to correct.. but it's quite complicated to split correct and incorrect symbols.

  • Picking mails from a particular sender using mail sender adapter

    Hi Everyone,
    I want to create a scenario in which i want to pick mails from a particular sender and send it to XI.
    I don't want all the unread mails to be sent to XI but only those belonging from a particular sender.
    How should i configure the mail sender adapter to achieve the same.
    Thanks and Regards
    Rahul Nawale

    Hi,
    there are two ways to do that:
    not standard:
    create a java proxy which will check your maibox for mails
    from only one particular sender and then send messages
    to the xi
    more standard:
    create a new accound and redirect your mails from a particular sender from the main mailbox to this new one
    and poll from this new one only...
    this way you'll be able to use atandard mail adapter
    with no changes at all
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • No incoming mail on ipad with IMAP account

    I have not been able to receive incoming mail from an IMAP account hosted by Network Solutions, and I'm not sure if the problem is on the client or server side. I am also not able to delete messages from the inbox. (I get a message saying "Unable to move message: The message could not be moved to the mailbox Trash."
    I am sending and receiving emails from this account on both my iPhone and macbook without any problem. The iPad account is set-up exactly the same on the iPad as it is on the phone and macbook. The inbound port is set to 993, which is what it is automatically set to in the others even though NS says to set to 143.
    I have tried deleting the account and reinstalling many times with no success. I also tried resetting the ipad to factory settings. This worked briefly and everything worked fine for a couple of test emails, and then I was back at square one.
    There are a couple of things I've noticed. All my mail is in the inbox up until 9/5/13, after that there is nothing. If I search for a specific email and opt to continue the search on the server, the email is found and put in my mailbox (it is not there after deleting and reinstalling the account.) Also, I notice at the bottom of the folder bar where it tells you progress, last updated, etc. that when I am checking for mail, the status shows the downloading progress bar and the approximate number of emails I'm missing very briefly.
    Any help would be greatly appreciated.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Configuration problems with IMAP e-mail on iOS with a non-standard SSL port.
    http://colinrobbins.me/2013/02/09/configuration-problems-with-imap-e-mail-on-ios -with-a-non-standard-ssl-port/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

Maybe you are looking for

  • I have a library on my Ipod Classic and a different one on iTunes.  How can I sync both without losing any files?

    I think I may have deleted the original library a while back.  Since then, I have been collecting new files.  Now that I sat down to sync, I am unable to load new files at all.  Is there maybe a way to upload library on ipod into itunes library and t

  • Price date and Pr.Date Cat in Scheduling Agreement

    Hi Gurus, Anyone know what is the purpose of these 2 fields in SA? If I enter the price date with Pr.Date Cat = no control, what is the impact? Will system based on the Price Date to get the price in the info record? Thanks in advance.

  • Reg:protocol used in XI

    Hi, After the message is sent from integration engine to advanced adapter engine,through which protocol the AAE receives the message.whether it is XI protocol or HTTP protocol. pls let me know when XI protocol is used and when HTTP protocol is used i

  • Migrating forms 6i to oracle 9i

    Hello, I am currently running an Oracle 8.0.5 Database about 1.2 GigaBytes in size on a Novell 5.1 server. 1) I want to migrate to a Linux Red Hat 8 Server (I know that I have to upgrade to Linus Red Hat Enterprise 3 (ES)) No questions about that. 2)

  • URGENT - Editing pages made from template

    Okay so, I have created a few pages from a template that I created. To make the pages from template, I went to file > new > page from template > "mycreated" I need to edit these pages individually with different features and table layouts on each pag