Koozali.org: home of the SME Server
Other Languages => Français => Topic started by: _YO_ on February 14, 2006, 11:54:47 AM
-
Pour vous informer, j'ai rencontré un problème avec SME 7 lors de l'envoi de feuille de soin électronique.
Les mails envoyés au réseau santé (rss) étaient systématiquement rejetés parce que l'entête de ces mails ne contenaient pas de date.
Le coupable est le plugin check_basicheaders de qpsmtpd qui effectue certains contrôle dont celui de vérifier si la date d'envoi du mail n'est pas trop différente de la date actuelle. Or comme il n'y a pas de date, le mail est rejeté par ce plugin et donc pas envoyé.
Il y & 2 moyens de contourner le problème :
Soit éditer le fichier /var/service/qpsmtpd/config/plugins en mettant en commentaire la ligne check_basicheaders (modif du template /etc/e-smith/templates/var/service/qpsmptd/config/plugins/17check_basicheaders)
Mais j'ai choisi de modifier le fichier du plugin directement :
Modif du fichier /usr/share/qpsmptd/plugins/check_basicheaders
J'y ai rajouté la ligne
return(DECLINED);
juste derrière la ligne
unless $transaction->header->get('From:');
Les tests qui suivent cette ligne rajoutée concernant la date ne sont plus effectués.
Voila. j'espère que ça aidera quelqu'un un jour.
.YO.
-
Les mails envoyés au réseau santé (rss) étaient systématiquement rejetés parce que l'entête de ces mails ne contenaient pas de date.
Le coupable est le plugin check_basicheaders de qpsmtpd ...
No, the fault is really with the rss software, which is sending messages with an incorrect format! The 'Date' and 'From' headers have *always* been madatory for SMTP.
-
Hi Charlie,
Definitively, Yes you're right Charlie.
The faulty is rss software.
But as I could modify SME, i couldn't modify this $%~- !! software !
I cheat where i can ;)
.YO.
-
The faulty is rss software.
But as I could modify SME, i couldn't modify this $%~- !! software !
Understood. I was just making sure that the finger was pointed in the right direction. :-)
-
Mais j'ai choisi de modifier le fichier du plugin directement :
Modif du fichier /usr/share/qpsmptd/plugins/check_basicheaders
J'y ai rajouté la ligne
return(DECLINED);
juste derrière la ligne
unless $transaction->header->get('From:');
This is a very bad idea. The next upgrade to the qpsmtpd package will overwrite your changes. See bug 492 for a safer workaround for this RFC non-compliant software:
http://bugs.contribs.org/show_bug.cgi?id=492
-
This is a very bad idea. The next upgrade to the qpsmtpd package will overwrite your changes.
Gordonr Charlie
Fortunately that you are there to drive us in the right way !
I reverse my mods to make the one you said. But i get a complete another error while 'signal-event email-update' :
Feb 15 09:21:23 router esmith::event[1243]: expanding /etc/mail/spamassassin/local.cf
Feb 15 09:21:23 router esmith::event[1243]: ERROR in /etc/e-smith/templates//etc/mail/spamassassin/local.cf/70globalWBL_to: Program fragment delivered error <<Can't call method "props" on an undefined value at /etc/e-smith/templates//etc/mail/spamassassin/local.cf/70globalWBL_to line 6.>> at template line 1
Feb 15 09:21:23 router esmith::event[1243]: ERROR: Template processing failed for //etc/mail/spamassassin/local.cf: 1 fragment generated errors
Feb 15 09:21:23 router esmith::event[1243]: at /etc/e-smith/events/actions/generic_template_expand line 118
Pehaps helping you if i give you this :
----------
[root@router templates]# db spamassassin show
wbl.global=list
----------
But no 'wbl.global_to' as mentionned in line 6 of /etc/e-smith/templates/etc/mail/spamassassin/local.cf
Do i have to open a bug for this ?
.YO.
-
Do i have to open a bug for this ?
Please raise a bug for anything which doesn't work as expected. But please ensure that you have applied all updates and performed a reconfiguration reboot as the bug may already have been fixed.
-
On SME7.0 pre3 expanding /etc/mail/spamassassin/local.cf is OK now
Thanks all !