You are not logged in.
Pages: 1
GLPI version 9.5.7
Some emails do not enter via mailgate and errors are generated which I am attaching:
From mailgate.log:
2022-05-16 15:00:02 [@helpdesk]
Il messaggio non è valido (The input is not a valid email address. Use the basic format local-part@hostname). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
2022-05-16 15:00:02 [@helpdesk]
Il messaggio non è valido (The input is not a valid email address. Use the basic format local-part@hostname). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
2022-05-16 15:00:02 [@helpdesk]
Il messaggio non è valido (The input is not a valid email address. Use the basic format local-part@hostname). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
2022-05-16 15:00:02 [@helpdesk]
Errore durante l'analisi del messaggio (Laminas\Mail\Header\ContentType::setType expects a value in the format "type/subtype"; received "image/*"). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
2022-05-16 15:00:02 [@helpdesk]
Errore durante l'analisi del messaggio (Laminas\Mail\Header\ContentType::setType expects a value in the format "type/subtype"; received "image/*"). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
2022-05-16 15:00:02 [@helpdesk]
Errore durante l'analisi del messaggio (Header with Name message_id or message_id not found). Verifica "/var/www/html/glpi/files/_log/php-errors.log" per maggiori dettagli
From php-errors.log:
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid eail address. Use the basic format local-part@hostname in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Address.php at line 78
Backtrace :
vendor/laminas/laminas-mail/src/Address.php:54 Laminas\Mail\Address->__construct()
...inas-mail/src/Header/AbstractAddressList.php:87 Laminas\Mail\Address::fromString()
: Laminas\Mail\Header\AbstractAddressList::Laminas\Mail\Header\{closure}()
...inas-mail/src/Header/AbstractAddressList.php:66 array_map()
vendor/laminas/laminas-mail/src/Headers.php:548 Laminas\Mail\Header\AbstractAddressList::fromString()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
...r/laminas/laminas-mail/src/Storage/Part.php:113 Laminas\Mail\Headers::fromString()
...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->__construct()
...or/laminas/laminas-mail/src/Storage/Pop3.php:64 Laminas\Mail\Storage\Message->__construct()
...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Pop3->getMessage()
inc/mailcollector.class.php:721 Laminas\Mail\Storage\AbstractStorage->current()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid eail address. Use the basic format local-part@hostname in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Address.php at line 78
Backtrace :
vendor/laminas/laminas-mail/src/Address.php:54 Laminas\Mail\Address->__construct()
...inas-mail/src/Header/AbstractAddressList.php:87 Laminas\Mail\Address::fromString()
: Laminas\Mail\Header\AbstractAddressList::Laminas\Mail\Header\{closure}()
...inas-mail/src/Header/AbstractAddressList.php:66 array_map()
vendor/laminas/laminas-mail/src/Headers.php:548 Laminas\Mail\Header\AbstractAddressList::fromString()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
...r/laminas/laminas-mail/src/Storage/Part.php:113 Laminas\Mail\Headers::fromString()
...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->__construct()
...or/laminas/laminas-mail/src/Storage/Pop3.php:64 Laminas\Mail\Storage\Message->__construct()
...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Pop3->getMessage()
inc/mailcollector.class.php:721 Laminas\Mail\Storage\AbstractStorage->current()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid eail address. Use the basic format local-part@hostname in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Address.php at line 78
Backtrace :
vendor/laminas/laminas-mail/src/Address.php:54 Laminas\Mail\Address->__construct()
...inas-mail/src/Header/AbstractAddressList.php:87 Laminas\Mail\Address::fromString()
: Laminas\Mail\Header\AbstractAddressList::Laminas\Mail\Header\{closure}()
...inas-mail/src/Header/AbstractAddressList.php:66 array_map()
vendor/laminas/laminas-mail/src/Headers.php:548 Laminas\Mail\Header\AbstractAddressList::fromString()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
...r/laminas/laminas-mail/src/Storage/Part.php:113 Laminas\Mail\Headers::fromString()
...laminas/laminas-mail/src/Storage/Message.php:53 Laminas\Mail\Storage\Part->__construct()
...or/laminas/laminas-mail/src/Storage/Pop3.php:64 Laminas\Mail\Storage\Message->__construct()
...aminas-mail/src/Storage/AbstractStorage.php:268 Laminas\Mail\Storage\Pop3->getMessage()
inc/mailcollector.class.php:721 Laminas\Mail\Storage\AbstractStorage->current()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Header\Exception\InvalidArgumentException: Laminas\Mail\HeaderContentType::setType expects a value in the format "type/subtype"; received "image/*" in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Heaer/ContentType.php at line 115
Backtrace :
...inas/laminas-mail/src/Header/ContentType.php:47 Laminas\Mail\Header\ContentType->setType()
vendor/laminas/laminas-mail/src/Headers.php:548 Laminas\Mail\Header\ContentType::fromString()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
vendor/laminas/laminas-mime/src/Decode.php:150 Laminas\Mail\Headers::fromString()
vendor/laminas/laminas-mime/src/Decode.php:81 Laminas\Mime\Decode::splitMessage()
...r/laminas/laminas-mail/src/Storage/Part.php:194 Laminas\Mime\Decode::splitMessageStruct()
...r/laminas/laminas-mail/src/Storage/Part.php:256 Laminas\Mail\Storage\Part->cacheContent()
...r/laminas/laminas-mail/src/Storage/Part.php:471 Laminas\Mail\Storage\Part->countParts()
inc/mailcollector.class.php:1505 Laminas\Mail\Storage\Part->rewind()
inc/mailcollector.class.php:1660 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:1002 MailCollector->getAttached()
inc/mailcollector.class.php:758 MailCollector->buildTicket()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Header\Exception\InvalidArgumentException: Laminas\Mail\HeaderContentType::setType expects a value in the format "type/subtype"; received "image/*" in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Heaer/ContentType.php at line 115
Backtrace :
...inas/laminas-mail/src/Header/ContentType.php:47 Laminas\Mail\Header\ContentType->setType()
vendor/laminas/laminas-mail/src/Headers.php:548 Laminas\Mail\Header\ContentType::fromString()
vendor/laminas/laminas-mail/src/Headers.php:284 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:105 Laminas\Mail\Headers->addHeaderLine()
vendor/laminas/laminas-mime/src/Decode.php:150 Laminas\Mail\Headers::fromString()
vendor/laminas/laminas-mime/src/Decode.php:81 Laminas\Mime\Decode::splitMessage()
...r/laminas/laminas-mail/src/Storage/Part.php:194 Laminas\Mime\Decode::splitMessageStruct()
...r/laminas/laminas-mail/src/Storage/Part.php:256 Laminas\Mail\Storage\Part->cacheContent()
...r/laminas/laminas-mail/src/Storage/Part.php:471 Laminas\Mail\Storage\Part->countParts()
inc/mailcollector.class.php:1505 Laminas\Mail\Storage\Part->rewind()
inc/mailcollector.class.php:1660 MailCollector->getRecursiveAttached()
inc/mailcollector.class.php:1002 MailCollector->getAttached()
inc/mailcollector.class.php:758 MailCollector->buildTicket()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
[2022-05-16 15:00:02] glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Storage\Exception\InvalidArgumentException: Header with Name mssage_id or message_id not found in /var/www/html/glpi/vendor/laminas/laminas-mail/src/Storage/Part.php at line 307
Backtrace :
inc/mailcollector.class.php:1453 Laminas\Mail\Storage\Part->getHeader()
inc/mailcollector.class.php:970 MailCollector->getHeaders()
inc/mailcollector.class.php:758 MailCollector->buildTicket()
inc/mailcollector.class.php:1762 MailCollector->collect()
inc/crontask.class.php:943 MailCollector::cronMailgate()
front/cron.php:83 CronTask::launch()
Why do only some emails generate this error, while most "enter" without problems?
Thanks for support.
Andrea Olivares
Offline
I am also facing the same issue.
Offline
I had the same problem and was able to solve it by commenting the line of code in mailmailcollector.class.php like here:
// 'message_id' => $message->getHeader('message_id')->getFieldValue(),
you have to check what the consequences of this are
Offline
Pages: 1