Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring Integration Mail Adapter Using Wrong User
    primarykey
    data
    text
    <p>We have a Spring Integration process that is using an Email Adpater to programatically read email from a GMail account. When it runs on my local PC, everything runs fine. When we deploy this to our Linux server (Linux 2.6.32-279.11.1.el6.x86_64), then the same configuration looks like it is using the server account that the application runs under and not the parameter that is configured in Spring. </p> <p>We are trying to connect to <strong>mail.account@gmail.com</strong></p> <pre><code>&lt;mail:imap-idle-channel-adapter id="customAdapter" store-uri="imaps://mail.account:password@imap.gmail.com/INBOX" java-mail-properties="javaMailProperties" channel="receiveEmailChannel" should-delete-messages="false" should-mark-messages-as-read="true" auto-startup="true"&gt; &lt;/mail:imap-idle-channel-adapter&gt; </code></pre> <p>Running on my PC, I get the following from the mail.debug logging. Notice that the user is <strong>mail.account</strong></p> <pre><code>A0 CAPABILITY * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN A0 OK Thats all she wrote! y4if3012170qcp.27 DEBUG IMAP: AUTH: XOAUTH DEBUG IMAP: AUTH: XOAUTH2 DEBUG IMAP: AUTH: PLAIN DEBUG IMAP: AUTH: PLAIN-CLIENTTOKEN DEBUG: protocolConnect login, host=imap.gmail.com, user=mail.account, password=&lt;non-null&gt; A1 AUTHENTICATE PLAIN </code></pre> <p>Running on Linux, I get the following from the mail.debug logging. Notice that the user is <strong>server.account</strong></p> <pre><code>DEBUG: trying to connect to host "imap.gmail.com", port 993, isSSL true * OK Gimap ready for requests from 999.999.9.999 u6if3552599icy.8 A0 CAPABILITY * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN A0 OK Thats all she wrote! u6if3552599icy.8 DEBUG IMAP: AUTH: XOAUTH DEBUG IMAP: AUTH: XOAUTH2 DEBUG IMAP: AUTH: PLAIN DEBUG IMAP: AUTH: PLAIN-CLIENTTOKEN DEBUG: protocolConnect login, host=imap.gmail.com, user=server.account, password=&lt;non-null&gt; DEBUG IMAP: AUTHENTICATE PLAIN command trace suppressed DEBUG IMAP: AUTHENTICATE PLAIN command result: A1 NO Invalid credentials u6if3552599icy.8 </code></pre> <p>This is a Grails app and we have a build management system in place to do the builds and deploys, so I'm fairly confident that the jar files and configuration should be the same.</p> <p>I'm at the end of my rope trying to track this down. Anyone ever experience this before?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload