Koozali.org: home of the SME Server

SME 7.0 & SESAM VITALE

Offline _YO_

  • ***
  • 45
  • +0/-0
SME 7.0 & SESAM VITALE
« 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.
.YO.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME 7.0 & SESAM VITALE
« Reply #1 on: February 14, 2006, 07:17:57 PM »
Quote from: "_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.

Offline _YO_

  • ***
  • 45
  • +0/-0
Re: SME 7.0 & SESAM VITALE
« Reply #2 on: February 14, 2006, 09:11:47 PM »
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.
.YO.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: SME 7.0 & SESAM VITALE
« Reply #3 on: February 14, 2006, 09:14:48 PM »
Quote from: "_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. :-)

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: SME 7.0 & SESAM VITALE
« Reply #4 on: February 15, 2006, 03:38:13 AM »
Quote from: "_YO_"

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
............

Offline _YO_

  • ***
  • 45
  • +0/-0
Re: SME 7.0 & SESAM VITALE
« Reply #5 on: February 15, 2006, 10:06:16 AM »
Quote from: "gordonr"

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.
.YO.

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
Re: SME 7.0 & SESAM VITALE
« Reply #6 on: February 15, 2006, 11:38:07 AM »
Quote from: "_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.
............

Offline _YO_

  • ***
  • 45
  • +0/-0
SME 7.0 & SESAM VITALE
« Reply #7 on: February 15, 2006, 01:07:53 PM »
On SME7.0 pre3 expanding /etc/mail/spamassassin/local.cf is OK now

Thanks all !
.YO.