[HS] exim et php
Bonjour,
J'essaie d'utiliser la fonction mail de php.
Sur mon powerbook (2.4.18-newpmac sous Debian), comme mailer j'ai exim
3.35-1.
J'utilise php4 4.1.2-4 et apache 1.3.26-0woody1
Voici le script PHP
<?php
$exp = "jsrp@digi-sight.com";
$expName = "jseb";
$content = "Ceci est un test";
$dest = "jsrp@digi-sight.com";
$subj = "Demande d'info";
print "<h1 align='center'>Thank you for your interest <B>$name<B>
</h1>";
$headers .= "From: $expName <$exp>\n";
$headers .= "X-Sender: <$exp>\n";
$headers .= "X-Mailer: PHP\n"; // maileur
$headers .= "X-Priority: 1\n"; // Message urgent!
$headers .= "Return-Path: <$exp>\n"; // Rechemin de retour pour les
erreurs
$headers .= "Content-Type: text/html; charset=iso-8859-1\n"; // Type
MIME
//$headers .= "cc:birthdayarchive@php.net\n"; // Champs CC
//$headers .= "bcc:birthdaycheck@php.net, birthdaygifts@php.net\n"; //
Champs
BCCs
mail($dest, $subj, $content, $headers);
?>
Et le r�sultat dans le log d'Exim
2002-11-11 10:57:57 18BCGT-0001Fi-00 <= www-data@digi-sight.com
U=www-data
P=local S=733
2002-11-11 10:57:58 18BCGT-0001Fi-00 ** jsrp@digi-sight.com
R=lookuphost
T=remote_smtp: SMTP error from remote mailer after MAIL
FROM:<www-data@digi-sight.com> SIZE=1772: host www.digi-sight.com
[217.174.192.170]: 553 5.3.0 <www-data@digi-sight.com>... No such user
here
2002-11-11 10:57:58 18BCGU-0001Fv-00 <= <> R=18BCGT-0001Fi-00 U=mail
P=local
S=1704
2002-11-11 10:57:58 18BCGT-0001Fi-00 Error message sent to
www-data@digi-sight.com
Il me semble donc que les données concernant l'expéditeur ne passent pas
et que
exim prend son qualify_domain = digi-sight.com par défaut avec comme
user
www-data. (www-data@digi-sight.com n'existe évidemment pas)
Comment puis-je régler ce problème ? Config d'exim ? Mauvais headers ?
Merci
Jean-Sébastien Rousseau-Piot
Bruxelles
Reply to: