I'm trying to configure James to fetch a Gmail inbox. It's timing out when attempting to connect:
13/08/15 20:43:59 INFO fetchmail: FetchMail Started 13/08/15 20:44:59 INFO fetchmail.test: Fetcher starting fetches 13/08/15 20:44:59 INFO fetchmail.test: Processing 1 static accounts and 0 dynamic accounts. 13/08/15 20:44:59 INFO fetchmail.test: Starting fetching mail from server ' pop.gmail.com' for user 'alexander.far...@prolucid.ca' in folder 'INBOX' 13/08/15 20:45:59 INFO fetchmail.test: Triggered fetch cancelled. A fetch is already in progress. 13/08/15 20:46:03 ERROR fetchmail.test: A MessagingException has terminated processing of this Folder javax.mail.MessagingException: Connect failed; nested exception is: java.net.ConnectException: Connection timed out at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:106) at javax.mail.Service.connect(Service.java:233) at javax.mail.Service.connect(Service.java:134) at org.apache.james.fetchmail.StoreProcessor.process(StoreProcessor.java:75) at org.apache.james.fetchmail.FetchMail.targetTriggered(FetchMail.java:550) at org.apache.avalon.cornerstone.blocks.scheduler.DefaultTimeScheduler.doRunEntry(DefaultTimeScheduler.java:449) at org.apache.avalon.cornerstone.blocks.scheduler.DefaultTimeScheduler$1.run(DefaultTimeScheduler.java:412) at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55) at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116) I've tried using both POP3 and IMAP configuration. Here are snippets of the configuration I'm using: <host>pop.gmail.com</host> <interval>60000</interval> <javaMailProviderName>pop3</javaMailProviderName> <javaMailFolderName>INBOX</javaMailFolderName> <javaMailProperties> <property name="mail.pop3.connectiontimeout" value="180000"/> <property name="mail.pop3.timeout" value="180000"/> <property name="mail.pop3.ssl.enable" value="true"/> </javaMailProperties> <fetchall>false</fetchall> <recursesubfolders>false</recursesubfolders> <fetched leaveonserver="false" markseen="true"/> <remotereceivedheader index="2" reject="true" leaveonserver="true" markseen="false"/> I've definitely enabled POP3 and IMAP from within Gmail already. I've read this discussion: http://mail-archives.apache.org/mod_mbox/james-server-user/201010.mbox/%3CAANLkTimh2BaQA=w-SkStDjJwfmTiXOuau3BKU8aV=s...@mail.gmail.com%3E but when I set the javaMailProviderName to pop3s, the logs say that no such mail service exists. Where can I look next to resolve the connection timeout? -- *Alexander Farley* Systems Integrator *Prolucid Technologies Inc.* 186 Robert Speck Parkway, Suite 201 | Mississauga, ON, L4Z 3G1 *T:* 416.840.6634 x 224 | *F:* 416.342.1759 | *www.prolucid.ca <http://www.prolucid.ca/>* STRICTLY PERSONAL AND CONFIDENTIAL. This email may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the intended recipient please contact the sender and delete all copies.