2012-05-18 3 views
5

私はmailenable mailserverがインストールされている小さなvpsを持っています。 私はすでにPTR、逆DNSとサーバーの設定をチェックしましたが、すべて正常です。スパムメールではなく、thunderbirdクライアントからのC#電子メールは通常どおり(迷惑メールではなく)配信されます

私はサンダーバードからGmailアドレスにメールを送信する場合、すべてがOKで、メールがスパムとしてマークされていない、これはヘッダである:

Delivered-To: [email protected] 
Received: by 10.60.38.104 with SMTP id f8csp54812oek; 
Fri, 18 May 2012 13:04:27 -0700 (PDT) 
Received: by 10.216.138.130 with SMTP id a2mr7849178wej.35.1337371466927; 
Fri, 18 May 2012 13:04:26 -0700 (PDT) 
Return-Path: <[email protected]> 
Received: from mail.charterino.com (mail.charterino.com. [95.110.146.72]) 
by mx.google.com with ESMTP id m60si12747577wee.64.2012.05.18.13.04.26; 
Fri, 18 May 2012 13:04:26 -0700 (PDT) 
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) client-ip=95.110.146.72; 
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) [email protected] 
Received: from [192.168.1.132] ([2.227.153.144]) by charterino.com with MailEnable ESMTP; Fri, 18 May 2012 22:01:40 +0200 
Message-ID: <[email protected]> 
Date: Fri, 18 May 2012 22:04:26 +0200 
From: "[email protected]" <[email protected]> 
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 
MIME-Version: 1.0 
To: [email protected] 
Subject: Prova 
Content-Type: text/plain; charset=ISO-8859-15; format=flowed 
Content-Transfer-Encoding: 7bit 

私はAC#アプリケーション私のメッセージから電子メールを送信すると

Delivered-To: [email protected] 
Received: by 10.229.39.205 with SMTP id h13csp119310qce; 
Fri, 18 May 2012 12:09:26 -0700 (PDT) 
Received: by 10.180.82.136 with SMTP id i8mr4157077wiy.19.1337368166529; 
Fri, 18 May 2012 12:09:26 -0700 (PDT) 
Return-Path: <[email protected]> 
Received: from mail.charterino.com (mail.charterino.com. [95.110.146.72]) 
by mx.google.com with ESMTP id h11si2000858wiw.14.2012.05.18.12.09.26; 
Fri, 18 May 2012 12:09:26 -0700 (PDT) 
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) client-ip=95.110.146.72; 
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) [email protected] 
Message-Id: <[email protected]> 
Received: from win18864 ([::1]) by charterino.com with MailEnable ESMTP; Fri, 18 May 2012 21:06:44 +0200 
MIME-Version: 1.0 
From: [email protected] 
To: [email protected] 

これはドメイン@ charterino.comを含んでいないmessageidが原因で発生している可能性がありますか? 私のアプリからのメールヘッダーのmessage-idもオーバーライドしようとしましたが、サーバーはそれを上書きします。

message.Headers.Add("Message-Id","<values>@charterino.com"); 

私はなぜThunderbirdはメッセージIDを上書きすることができますし、私はできません....それが問題であるかどうかを知りませんが?

私はSystem.Net.Mailを使用しています。

は、「日付」と、これは新しいヘッダである「件名」フィールドを追加した後、メールが迷惑メールにマークされ、

message.Headers.Add(String.format("<date format>",DateTime.Now.ToString())); 

Delivered-To: [email protected] 
Received: by 10.229.39.205 with SMTP id h13csp155984qce; 
     Sat, 19 May 2012 06:20:49 -0700 (PDT) 
Received: by 10.216.138.130 with SMTP id a2mr9265313wej.35.1337433648907; 
     Sat, 19 May 2012 06:20:48 -0700 (PDT) 
Return-Path: <[email protected]> 
Received: from mail.charterino.com (mail.charterino.com. [95.110.146.72]) 
     by mx.google.com with ESMTP id p8si14856169weh.0.2012.05.19.06.20.48; 
     Sat, 19 May 2012 06:20:48 -0700 (PDT) 
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) client-ip=95.110.146.72; 
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [email protected] designates 95.110.146.72 as permitted sender) [email protected] 
Message-Id: <[email protected]> 
Received: from win18864 ([::1]) by charterino.com with MailEnable ESMTP; Sat, 19 May 2012 15:18:08 +0200 
Subject: Invio password smarrita Charterino.com 
MIME-Version: 1.0 
From: [email protected] 
To: [email protected] 
Date: 19 May 2012 15:18:08 +0200 
Content-Type: text/html; charset=utf-8 
Content-Transfer-Encoding: base64 

何も変更を追加しました。

+0

Thunderbirdは何SMTPサーバーを使用していますか?あなたのアプリケーションはどのSMTPサーバーを使用していますか? – robert

+0

@robert、同じように見えます: 'mail.charterino.com(mail.charterino.com。[95.110.146.72])' –

+0

あなたは同じ内容を送っていますか?他のすべてが等しい場合、コンテンツはスパムとしてマークされる原因になります。 – Evgeni

答えて

-1

ヘッダーに「Date:」フィールドがありません。

+0

これは新しいヘッダーです。私は手で日付を付け加えました。 – user1404235

+0

何も変わっていません。 – user1404235

+0

「件名:」も追加しました。 –

0

試してみてください。

message.IsBodyHtml = true; 
message.Body = htmlView; 
関連する問題