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

Circular email Loop #4143

Closed
steveb85 opened this issue Jul 23, 2024 · 10 comments
Closed

Circular email Loop #4143

steveb85 opened this issue Jul 23, 2024 · 10 comments

Comments

@steveb85
Copy link

We've had quite a day of circlular email loops. I've seen a few threads on here, and been chasing tails all around and shutting emails out all over the place but found an un-likely culprit, i thought I'd share, I'm hoping it's fixed now, but perhaps will help the team or someone else. I'm still not quite sure of the cause, but after scouring logs and having quite the day, our email server was sending out6 emails a second, which is enough to constantly get shut down in short order, making catching it hard, as it would be a hectic 40 mins and then be shut down by microsoft and go dead for an hour and then start back up again abruptly.

the fetch email logs, (yes fetch not send, not app, but fetch) finally led me to find this log, where by every user was getting sent an email saying they needed to have the fetch account email added to their alternative emails on their user account ? but that is marked as optional? quiet weird... perhaps someone can shine a light on that. then after a while that cuased another loop because microsoft marked the sender as spam, (makes sense) and so then i was getting undelieverable emails, which of course go to the inbox of the help, and then that trigggers an autoreply which triggers another email, and so on. so you can see how it got out of hand quickly and i was seeing emails everywhere but finding the route was very hard... anyway, I'll paste some text from the actual "first contact" i finally found of the loop.... in case it provides some help... and hopefully tomorrow is fine...thanks all

Jul 22, 15:54:45 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:41 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:41 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address.

Jul 22, 15:54:45 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:44 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:43 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Oscar G user email: oscar@studioassistant.io. Add oscar@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match Alex Cernichiari user email: alex@studioassistant.io. Add alex@studioassistant.io to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:42 Oscar G Error fetching email Sender address support@studioassistant.io does not match John Flores user email: john@theaudiohunt.com. Add john@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:41 Oscar G Error fetching email Sender address support@studioassistant.io does not match Steve Bartlett user email: steve@theaudiohunt.com. Add steve@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address. Studio Assistant Support
Jul 22, 15:54:41 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address.

@freescout-help
Copy link
Collaborator

https://github.com/freescout-help-desk/freescout/blob/dist/app/Console/Commands/FetchEmails.php#L821

FreeScout fetches emails and determines them as replies to email notifications from support agents. But "From" fields in those emails do not match support agents' emails in your FreeScout.

Have you checked what do these emails look like:

Jul 22, 15:54:41 Oscar G Error fetching email Sender address support@studioassistant.io does not match michal m user email: michal@theaudiohunt.com. Add michal@theaudiohunt.com to user's Alternate Emails in the users's profile to allow the user reply from this address.

@steveb85
Copy link
Author

@freescout-help when i look at the inbox for support@studioassistant.io there is no email to fetch, which is the odd thing? it also seems this isn't fixed i awoke to another 8k emails...

@steveb85
Copy link
Author

and i had removed the password from the fetch emails setting so clearly i was wrong on this being the cause...

@icwt-2024
Copy link

I'm having the same issue.. as I noticed now it's been going on for a while ... filled up 100G+ space on the email server

@steveb85
Copy link
Author

@icwt-2024 hope we can find a quick solution

@steveb85
Copy link
Author

are you using microsoft office 365 as mail server @icwt-2024 ?

@icwt-2024
Copy link

icwt-2024 commented Jul 23, 2024

no I'm using gmail as SMTP - workspace so paid company email
connection via IMAP "unsecure app"

I'm on 1.8.112 - but checked the release logs, and no fix according similar issues, so I'm not dare to update unless 100% it's been resolved

which version you're on?

also I've got all email notifications turned off, so shouldn't send anything to self

I've noticed the fetch interval was 1 minute - updated now to 5

@icwt-2024
Copy link

I think I've found something...
the notifications are handled on user level as well, and I've noticed for one of the users in question had some email notification on.

so if a notification went out to an alias, freescout picked it up as a new msg, and sent out as a new notification ... and rinse and repeat .. .

@freescout-help
Copy link
Collaborator

Make sure:

@raramuridesign
Copy link

We had a similar issue, I can confirm the forwarding and auto responders was a major headache!

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

4 participants