[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fwd: bug in mini_sendmail] + config mail php pour un apache chrooté



Peut-être est-ce archi-connu, mais je viens de perdre du temps là-dessus. Il y a un bug dans mini_sendmail. J'ai envoyé le message ci-dessous, j'espère que c'est ça qu'il faut faire dans ce cas...

mini_sendmail est une (la ?) manière de configurer l'envoi de mail lors de l'installation d'une appli web PHP avec un apache chrooté. DokuWiki dans mon cas.

- Fabriquer un mini_sendmail corrigé
- Le copier dans /var/www/bin
- Editer /var/www/conf/php.ini pour y mettre
sendmail_path = /bin/mini_sendmail -t

Enfin je suis preneur s'il y a des critiques sur cette manière de faire.

  Jérôme.

-------- Message original --------
Sujet: bug in mini_sendmail
Date: Sun, 13 Jul 2008 01:37:30 +0200
De: Jérôme Desquilbet <jerome AT desquilbet POINT org>
Pour :: ports AT openbsd POINT org

mini_sendmail-chroot-1.3.6p0 static mini_sendmail for chrooted apache

has a problem: it doesn't handle well To: adresses with names, like
Firstname Lastname <firstname AT lastname POINT org>

For example, the following test works:

mini_sendmail -ffoo AT bar POINT org -t -v
To: jerome AT desquilbet POINT org
Subject: test
^D

but this one doesn't:

bin/mini_sendmail -ffoo AT bar POINT org -t -v
To: JD <jerome AT desquilbet POINT org>
Subject: test
^D

This bug has been already fixed in some places, but not the original
<http://www.acme.com/software/mini_sendmail/>

For a fix, see for example:
<https://dev.openwrt.org/cgi-bin/trac.fcgi/browser/packages/net/mini_sendmail/patches/200-fullname.patch?rev=8530>

Thank you,
  Jérôme.