Forum

PHP-IMAP Extension ...
 
Notifications
Retirer tout

PHP-IMAP Extension replacement/alternatives

13 Posts
3 Utilisateurs
0 Reactions
6,587 Vu
(@verncon)
Posts: 41
Trusted Member
Début du sujet
 
[#7589]

It appears that PHP-IMAP Extension is finished, at least for Fedora branch, as of PHP 7.4. See https://bugzilla.redhat.com/show_bug.cgi?id=1956278

Is there any alternative package which is being considered for Projeqtor, from PHP 8.0 and beyond?

Cheers.


 
Posté : 19/06/2021 11:36 am
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

We do not plan to replace php-imap.
It would be a great work on projeqtor, and php-imap is removed only from some distro (Fedora, OpenSuse) which are mostly used for desktops rather than for servers.
You can retreive php-imap from external sources ( https://fedora.pkgs.org/34/remi-x86_64/php74-php-imap-7.4.19-1.fc34.remi.x86_64.rpm.html)


 
Posté : 19/06/2021 1:57 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

php-imap isn't available on servers too.

For example all Entreprise Linux based :
Red Hat, CentOS, Rocky... and in my case Oracle Linux.
There is security issue in the thread management.

Tried Remi but can't be installed because system doesn't match prerequistes by design.

Want to try PECL but need PHP 8.3.
Projeqtor compatibility matrix doesn't hnow PHP 8.3.

What do you suggest ?


 
Posté : 17/04/2024 8:21 pm
(@babynus)
Posts: 14952
Membre Admin
 

Projeqtor compatibility matrix doesn't snow PHP 8.3.

PHP8.3 compatibility comes with ProjeQtOr V11.2, which becomes stable today with ptch 11.2.2.


 
Posté : 19/04/2024 5:52 pm
(@babynus)
Posts: 14952
Membre Admin
 

PHP-IMAP shoumd not be required on PHP8.1 as it is included in the Core.
It will be moved to PECL in PHP8.4 ( https://php.watch/versions/8.4/imap-unbundled)
 


 
Posté : 19/04/2024 5:57 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

It is not in the core of php 8.1 for Entreprise Linux.

Do you intend to implement Webklex/php-imap ?


 
Posté : 26/04/2024 8:30 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,
This is not really in the scope.
But we plan to improve our imap model to allow oAuth2 authentification, so Webklex/php-imap may be an aternative


 
Posté : 28/04/2024 10:15 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

Hello,

I switched to php8.2 remi.
Unfortunately it's worst.

Sending SMTP doesn't work anymore:
2024-04-29 12:42:17.871 ** ERROR ** [V10.3.6] PHPMail error : SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
2024-04-29 12:42:17.871 ** ERROR ** [V10.3.6] PHPMail debug :

Troubleshooting tells to not mix SMTPS or STARTTLS but there is no way to select one of these in Projeqtor 10.3.6.


 
Posté : 29/04/2024 2:51 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

After switching to PHP 8.2, the first error was :
2024-04-29 10:58:25.811 ** ERROR ** [V10.3.6] cause = nl2br(): Passing null to parameter #1 ($string) of type string is deprecated

As the first null parameter was username, I set username/password and error became 'smtp failed to connect'.
I followed troubleshooting all was ok except missing sendmail (not neede in php 8.0).
But still error smtp.
I have deleted user/password and it WORKS. PHP8.2 need sendmail.

It seems when you set username/password in Projeqtor, it activates encryption but you cannot select STARTTLS against SMTPS. I don't know how Projeqtor select one.
I hope this is not based on port number because we use a custom port xx25, for internal mailing.


 
Posté : 29/04/2024 4:00 pm
(@babynus)
Posts: 14952
Membre Admin
 
PHP8.2 need sendmail.

If you set smtp server  to localhost, yes sendmail is required.
If you sent it to another server, this server requires some smtp sending method (sendmail or else)
This is not specific to PHP8.2

you cannot select STARTTLS against SMTPS

You can, just specify protocole on server name : tls://yourserver or ssl://yourserver
 


 
Posté : 29/04/2024 4:11 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

I do not use localhost and I needed sendmail in 8.2 like in

https://www.projeqtor.org/fr/forum-fr/5-ask-questions/13501-solved-problem-to-send-mails-from-inside-projeqtor#37354


 
Posté : 29/04/2024 4:17 pm
(@g-jibraneanfh-fr)
Posts: 8
Active Member
 

I tried tls:// to use STARTTLS but smtp failed


 
Posté : 29/04/2024 4:25 pm
(@babynus)
Posts: 14952
Membre Admin
 

I do not use localhost and I needed sendmail in 8.2 like in
www.projeqtor.org/fr/forum-fr/5-ask-ques...side-projeqtor#37354

On the linked source I can read

2024-04-23 19:53:09.151 ** ERROR ** [V11.1.3] SMTP Server : localhost

So it seems you use localhost


 
Posté : 02/05/2024 4:51 pm
Share:
Retour en haut