You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-07-20 04:10:20

Klientos
Member
Registered: 2020-09-24
Posts: 4

Emails stuck in halfway to mailgate

Hello everyone!

I have a problem with GLPI mailgate.

Mailgate worked for some months, but now it cannot process some emails as tickets. Mostly because of incorrect addresses (like IMCEAEX addresses). Since yesterday, mailgate cannot process anything. After pressing "Get Email Tickets Now" I got:
Number of messages: available=93, already imported=0, received=10, refused=0, errors=10, blacklisted=0
I guess the mailgate stops because first 10 messages are faulty.

Okay, I've deleted all messages from GLPI's mailbox.
What I expect: Number of messages: available=0, already imported=0, received=0, refused=0, errors=0, blacklisted=0
What I got: Number of messages: available=93, already imported=0, received=10, refused=0, errors=10, blacklisted=0
Deleting emails from mailbox does not deletes them from mailgate queue.

So, my question is how to clean mailgate's cached/queued messages?

Some observations:
This is not a mailbox access issue, since "available=" increases as far as new emails coming to mailbox.
This is not a scheduler issue sinse I run it manually via web-interface.
I was unable to find something useful in laminas-mail documentation.

I appreciate any comments.

Last edited by Klientos (2022-07-20 06:03:45)

Offline

#2 2022-07-21 02:05:37

Klientos
Member
Registered: 2020-09-24
Posts: 4

Re: Emails stuck in halfway to mailgate

As a workaround, I've changed

public $maxfetch_emails = 10

to 30.
Now, mailgate gets 15 old bad emails and 15 new good emails, so queue is moving. But this is a nasty hack.

Offline

#3 2022-07-24 13:26:08

chris.gralike@amis.nl
Member
From: NL
Registered: 2013-02-26
Posts: 20
Website

Re: Emails stuck in halfway to mailgate

Hi Klientos,

In the past we also experienced the mailgate to be sensitive. We overcame most issues by creating additional mail import rules using the GLPI rules engine. Those that still broke the mailgate before GLPI could apply the rules engine we created exchange mailbox rules for.

Also see Administration > Rules > Rules for assigning a ticket created through an email receiver

p.s. in the automatic actions overview you should be able to perform a 'reset last run' action on the mailgate as well.

Hope this helps,

Last edited by chris.gralike@amis.nl (2022-07-24 13:28:18)


\\ [-_-] //
     |||
    // \\

Offline

#4 2022-08-22 03:50:55

Klientos
Member
Registered: 2020-09-24
Posts: 4

Re: Emails stuck in halfway to mailgate

Mea culpa, I deleted messages from the wrong mailbox. Deleting emails from the correct mailbox fixes the problem for now.

And there was an another issue simultaneously, that I discovered a bit later — there was a too large ticket (about 200 comments, many with size 500 kbytes). Trying to open "Processing ticket" — browser hangs. Trying to add email as comment — mailgate hangs. MySQL UPDATE query fixes it.

Thanks.

Offline

Board footer

Powered by FluxBB