Mantis

Pb mails bloquées

Posted by syl 
syl
Pb mails bloquées
January 16, 2008 09:28AM
Depuis 1 jour alors que tout fonctionne bien, toutes les actions envoyant des mails ne se font plus (ajouter une note, assigné...).

J'ai cette erreur dans le log de php si ça vous dit quelque chose ?

[16-Jan-2008 05:32:46] PHP Warning: mysql_connect() [<a href=&#039;function.mysql-connect&#039;>function.mysql-connect</a>]: Can&#039;t connect to MySQL server on &#039;localhost&#039; (10061) in C:\wamp\www\mantis\core\adodb\drivers\adodb-mysql.inc.php on line 355
[16-Jan-2008 05:32:46] PHP Fatal error: Call to undefined function error_parameters() in C:\wamp\www\mantis\core\database_api.php on line 261
Re: Pb mails bloquées
January 16, 2008 09:35AM
A priori il y a un problème avec le serveur SQL...

Il semblerait aussi qu&#039;il y ait un fichier qui ne soit plus lu. Quelle est la version de Mantis ? Comment sont envoyés les emails (immédiatement ou par cron) ?

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
syl
Re: Pb mails bloquées
January 16, 2008 09:46AM
version de Mantis 1.1.0a2

J&#039;ai laissé la configuration par défaut pour l&#039;envoi des mails
Re: Pb mails bloquées
January 16, 2008 09:52AM
Il faudrait vérifier l&#039;intégrité des fichiers Mantis. A commencer par le fichier core.php, à la ligne 103 il doit y avoir :
Language: PHP
span class="br0">( $t_core_path.&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>;error_api.php&<a href="http://bugtracker.morinie.fr/mantis/view.php?id=039" target="_blank">#039</a>; );

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
syl
Re: Pb mails bloquées
January 16, 2008 10:08AM
oui c&#039;est bon pour cette ligne
Re: Pb mails bloquées
January 16, 2008 10:11AM
Il faut alors vérifier le fichier core/error_api.php et vérifier que la fonction error_parameters est bien définie.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
syl
Re: Pb mails bloquées
January 16, 2008 10:46AM
$g_error_parameters = array();
$g_error_handled = false;
$g_error_proceed_url = null;

function error_parameters() {
global $g_error_parameters;

$g_error_parameters = func_get_args();
}

Après pour info j&#039;utilise wamp,

je viens de constaté que l&#039;envoi de mail avec mantis semble revenu,
ça ma fait ça régulièrement 2 ou 3 fois par mois et ça dure entre 1 jour ou 2, puis ça re fonctionne correctement, je me demande si dans les fichiers de conf il n&#039;y a pas des variables à optimisées
syl
Re: Pb mails bloquées
January 16, 2008 10:58AM
J&#039;ai vu cette info, je n&#039;ai pas tout compris a votre avis cela peut t&#039;il venir de cela ?

A report was submitted to the Mantis team this week describing a vulnerability in the PHPMailer class. This class is used by Mantis to send notification emails for issue updates.

The exploit takes advantage of a hole in how PHP implements the internal interface to the sendmail MTA. The setting for the sender address can be used to gain access to system resources. This exploit is described in [larholm.com] [^] and [cve.mitre.org] [^] .

After reviewing the Mantis code, we determined that this vulnerability does not affect the operation of the tool. We read the sender address from configuration data. To use this exploit, someone would require administrator level access and/or direct access to the database. The probability of exploit is very low. A small patch will be added in the next release to prevent the problem completely.

In general, we recommend using the SMTP mode, rather than sendmail, rather than the local sendmail implementation. Most platforms, (Windows, especially), have problems with the internal PHP implementation of the sendmail. The PHPMailer implementation of SMTP is more robust and slightly faster.
Re: Pb mails bloquées
January 16, 2008 11:06AM
Quote
syl
Après pour info j&#039;utilise wamp,

je viens de constaté que l&#039;envoi de mail avec mantis semble revenu,
ça ma fait ça régulièrement 2 ou 3 fois par mois et ça dure entre 1 jour ou 2, puis ça re fonctionne correctement, je me demande si dans les fichiers de conf il n&#039;y a pas des variables à optimisées

Ce que je n&#039;aime pas dans WAMP c&#039;est le W. Vérifiez que vous avez bien les dernières versions...

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Re: Pb mails bloquées
January 16, 2008 11:07AM
Quote
syl
J&#039;ai vu cette info, je n&#039;ai pas tout compris a votre avis cela peut t&#039;il venir de cela ?

A report was submitted to the Mantis team this week describing a vulnerability in the PHPMailer class. This class is used by Mantis to send notification emails for issue updates.

The exploit takes advantage of a hole in how PHP implements the internal interface to the sendmail MTA. The setting for the sender address can be used to gain access to system resources. This exploit is described in [larholm.com] [^] and [cve.mitre.org] [^] .

After reviewing the Mantis code, we determined that this vulnerability does not affect the operation of the tool. We read the sender address from configuration data. To use this exploit, someone would require administrator level access and/or direct access to the database. The probability of exploit is very low. A small patch will be added in the next release to prevent the problem completely.

In general, we recommend using the SMTP mode, rather than sendmail, rather than the local sendmail implementation. Most platforms, (Windows, especially), have problems with the internal PHP implementation of the sendmail. The PHPMailer implementation of SMTP is more robust and slightly faster.

A priori ce n&#039;est pas applicable puisque cela concerne l&#039;executable sendmail. A priori vous utilisez le mode SMTP (à vérifier dans la config $g_phpMailer_method).

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
syl
Re: Pb mails bloquées
January 16, 2008 11:15AM
A l&#039;époque j&#039;avais pris la dernière version de wamp: wamp 5 j&#039;ai vu maintenant qu&#039;il existe Wampserver 2.


$g_phpMailer_method = 0;
fonction mail()
syl
Re: Pb mails bloquées
January 16, 2008 11:19AM
Il y a quelques temps j&#039;avais mis cela dans config_inc.php, mais lorsque j&#039;avais eu cette erreur pour la première fois j&#039;ai remis cela en commentaire, donc j&#039;utilise la configuration par défaut $g_phpMailer_method = 0;

#pour mail
$g_phpMailer_method = 2;
$g_smtp_host = &#039;smtp.monserver.fr&#039;; // whatever you smtp server is
$g_smtp_username = &#039;&#039;;
$g_smtp_password = &#039;&#039;;
Re: Pb mails bloquées
January 16, 2008 11:37AM
L&#039;article que vous citez parle de la configuration $g_phpMailer_method = 1;. Donc ce n&#039;est pas votre cas.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
syl
Re: Pb mails bloquées
January 16, 2008 12:01PM
drinking smiley Merci pour votre aide, je na sait toujours pas trop d&#039;ou vient le problème et la façon de le résoudre, j&#039;espère qu&#039;il ne reviendra pas trop souvent, une autre info sur la même machine il y a un autre serveur lotus alors j&#039;utilise le port 88 pour mantis...
Re: Pb mails bloquées
January 16, 2008 12:09PM
Je ne pense pas que cela change quoique ce soit au niveau du mail.

Vincent


Mantis: 1.1.0, 1.1.5, 1.1.1
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux

Please complete your signature with your environment informations.
Enable skype notification here
Sorry, only registered users may post in this forum.

Click here to login



Online Users

Guests: 4
Record Number of Users: 1 on April 02, 2023
Record Number of Guests: 115 on November 09, 2023
Top Users
Hébergeur : Morinie.Fr