-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mail receiver blocked by smtp message with inline images (message body attached) #9600
Comments
Hi, Please try with to reproduce on GLPI 9.5.6. Maybe it has been fixed. Regards |
I am trying to reproduce on a test server. |
The problem persists in the latest version (9.5.6). Small attempt to debug the code. How I reproduced the problem - I put a previously saved bad letter directly into the INPUT directory of the mailbox (using Microsoft Outlook) , click the button "Get email tickets now" on Home-Setup-Receivers-(my receiver)-Actions. After 10 minutes I get a message in the php-errors.log: I modified the /usr/share/glpi/inc/mailcollector.class.php application code by adding debug output commands (Toolbox::logError from line 1580 to 1595):
If I post a normal message with an attached file, the log (php-errors.log) looks like this: If I post a failed message with an attached file, the log looks like this: You can see that the attachment named =?US-ASCII?B?0LjQt9C+0LHRgNCw0LbQtdC90LjQtS5wbmc=?= creates an infinite loop problem on line 1592: |
Excuse me, I closed this issue by mistake! You can see that the attachment named =?US-ASCII?B?0LjQt9C+0LHRgNCw0LbQtdC90LjQtS5wbmc=?= creates an infinite loop problem on line 1592: |
Should be fixed with #9672 |
Describe the bug
glpi 9.5.5. The mail receiver is configured. An email message was sent by our customer to the mail receiver's email address. No new ticket is generated from this smtp message.
After 50 minutes: A notification with the "Crontask (Automatic actions)" template received with message - Task "mailgate | Receivers | Retrieve email (Mails receivers)" in an error state. On the web page "Home-Setup-Automatic actions-mailgate-Automatic action" item "Next run" there is a state "Running...". Additional mailings sent to the mail receiver's email address do not create new tickets. The mail receiver's Input queue is "blocked".
The /usr/share/glpi/front/cron.php task takes a long time to complete and does not complete.
ps aux | grep front/cron
apache 48792 98.1 2.1 472104 44024 ? Rs 11:12 189:15 /usr/bin/php /usr/share/glpi/front/cron.php
To reproduce
The issue is reproducible only with SMTP message with inline (embedded inline MIME blocks) images.
Message body (schematically):
Try sending an smtp message with same body (see attachment email.txt) to the mail receiver's email address.
Expected behavior
The new ticket is generated from the smtp message.
Logs
cron.log
Your GLPI setup (you can find it in Setup > General menu, System tab)
email.txt
The text was updated successfully, but these errors were encountered: