You are not logged in.
Goodevening,
I've a problem with a mailgate on GLPI 10.3 v ersion, I've this error in php-errors.log
glpiphplog.CRITICAL: *** Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid email address. Use the basic format local-part@hostname in /var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 74
Backtrace :
vendor/laminas/laminas-mail/src/Address.php:50 Laminas\Mail\Address->__construct()
...inas-mail/src/Header/AbstractAddressList.php:92 Laminas\Mail\Address::fromString()
: Laminas\Mail\Header\AbstractAddressList::Laminas\Mail\Header\{closure}()
...inas-mail/src/Header/AbstractAddressList.php:71 array_map()
vendor/laminas/laminas-mail/src/Headers.php:556 Laminas\Mail\Header\AbstractAddressList::fromString()
vendor/laminas/laminas-mail/src/Headers.php:282 Laminas\Mail\Headers->loadHeader()
vendor/laminas/laminas-mail/src/Headers.php:102 Laminas\Mail\Headers->addHeaderLine()
vendor/laminas/laminas-mime/src/Decode.php:162 Laminas\Mail\Headers::fromString()
...r/laminas/laminas-mail/src/Storage/Part.php:106 Laminas\Mime\Decode::splitMessage()
...laminas/laminas-mail/src/Storage/Message.php:47 Laminas\Mail\Storage\Part->__construct()
...r/laminas/laminas-mail/src/Storage/Imap.php:121 Laminas\Mail\Storage\Message->__construct()
...aminas-mail/src/Storage/AbstractStorage.php:270 Laminas\Mail\Storage\Imap->getMessage()
src/MailCollector.php:731 Laminas\Mail\Storage\AbstractStorage->current()
src/MailCollector.php:1852 MailCollector->collect()
src/CronTask.php:1018 MailCollector::cronMailgate()
front/cron.php:84 CronTask::launch()
I see it reference to /var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 74
if (! $emailAddressValidator->isValid($email)) {
$invalidMessages = $emailAddressValidator->getMessages();
throw new Exception\InvalidArgumentException(array_shift($invalidMessages));
}
Anyone can help me, please?
Barte91
GLPI 10.0.5 - Centos 8 Stream x64
Offline
When does this happen?
Configuring the mailgate? can u post the mail address here?
Offline
this happen only a few emails, below an example of one email that I've a problem; i receive many email from this address every day and other email are imported correctly
INC2169661 - 123 Cerro- Collegamento cordless 851
S
ServiceNow <adeo@service-now.com>
A:Net Project | Assistenza
gio 22/09/2022 16:03
Buongiorno,
chiedono il collegamento cordless sulla linea telefono edilizia 851. Già attivato telefonicamente.
Rif. OLTI SHQEPA
Grazie
Barbara
Barte91
GLPI 10.0.5 - Centos 8 Stream x64
Offline
Ciao,
faccio prima in italiano.
Vai a
/var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 74
throw new Exception\InvalidArgumentException($email);
Così vediamo che valora ha quella variabile..
Offline
Hello,
I also have the problem and so I reactivate this post, hoping that this issue can be addressed.
This is just a warning as it does not prevent mailgate automatic action and collector to do the job. But it is really anowing as it sends email notifications every 5 minutes with this message...
Uncaught Exception Laminas\Mail\Exception\InvalidArgumentException: The input is not a valid email address. Use the basic format local-part@hostname in /var/www/glpi/vendor/laminas/laminas-mail/src/Address.php at line 74.
I temporarily fixed the issue by redirecting the cron job outputs to a file in order to suspend email notifications:
*/5 * * * * /usr/bin/php /var/www/glpi/front/cron.php >> /root/glpi/glpi-crontab.log 2>&1
Any idea on how to fix this? The input must be a valid email address as both automatic action and collector work fine.
Offline