james-2.3.2--james-2.3.2--james-2.3.2--james-2.3.2 Fetchmail polls gmail (POP) nicely! However I had to make the following adjustments to this james-fetchmail.xml file in order to have it working:
pop3 should be changed to pop3s <property name="mail.pop3.ssl.enable" value="true"/> is unnecessary. Actually it won't work with it! <fetchall>false</fetchall> should be changed to <fetchall>true</fetchall> <defaultdomain>localhost</defaultdomain> is not necessary <remotereceivedheader index="1" reject="true" leaveonserver="true" markseen="false"/> THE INDEX SHOULD BE 2 NOT 1! It took me some time to realize it! AhAhAh! Yes, now it's working fine! james-2.3.2--james-2.3.2--james-2.3.2--james-2.3.2 On Wed, Sep 1, 2010 at 9:38 AM, Eric Charles <[email protected]> wrote: > Hi, > Just tried to test with pop3 and it's working. > - Configure gmail further to > http://mail.google.com/support/bin/answer.py?hl=en&answer=13273. > - James config for James 3 is hereafter. > > Tks, > > Eric > > <?xml version="1.0"?> > <fetchmail enabled="true"> > <fetch name="gmail.com"> > <accounts> > <account user="[email protected]" password="YOUR_PASSWORD" > recipient="YOUR_EMAIL_ADDRESS_IN_JAMES" ignorercpt-header="true"/> > </accounts> > <host>pop.gmail.com</host> > <interval>6000</interval> > <javaMailProviderName>pop3</javaMailProviderName> > <javaMailFolderName>INBOX</javaMailFolderName> > <javaMailProperties> > <property name="mail.pop3.ssl.enable" value="true"/> > <property name="mail.pop3.connectiontimeout" value="180000"/> > <property name="mail.pop3.timeout" value="180000"/> > > </javaMailProperties> > <fetchall>false</fetchall> > <recursesubfolders>false</recursesubfolders> > <defaultdomain>localhost</defaultdomain> > <fetched leaveonserver="true" markseen="true"/> > <remotereceivedheader index="1" reject="true" leaveonserver="true" > markseen="false"/> > <maxmessagesize limit="0" reject="false" leaveonserver="true" > markseen="false"/> > <undeliverable leaveonserver="true" markseen="false"/> > <recipientnotfound defer="true" reject="true" leaveonserver="true" > markseen="false"/> > <blacklist reject="true" leaveonserver="true" markseen="false"> > wib...@localhost, flob...@localhost</blacklist> > <userundefined reject="true" leaveonserver="true" markseen="false" /> > <remoterecipient reject="true" leaveonserver="true" markseen="false" /> > </fetch> > </fetchmail> > > > On 31/08/2010 19:30, Jean Luc Guislain wrote: > >> Hi Eric! >> >> Thank you for your email. >> I tried to adapt this james-fechmail.xml file to a pop3 account in gmail. >> (I >> use POP exclusively, not IMAP). >> The connection was not succesfful. >> First I need to solve my SSL/TLS problem befor I can go forward with this, >> I >> think. >> Rgs >> JL >> >> >> On Fri, Aug 27, 2010 at 10:03 AM, Eric Charles<[email protected]> wrote: >> >> Hi Jean Luc, >>> >>> I tried to fetchmail gmail with James 3.0. >>> There was a few problems with 3.0 src code ( >>> https://issues.apache.org/jira/browse/JAMES-1038) >>> >>> If you work with James 2.3 (I think the config is the same), following >>> config should work (it worked for me with James 3.0 trunk + JAMES-1038). >>> Once fetched, mails are marked SEEN, but are not removed from gmail. >>> >>> Before testing this, ensure you can reach you gmail account with your >>> favorite IMAP client. >>> >>> Tks, >>> >>> Eric >>> >>> <?xml version="1.0"?> >>> <fetchmail enabled="true"> >>> <fetch name="gmail.com"> >>> <accounts> >>> <account user="[email protected]" password="YOUR_PASSWORD" >>> recipient="YOUR_EMAIL_ADDRESS_IN_JAMES" ignorercpt-header="true"/> >>> </accounts> >>> <host>imap.gmail.com</host> >>> <interval>6000</interval> >>> <javaMailProviderName>imap</javaMailProviderName> >>> <javaMailFolderName>INBOX</javaMailFolderName> >>> <javaMailProperties> >>> <property name="mail.imap.ssl.enable" value="true"/> >>> </javaMailProperties> >>> <fetchall>false</fetchall> >>> <recursesubfolders>false</recursesubfolders> >>> <defaultdomain>localhost</defaultdomain> >>> <fetched leaveonserver="true" markseen="true"/> >>> <remotereceivedheader index="1" reject="true" leaveonserver="true" >>> markseen="false"/> >>> <maxmessagesize limit="0" reject="false" leaveonserver="true" >>> markseen="false"/> >>> <undeliverable leaveonserver="true" markseen="false"/> >>> <recipientnotfound defer="true" reject="true" leaveonserver="true" >>> markseen="false"/> >>> <blacklist reject="true" leaveonserver="true" markseen="false"> >>> wib...@localhost, flob...@localhost</blacklist> >>> <userundefined reject="true" leaveonserver="true" markseen="false" /> >>> <remoterecipient reject="true" leaveonserver="true" markseen="false" /> >>> </fetch> >>> </fetchmail> >>> >>> >>> >>> On 25/08/2010 20:28, Jean Luc Guislain wrote: >>> >>> I would like to know if somebody has a working >>>> >>>> james-fetchmail.xml >>>> >>>> file to poll a pop gmail account. >>>> >>>> Rgs, >>>> JL >>>> >>>> >>>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
