I get a page not found when I click on fetch. I have added a client and configured all the email settings correctly.

I also got the following errors when I updated the client settings again, just to cross-check:

    * Fetching mail for <strong>clientname</strong>...
    * Failed to download messages for <strong>spamvigil</strong>, connection to mail server failed.
    * Client <strong>clientname</strong> updated.
    * warning: imap_open() [function.imap-open]: Couldn't open stream {mail.example.com:993/imap/ssl/novalidate-cert}mail in /home/example/public_html/sites/all/modules/jobtrack/jobtrack.module on line 1313.
    * Mail server connection failure: connect({mail.example.com:993/imap/ssl/novalidate-cert}mail), username(support@example.com), password(********)
    * Imap error: Can't connect to mail.example.com.provider.com,993: Connection timed out

The mail reached the mailbox fine.

Comments

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

You need to verify the username, password, and mail server hostname, and confirm that IMAP is available to you on your mail server.

The error 'connection timed out' suggests that nothing is listening on port 993 on mail.example.com, so pay particular attention to your server hostname and port.

jeremy’s picture

Category: bug » support

Marking as support request, as that's currently what it seems to be.

venkat-rk’s picture

StatusFileSize
new12.64 KB

Thanks. I misconfigured the host name, so corrected it and don't get the 'Couldn't connect..' error now.

But, I still get a 'Couldn't open stream' error. Please change status to bug report if appropriate.

jeremy’s picture

Please review your connection settings. Are you sure your mail server is listening on port 993? Try different connection settings -- this is most likely a misconfiguration of jobtrack.

venkat-rk’s picture

Yes, I just checked with my email provider and confirmed that secure IMAP is indeed listening on port 993. Not sure what's throwing the module error. Let me try again.

venkat-rk’s picture

StatusFileSize
new8.17 KB
new24.16 KB

Dumb of me. The firewall I had for the VPS was blocking outbound for port 993.

I don't get the error message anymore, but the mails are still not being fetched although they are there in the inbox. Jobtrack says downloaded 0 messages.

Screenshots attached.

jeremy’s picture

If you have already checked the messages, they are no longer marked as "new" and jobtrack may not download them. Does sending a new message to your account then get downloaded by jobtrack?

kittell’s picture

I had a similar problem, but I managed to fix it this morning.

Background: Yesterday I set up the Mailhandler module on my site after getting frustrated with the problem mentioned above. When I added a mailbox to Mailhandler -- approximately equivalent to integrating inbound email with a JobTrack client -- there was a field which gives an option for "extra commands." The purpose of this was to add commands such as "/novalidate-cert" to the imap_open command. Initially, I added "/novalidate-cert" to the IMAP mailbox command which caused Mailhandler's version of "sorry, can't connect to your mailbox." I removed "/novalidate-cert" and Mailhandler connects to that mailbox without problems.

The fix: This morning, I manually removed the instance of "/novalidate-cert" from jobtrack.module. I removed it only from line 1700, which affects the IMAP command. Now my email integrates with Jobtrack without any (visible) problems.

I used SiteGround for web site hosting -- perhaps this is server-specific; I'm not qualified to say.

venkat-rk’s picture

Thank you for sharing this. This has been the biggest stumbling block for me in using JobTrack. I will try your suggestion and report back.

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

New feature implemented. It is now possible to customize the extra imap_open() flags on a per-client basis.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

wqr786’s picture

Issue tags: +mail, +drupal mail, +imap mail, +imap, +jobtrack, +mail fetch, +fetch mail, +email fetch, +fetch email

We are working for a project for a customer, we customized the JobTrack module and things seem to be fine.

However, the Mail Fetching functionality of IMAP, we are not able to use it as the Hosting of Customer doesn't provide IMAP facilities to the package he has selected.

We are thinking of making a POP Mail Fetcher that performs say way as IMAP Fetcher of Job Track, and then finally integrate it with Job Track.

Can anybody suggest if some module is already available that we could use, etc?

Thanks
Waqar
4 Ace Technologies
http://www.4acetech.com

jeremy’s picture

Please upgrade to the support module - JobTrack has been deprecated for some time now:
http://drupal.org/project/support