Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails auto fetching IMAP only without errors. #3694

Closed
EyeOfEnigma opened this issue Jan 16, 2024 · 5 comments
Closed

Fails auto fetching IMAP only without errors. #3694

EyeOfEnigma opened this issue Jan 16, 2024 · 5 comments

Comments

@EyeOfEnigma
Copy link

EyeOfEnigma commented Jan 16, 2024

Hello,

Just got FreeScout setup on Unraid with the official docker image. Everything is working with zero errors in the logs, except fetching emails automatically with IMAP does not work. I have connected other services to this email account through IMAP without issues.

The cron job shows it connects, finds mailboxs and folders, but fetches zero new emails when there are new emails to be fetched.

If I do a manual fetch by running php artisan schedule:run or freescout:fetch-emails it does the same thing, runs without errors but fetches nothing.

The strangest part is that if I do a manual fetch with the built in system tool it DOES grab all the new emails with no issues or errors. So, my IMAP connection must be correct.

Also, if I change the email account type to POP, everything works fine, including the cron job, it fetches new emails without issue. It's only the cron fetching of IMAP that is not working. Again, not a single error is in the logs, all this leaves me to believe it is an issue with FreeScout.

This is the only thing preventing me from converting to FreeScout and purchasing a bunch of the modules.

The email account is hosted in cpanel from NameCheap. Default email setup. I have checked all credentials a hundred times, and tried with and without ssl, and have read through the documentation on here multiple times and have tried everything recommended without success.

Any help would be greatly appreciated.

FreeScout version: 1.8.117
Database: PostgreSQL
Are you using CloudFlare: No

@freescout-helpdesk
Copy link
Contributor

Can you share fetch log from Manage > Logs.

@EyeOfEnigma
Copy link
Author

Sure, I am actually getting an error from in the laravel log all of a sudden.

fetch-emails.log
laravel-2024-01-16.log

@freescout-helpdesk
Copy link
Contributor

Make sure that something does not mark emails as "READ" in your mail server. Background fetching fetches only unread emails.

@EyeOfEnigma
Copy link
Author

Wow. Thank you! I can't believe it was something so simple. I disconnected all services from the email and set cPanel to never mark email as read, and it fixed it. I'm not sure if it was a service or cPanel that was marking them, but that work.

@ohader
Copy link
Contributor

ohader commented Apr 1, 2024

FYI: I've created a PR #3931 to make this behavior configurable.

This seems to be handy, when mail accounts are still used in a hybrid way - e.g. some folks still accessing messages directly via IMAP, while others already migrated their workflow to use FreeScout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants