Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
Test de l'ISO d'Ubuntu francophone : nous avons besoin de testeurs pour la version francophone d'Ubuntu 14.04. Liens et informations ici.

Attention, une faille de sécurité dans bash a récemment été rapportée, il est recommandé de mettre à jour son système (plus de détails)

#1 Le 25/07/2011, à 08:59

totoflingueur

Spam Yahoo et hotmail avec apache

Bonjour,

Configuration Postfix (spf=Ok, domainKey=ok, dkim=ok)

Lorsque j'envoie un mail depuis le site redmine https://redmine.tgprojets.fr mais mails passe bien chez Yahoo et Hotmail

From redmine@tgprojets.fr Mon Jul 25 07:35:13 2011
X-Apparently-To: gilbertom2000<at>yahoo<pt>fr via 77.238.189.184; Mon, 25 Jul 2011 06:35:13 +0000
Return-Path: <root<at>tgprojets<pt>com>
Received-SPF: pass (domain of tgprojets.com designates 95.142.170.160 as permitted sender)
 UmVkbWluZSBVUkw6IGh0dHBzOi8vcmVkbWluZS50Z3Byb2pldHMuZnIvATAB
 AQEB
X-YMailISG: iY_GpmAWLDv2d_X80W3dQPmqkAcrRfTvbzag_Bjnd5VtnDcW
 W3lXyxLKm2SMaJoJZM3_kdFKy_nJRbq2gWCfCSWln39rCIe5UVOiNYxFCWNM
 8gDXUulgJrqz1E4JuOuhmkJJDGiF8n0uZEaP5lNloknLNmzKYgXByu7mzgXw
 Lfjr0vtzl8aAESlo0pklJPJ0jzOcAf02tPKhbrWWITXHgsBaED1LKXALJD.T
 7ypc.gqvwjqTSjGeUJuUQMSD96IRITomj0FRPNQpmG.1FKdB8mz2o3vTKyvh
 EtlB0Zy3n2N_wnDD5LSB8cjb8286e0zHVxEM70qzt6uhen.RzjZJYYnU8WYE
 qEOH1JrZZ1zIjD5jIetrprhUSsNsEvDqVhJ8AfR7DK55kV7OnIU17qtTkLA4
 dvZRbMKl9iwonCmYpWNuC1X26KLOz2BnfILACXjANwCaoa3LjxOl7apT_A85
 i_RjG7hiMDRUYVM76xmBLLp2meY98wMbau7QFmtqOFhnopL.DaFejE30JcQJ
 4TC7MjPNU2F0E5l6Xf4HQAmKUnX9mxfLG.Kz..qVnCH6BvEjFFBWtSbIYN.5
 KA30MiM2RrZSFHQ2SaeioxrWojjSeMu_zmT8COBM0QBSioewhurF5TuuJKZM
 QUVj16WTu_xIv058zS3uVRaOZlh9ofjsziakoVyc6hztnn1lDE5FMnu80EZA
 2hvhFhg3RRiNpMiNb0Lb04Dz2Y40Oe2YinnxzK8Nr7zkER9LY908vqOZKXGu
 kxpgw2oiUS38yyYmV5XC9qYr9UJ0liUtEh9I0mBvPS_3eNw.GHNw6_adAMTD
 fcTT2E5Ko_hcTLJI3FjlFMsZO08R3Wf32ySht2dQa5k4v8pnEkeEihZFmaEU
 IRAwe62ZCSIEHFbdV0psU6nOpG4H1ZfdoRZZT97WEnpMRdC_Kb.M8VxH94BR
 rg6SMvcQdkCch_sjcnCUP6r59VcqYV7oC0bMaDtL9VFPF0UOJw8iBEW4D75y
 UQFDjeiQMttqm1DD3eNnQ5DK2JP232HNEoqR93socSB6X355IcOTAhMKZNob
 bKZXyR.t6l2vTPLjC5gcqR8EZ03QF.SPhesBi2D072ojjGt2q0I-
X-Originating-IP: [95.142.170.160]
Authentication-Results: mta1015.mail.ird.yahoo.com  from=tgprojets.fr; domainkeys=pass (ok);  from=tgprojets.fr; dkim=pass (ok)
Received: from 127.0.0.1  (EHLO smtp.tgprojets.com) (95.142.170.160)
  by mta1015.mail.ird.yahoo.com with SMTP; Mon, 25 Jul 2011 06:35:13 +0000
Received: by smtp.tgprojets.com (Postfix, from userid 0)
    id 4EE6F45BE; Mon, 25 Jul 2011 08:35:13 +0200 (CEST)
X-DomainKeys: Sendmail DomainKeys Filter v1.0.0 smtp.tgprojets.com 4EE6F45BE
DomainKey-Signature: a=rsa-sha1; s=mydk; d=tgprojets.fr; c=simple; q=dns;
    b=uckh1JFfzA44CZfUuFmTGZPxrQ/uT//ILGUIvAf4v9FfJRIuLFa9mQGa6rmdTbeAG
    PTrWyob/cBjIZCSRxB4GbUPLJlym5DG16tfcmDtjdAstNqCDqK5HrjIGYwSjFuK6UVs
    LYWNWiceVFjWyBvpN7yrkosBN9byFHRolI0PSdA=
X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.tgprojets.com 4EE6F45BE
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tgprojets.fr; s=dkim;
    t=1311575713; bh=ouQnYmeMuNKWDM12Tf9LF2+1bX7p/EUEAH0GZjcv9Y8=;
    h=Date:From:Subject:Mime-Version:Content-Type:Message-Id:To;
    b=FsIekn53S9f0hKC37I8UbYFosHWSWlhXU6bC8ZEe+SK8ReQ3cJkmGdFTkEr74JZnN
     RudWWU2wuxCDopse4A1YTbz42F7AIzauJJR5KZ2gm+N+Nxi+2f+I6rzs4obW6zZerD
     MO0V1R1OUPQHE6IJGwjUrLFJQue6J679419g1D4k=
Date: Mon, 25 Jul 2011 08:35:13 +0200
From: redmine<at>tgprojets<pt>fr
Subject: Redmine test
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary=mimepart_4e2d0ea14a9ce_5348..fdb1cb9421932
Precedence: bulk
X-Mailer: Redmine
Auto-Submitted: auto-generated
X-Redmine-Site: Forge TGPROJETS
X-Redmine-Host: redmine.tgprojets.fr
Message-Id: <20110725063513.4EE6F45BE@smtp.tgprojets.com>
To: undisclosed-recipients:;
Content-Length: 1638

Par contre quand j'envoie depuis le site http://www.tgprojets.fr, ils vont direct dans les spams

From contact@tgprojets.com Mon Jul 25 07:32:14 2011
X-Apparently-To: gilbertom2000<at>yahoo<pt>fr via 77.238.189.148; Mon, 25 Jul 2011 06:32:16 +0000
Return-Path: <tgilbert<at>tgprojets<at>com>
X-YahooFilteredBulk: 95.142.170.160
Received-SPF: pass (domain of tgprojets.com designates 95.142.170.160 as permitted sender)
X-YMailISG: M6meyK0WLDuX3hLPI3o7xMRtx88APiNts2GbqOQG9.KrWsDE
 uEZQ4sPGwcbnst9LeifgkpkuIJesZyUtgxm.0O4CYkWGMGQq.3QCdbZ_MJ0L
 vvFCIaGqo5veU1lDPL72Y7yBVwzCHy7d7QfWP81khGjB3yWGzjlYdLZZYKH4
 ipd34vZdPYFVoIr63UORNOJePYyUTUQ._fU1f78ejeHQv.0wWxq2udI..dh9
 pKZ.hn0UC95djv7oA1trtf7oXMAr2bMzMcVWUGPgUhVXIe0p_Vv48lN1sPmQ
 RpLyhR0_uZFleu7w9kc9Oh5GuUR2eiP7Xe_q6oLURt5smdIIOpXs2BHHsNHl
 LEQnd05ZSmFcGQaefIea4.dIoa1wKnfR_DOKs_VGx2xJ5FwHdBPVb2y0h3vm
 DC7o0IdLD3xoeIi.C3J764gdkyuANdo5svXgoSlBhbw7CHzDZCLylXvHg8hL
 OuD3i45OuSYxh2ENfDzatiTC0dGoyNePtnqajolaN9p8E8fBX.65z62wiWZO
 osGmcPyKm3ynAz3gHR1WRC2d72t.spZcMvBReDQjqBvf6LT7YuXh2HWc1_jB
 27tFZJ_tt_.KdnvLBxSeUPCrQQXg1TVpExeNEocnuZF1dUaUaufYDH1dGMaB
 CeVMjHPRPicbUWNKpJTKDyjb_ti45ENs54Aee.ROIZMcu2FdGgIYPM9MzMSh
 2mXrfe5U9lvWX4EfBpv0dN8LolZbXfVft.vrA_b.WIJ82uZEq4UvW3HKMqrr
 qqk9ZUi3C2cl1_byrk5xGcLJ.McH7iFdsF74zlMXDDn1VTJCwgyiH3XKf6Z1
 _9olADG_Fg1BpFyglrNxrF_nhciLcw8VepkeMoVcWFIOCKufNiXBgoZpgnHD
 WB8yIAHainn8DAyeTXPpGNsWhNkvN3x4CPNuPaO4mIYZ9FGy20kXEmrfbQ.a
 Pqawdjk7VMuL_TAK9ZxDTVI9
X-Originating-IP: [95.142.170.160]
Authentication-Results: mta1006.mail.ird.yahoo.com  from=tgprojets.com; domainkeys=pass (ok);  from=tgprojets.com; dkim=pass (ok)
Received: from 127.0.0.1  (EHLO smtp.tgprojets.com) (95.142.170.160)
  by mta1006.mail.ird.yahoo.com with SMTP; Mon, 25 Jul 2011 06:32:16 +0000
Received: from www.tgprojets.fr (localhost.localdomain [127.0.0.1])
    by smtp.tgprojets.com (Postfix) with ESMTP id 9F39A45B7
    for <gilbertom2000@yahoo.fr>; Mon, 25 Jul 2011 08:32:15 +0200 (CEST)
X-DomainKeys: Sendmail DomainKeys Filter v1.0.0 smtp.tgprojets.com 9F39A45B7
DomainKey-Signature: a=rsa-sha1; s=mydk; d=tgprojets.com; c=simple; q=dns;
    b=aJGMJ2Jl1nCb2pLE9/TNcn93ZJdRe9XrovpkQvAgLNQEBNQeLw3Yn3W8UduH65yjI
    Fbhxqc5ke33Tix7QQXoThq38gvFNzt4OogxEL38xVkR66bReeyk0lfOKwPNBkIt3U3x
    rzOjQIN3ZfSlhOIonpUG8dSpChtpK1PAKr0g9w4=
X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.tgprojets.com 9F39A45B7
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tgprojets.com; s=dkim;
    t=1311575535; bh=E2ZOPemfMepced/S4rY2w+gHZi7C75uR9fxa6oBP5zE=;
    h=Message-ID:Date:Subject:From:Reply-To:To:MIME-Version:
     Content-Type:Content-Transfer-Encoding;
    b=hYXKeP+tsyfDNUrnaPrRj7IiohpqIJnwc6FnXc3DyHroQyDgnxzYFhzQ4Gx3H6k0u
     mD7f68quWGXIuGuycKR+iH8Bx+z6+nmjGpGxd3YZea8nQoqB3ZOP5KQKisGvilLGve
     yr/o/FowMI2zWup3l2yQZsUpyIyxPAEse9kvpVcs=
Message-ID: <1311575535.4e2d0def3ae52@www.tgprojets.fr>
Date: Mon, 25 Jul 2011 08:32:14 +0200
Subject: Test mail
From: contact<at>tgprojets.com
Reply-To: tgilbert<at>tgprojets.com
To: gilbertom2000<at>yahoo.fr
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Content-Length: 6

Voici la configuration de mon postfix:

Le fichier main.cf

myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no
append_at_myorigin = yes
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_bind_address=95.142.170.160
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = smtp.tgprojets.com
#myorigin = xvm-170-160.ghst.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = localhost
#localhost
relayhost =
#spool.mail.gandi.net 
#mynetworks = 95.142.170.160 92.243.14.138
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 95.142.170.160 92.243.14.138
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
#header_checks = pcre:/etc/postfix/header_checks
sender_canonical_maps = hash:/etc/postfix/canonical
milter_default_action = accept
milter_protocol = 6

smtpd_milters = inet:localhost:8891, inet:localhost:4445
non_smtpd_milters = inet:localhost:8891, inet:localhost:4445
#non_smtpd_milters = inet:localhost:8891
spf-policyd_time_limit = 3600s
smtpd_recipient_restrictions =
        permit_mynetworks,
        reject_unauth_destination,
        permit,
        permit_sasl_authenticated,
        check_policy_service unix:private/policy-spf,

Le fichier master.cf


smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       -       -       -       qmqpd
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
        -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
policy-spf  unix  -       n       n       -       -       spawn
     user=nobody argv=/usr/sbin/postfix-policyd-spf-perl

Est ce que vous auriez une idée, d'ou cela pourrait venir ?

modération : attention les adresses mail en clair !
C’est déjà une bonne raison pour recevoir des spams :]

Dernière modification par helly (Le 25/07/2011, à 11:17)


En persévérant on arrive à tout.

http://dev.sans-bouger.fr

Hors ligne

Haut de page ↑