Bonjour,
en PHP j'utilise la fonction mail() pour envoyer des e-mails aux visiteurs de mon site. Mon serveur HTTP utilise sendmail pour les gérer les envois d'e-mails.
Sur certains domaines(@hotmail.com par exemple), les e-mails envoyés à partir de mon site web arrivent. Certainement qu'il n'y a pas de détection de SPAM très performant chez eux.
En revanche chez @free.fr et d'autres, les mails ne parviennent pas à destination.
Je pense que cela vient de la configuration de sendmail sur mon serveur. Mon fichier sendmail.mc ressemble à ceci:
...
include(`../m4/cf.m4')
VERSIONID(`default setup for Slackware Linux')dnl
OSTYPE(`linux')dnl
dnl# These settings help protect against people verifying email addresses
dnl# at your site in order to send you email that you probably don't want:
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl# Uncomment the line below to send outgoing mail through an external server:
dnl define(`SMART_HOST',`smtp:smtp.free.fr')
dnl MASQUERADE_AS(`free.fr')dnl
dnl# No timeout for ident:
define(`confTO_IDENT', `0')dnl
dnl# Enable the line below to use smrsh to restrict what sendmail can run:
dnl FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
dnl# See the README in /usr/share/sendmail/cf for a ton of information on
dnl# how these options work:
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`access_db', `hash -T<TMPF> /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`local_procmail',`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`redirect')dnl
dnl# Turn this feature on if you don't always have DNS, or enjoy junk mail:
dnl FEATURE(`accept_unresolvable_domains')dnl
EXPOSED_USER(`root')dnl
dnl# Also accept mail for localhost.localdomain:
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(local)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Comme vous pouvez remarquer je l'ai un peu modifié pour prendre en compte l'SMTP de mon FAI.
Mais on dirait que ça ne suffit pas pour traverser l'anti-SPAM de beaucoup de monde.
Merci de m'expliquer ce qu'il faut en + :-)
---
[
yugiohjcj.cf]
Poste le Thursday 10 August 2006 15:38:25