[prev in list] [next in list] [prev in thread] [next in thread] 

List:       james-user
Subject:    Setup James to retrieve/send Gmail
From:       William Shatner <shatner.william () gmail ! com>
Date:       2009-07-09 17:20:33
Message-ID: 9af1b1990907091020y67fac4aar2b8adfac9ac2eb28 () mail ! gmail ! com
[Download RAW message or body]

Hi

I would like to set up James to listen and retrieve mails from my
gmail account, store them in a DB and send a simple autoreply. I have
started editing files as below but I 'm stuck on the SSL bit. What do
I ned to enter to satisfy Gmail SSL (please see below)?

I am a James novice.

I've started with the receive mail part of above problem.
-------------------------------------------------------------------------------------- \
-------------------------------------------------------------------------------------------------------------------------
 I have used this page, http://wiki.apache.org/james/UsingSSL as a
guide to editing the config.xml to enable SSL. I have edited as
described on the page, however I am stuck!!

What info should i enter for the keystore/password/key-password? Do I
need to install the gmail ssl certificate locally (If so, how do i get
this?) or is there a better way?

<factory name="ssl"
class="org.apache.avalon.cornerstone.blocks.sockets.TLSServerSocketFactory">
            <ssl-factory>
               <keystore>
                  <file>file</file>
                  <password>secret</password>
                  <key-password>keysecret</key-password>
                  <type>JKS</type>
                  <protocol>TLS</protocol>
                  <algorithm>SunX509</algorithm>
                  <authenticate-client>false</authenticate-client>
               </keystore>
            </ssl-factory>
         </factory>


------------------------------------------------------------------------------------------------------------------------------------------
 in james-fetchmail.xml i have done the following:


at top of file...
<fetchmail enabled="true">
       ---
        <fetch name="pop.gmail.com">

I have edited alllocal and account user  fields in the accounts
section of the same file as below. Setting the same account info in
both. Is this correct? I haven't edited all fields as you can see
below. what should I put in those fields?


<accounts>
                <alllocal userprefix="my.name"
usersuffix="@googleappsdomain.com" password="mypassword"
recipientprefix="WHAT DO I PUT HERE(my address again?)"
recipientsuffix="WHAT DO I PUT HERE" ignorercpt-header="true"/>

           <account user="my.name@mygoogleappsdomain.com"
password="mypassword" recipient="postmaster@localhost"
ignorercpt-header="false"/>
                <!-- Custom recipient header handling -->
                <!-- this example search an header named X-Envelope-To
and use the recipient found in that header -->
                <!--
                <account customrcpt-header="X-Envelope-To" user="WHAT
DO I PUT HERE"password="WHAT DO I PUT HERE"
recipient="postmaster@localhost" ignorercpt-header="false"/>
  -->
            </accounts>

-------------------------------------------------------------------------------------- \
----------------------------------------------------------------------------------------------




I am currently getting an error on James startup because there is no
SSL file at location specified above.
Do I need a mailet to setup the auto-reply?

All help appreciated...

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic