Aller au contenu

Problème Email


snwoman49

Sujets conseillés

Bonjour à tous,

Je rencontre un problème avec l'envoie de mail depuis mon serveur dédié.

En fet je dois envoyer des mails vers une adresse sécurisé antispam, c'est à dire que le logiciel qui recoit le mail que j'envoie vérifie que je suis dans le carnet d'adresse de la personne vers qui j'envoie ce mail.

En php avec imap_mail() ou mail() depuis mon serveur dédié ovh ca ne marche pas, depuis mon hébergement mutualisé chez infomaniak ca marche !

Cela marche aussi parfaitement quand je passe par Thunderbird (avec le compte pop du serveur dédié).

Y a t'il quelquechose à rajouter dans le header du mail php pour que le mail soit authentifier par le logiciel comme sûre ?

Mon code php

$to = 'mon_mail_AT_test.com';
$subject = 'bien ';
$message = 'Bien bien !';
$headers = 'From: test_AT_mail.com' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1\r\n' . "\r\n";
imap_mail($to, $subject, $message, $headers);

Merci pour votre aide.

Bonne journée.

Modifié par snwoman49
Lien vers le commentaire
Partager sur d’autres sites

Bonjour à tous,

J'ai testé mes mails avec check-auth_AT_verifier.port25.com, voici ce que j'obtiens pour mon serveur dédié ovh :

==========================================================
Summary of Results
==========================================================

mail-from check: neutral
PRA check: neutral
DomainKeys check: neutral (message not signed)

==========================================================
Details:
==========================================================

Note: currently some of this information is obtained separately from
the verification process, and as such there is no hard guarantee that
it is the data used during verification. A future version providing
that guarantee is planned.


HELO hostname: ns35356.ovh.net
Source IP: 213.251.186.129
mail-from: wii_AT_atlas-du-web.com

----------------------------------------------------------
mail-from check details:
----------------------------------------------------------
Result: neutral
Address: wii_AT_atlas-du-web.com
Header: verifier.port25.com smtp.mail=wii_AT_atlas-du-web.com; mfrom=neutral;

SPF TXT record/s:


----------------------------------------------------------
PRA check details:
----------------------------------------------------------
Result: neutral
Address: wii_AT_atlas-du-web.com
Header: verifier.port25.com header.from=wii_AT_atlas-du-web.com; pra=neutral;

PRA TXT record/s:


----------------------------------------------------------
DomainKeys check details:
----------------------------------------------------------
Result: neutral (message not signed)
Address: wii_AT_atlas-du-web.com
Header: verifier.port25.com header.from=wii_AT_atlas-du-web.com; domainkeys=neutral (message not signed);

Domain Key TXT record:


==========================================================
Original Email
==========================================================

Return-Path: <wii_AT_atlas-du-web.com>
Received: from ns35356.ovh.net (213.251.186.129) by verifier.port25.com (PowerMTA(tm) v3.2r5t2) id hg72rk0cm50k for <check-auth_AT_verifier.port25.com>; Thu, 14 Dec 2006 16:44:26 -0500 (envelope-from <wii_AT_atlas-du-web.com>)
Authentication-Results: verifier.port25.com smtp.mail=wii_AT_atlas-du-web.com; mfrom=neutral;
Authentication-Results: verifier.port25.com header.from=wii_AT_atlas-du-web.com; domainkeys=neutral (message not signed);
Authentication-Results: verifier.port25.com header.from=wii_AT_atlas-du-web.com; pra=neutral;
Received: (qmail 28950 invoked by uid 1002); 14 Dec 2006 21:48:19 -0000
Date: 14 Dec 2006 21:48:19 -0000
Message-ID: <20061214214819.16998.qmail_AT_ns35356.ovh.net>
To: check-auth_AT_verifier.port25.com
Subject: test
From: wii_AT_atlas-du-web.com <wii_AT_atlas-du-web.com>
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
X-Sender: <wii.atlas-du-web.com>
X-Mailer: PHP
X-auth-smtp-user: wii_AT_atlas-du-web.com
X-abuse-contact: abuse_AT_atlas-du-web.com

test !


==========================================================
Explanation of the possible results (adapted from
draft-kucherawy-sender-auth-header-02.txt):
==========================================================

"pass"
the sending domain publishes the given authentication policy
and the message passed the authentication tests.

"fail"
the sending domain publishes the given authentication policy
and the message failed the authentication tests.

"softfail"
the sending domain publishes an authentication policy which doesn't
require authentication of all messages from that domain, and the
message failed the authentication tests. Please note that a
SPF/Sender-Id status of "neutral" also results in "softfail".

"neutral"
sending domain does not publish any sender authentication policy.

"temperror"
a temporary (recoverable) error occurred attempting to authenticate
the sender; either the process couldn't be completed locally because
of some transient condition, or there was a temporary failure
retrieving the sending domain's policy; a later attempt to
re-authenticate this message might produce a more final result.

"permerror"
a permanent (unrecoverable) error occurred attempting to
authenticate the sender; either the process couldn't be completed
locally, or there was a permanent failure retrieving the sending.
domain's policy

Maintenant sur mon mutualisé :


==========================================================
Summary of Results
==========================================================

mail-from check: softfail
PRA check: softfail
DomainKeys check: neutral (message not signed)

==========================================================
Details:
==========================================================

Note: currently some of this information is obtained separately from
the verification process, and as such there is no hard guarantee that
it is the data used during verification. A future version providing
that guarantee is planned.


HELO hostname: ns35356.ovh.net
Source IP: 213.251.186.129
mail-from: support_AT_meteorologic.net

----------------------------------------------------------
mail-from check details:
----------------------------------------------------------
Result: softfail
Address: support_AT_meteorologic.net
Header: verifier.port25.com smtp.mail=support_AT_meteorologic.net; mfrom=softfail;

SPF TXT record/s:
v=spf1 include:spf.infomaniak.ch ?all

----------------------------------------------------------
PRA check details:
----------------------------------------------------------
Result: softfail
Address: support_AT_meteorologic.net
Header: verifier.port25.com header.from=support_AT_meteorologic.net; pra=softfail;

PRA TXT record/s:
v=spf1 include:spf.infomaniak.ch ?all

----------------------------------------------------------
DomainKeys check details:
----------------------------------------------------------
Result: neutral (message not signed)
Address: support_AT_meteorologic.net
Header: verifier.port25.com header.from=support_AT_meteorologic.net; domainkeys=neutral (message not signed);

Domain Key TXT record:


==========================================================
Original Email
==========================================================

Return-Path: <support_AT_meteorologic.net>
Received: from ns35356.ovh.net (213.251.186.129) by verifier.port25.com (PowerMTA(tm) v3.2r5t2) id hg9etk0cm50g for <check-auth_AT_verifier.port25.com>; Fri, 15 Dec 2006 03:33:30 -0500 (envelope-from <support_AT_meteorologic.net>)
Authentication-Results: verifier.port25.com smtp.mail=support_AT_meteorologic.net; mfrom=softfail;
Authentication-Results: verifier.port25.com header.from=support_AT_meteorologic.net; domainkeys=neutral (message not signed);
Authentication-Results: verifier.port25.com header.from=support_AT_meteorologic.net; pra=softfail;
Received: (qmail 21022 invoked by uid 508); 15 Dec 2006 08:37:23 -0000
Received: from unknown (HELO ?192.168.1.2?) (86.210.106.221)
by ns35356.ovh.net with SMTP; 15 Dec 2006 08:37:23 -0000
Message-ID: <45825ECB.2020707_AT_meteorologic.net>
Date: Fri, 15 Dec 2006 09:37:31 +0100
From: Support Meteorologic <support_AT_meteorologic.net>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
To: check-auth_AT_verifier.port25.com
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

test


==========================================================
Explanation of the possible results (adapted from
draft-kucherawy-sender-auth-header-02.txt):
==========================================================

"pass"
the sending domain publishes the given authentication policy
and the message passed the authentication tests.

"fail"
the sending domain publishes the given authentication policy
and the message failed the authentication tests.

"softfail"
the sending domain publishes an authentication policy which doesn't
require authentication of all messages from that domain, and the
message failed the authentication tests. Please note that a
SPF/Sender-Id status of "neutral" also results in "softfail".

"neutral"
sending domain does not publish any sender authentication policy.

"temperror"
a temporary (recoverable) error occurred attempting to authenticate
the sender; either the process couldn't be completed locally because
of some transient condition, or there was a temporary failure
retrieving the sending domain's policy; a later attempt to
re-authenticate this message might produce a more final result.

"permerror"
a permanent (unrecoverable) error occurred attempting to
authenticate the sender; either the process couldn't be completed
locally, or there was a permanent failure retrieving the sending.
domain's policy

Je ne sais pas d'où viens le problème, mais si mon Qmail était mal configuré cela ne marcherait pas non plus depuis Thunderbird (avec le dédié) ? je me trompe ?

Merci en tout cas pour votre aide et bonne journée.

:)

Modifié par snwoman49
Lien vers le commentaire
Partager sur d’autres sites

Bonsoir,

Cette après midi j'ai essayé d'envoyé le mail en ssh avec metasend, j'ai fait cette commande :

metasend -b -F "monmail_AT_domaine.com" -e "7bit" -f "test.txt" -m "text/html" -s "petit test" -t "mailrecoie_AT_domaine.com"

Ca ne marche toujours pas.

Par contre quand j'utilise Sqwebmail ou Qmail avec l'administration ovh ca marche !

Y a t'il moyen d'utiliser Sqwebmail ou Qmail par SSH pour envoyer des mails ?

Merci pour vos réponses.

Bonne soirée.

Lien vers le commentaire
Partager sur d’autres sites

Bonjour à tous,

Des nouvelles de mes histoires de mail.

J'ai enfin réussis à envoyer des mails en php, en fet il fallait modifier le Content-transfer-encoding: du header en mettant Content-transfer-encoding: base64.

J'arrive donc à envoyer un mail avec la commande mail mais il y a un problème.

Le sujet de mon mail s'affiche correctement, mais son contenu ne s'affiche pas !

Savez vous pourquoi ? que dois je mettre dans mon header ?

Voici mon header actuel :

$head = "From: mail_AT_mail.com <mail_AT_mail.com> \r\n";

$head .= "To : mail_recoie_AT_mail.com \r\n";

$head .= "Subject : Test \r\n";

$head .= "Return-Path : mail_AT_mail.com \r\n";

$head .= "Content-Type: text/html; charset=ISO-8859-1; format=flowed \r\n";

$head .= "Content-transfer-encoding: base64 \r\n";

$head .= "X-Sender: <mail_AT_mail.com > \r\n";

$head .= "X-Priority: 3 \r\n";

$head .= "X-Mailer: PHP \r\n";

$head .= "X-auth-smtp-user: mail_AT_mail.com \r\n";

$head .= "X-abuse-contact: mail_AT_mail.com ";

Merci beaucoup pour votre aide.

A bientôt.

:)

Lien vers le commentaire
Partager sur d’autres sites

Veuillez vous connecter pour commenter

Vous pourrez laisser un commentaire après vous êtes connecté.



Connectez-vous maintenant
×
×
  • Créer...