2011-06-18 90 views
0

我剛剛設置了我的web服務器,rails應用程序,後綴和dovecot。當我測試郵件程序時它工作正常,但Gmail會自動將我發送的郵件放入其垃圾郵件文件夾中。我的郵件正被髮送到Google的垃圾郵件文件夾

我檢查了Spamhaus的列表我的IP地址並沒有什麼,我檢查了郵件日誌,並沒有什麼令人驚訝的有...

誰能爲我提供些什麼我應該尋找指導?

謝謝!

更新

這裏是郵件標題:

Delivered-To: [email protected] 
Received: by 10.52.113.230 with SMTP id jb6cs31694vdb; 
     Sat, 18 Jun 2011 05:42:32 -0700 (PDT) 
Received: by 10.227.198.133 with SMTP id eo5mr3183668wbb.38.1308400951575; 
     Sat, 18 Jun 2011 05:42:31 -0700 (PDT) 
Return-Path: 
Received: from mail.example.com (mail.example.com [123.45.678.910]) 
     by mx.google.com with ESMTP id fs8si5078709wbb.140.2011.06.18.05.42.29; 
     Sat, 18 Jun 2011 05:42:30 -0700 (PDT) 
Received-SPF: pass (google.com: best guess record for domain of [email protected] designates 123.45.678.910 as permitted sender) client-ip=123.45.678.910; 
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of [email protected] designates 123.45.678.910 as permitted sender) [email protected] 
Received: from example.com (localhost.localdomain [127.0.0.1]) 
    (Authenticated sender: [email protected]) 
    by mail.example.com (Postfix) with ESMTPA id CCB602AFCF 
    for ; Sat, 18 Jun 2011 14:42:29 +0200 (CEST)
+0

什麼是你的電子郵件的內容?正在發送什麼標題? – hammar

+0

檢查更新的問題,我包括標題 –

回答

0

您可能需要使用自定義域。你做?理論上任何人都可以設置自定義郵件服務器併發送垃圾郵件,可能這就是它發生的原因。

此外,一定不要把任何太奇怪的東西放入標題。

+0

我不知道郵件服務器如何得到這麼多。順便說一句,谷歌,雅虎,AOL,是'某人'。 – sitilge

2

我會檢查的第一件事是,在電子郵件的:from value相同的:user_nameconfig.action_mailer.smtp_settings

下面是一個例子,注意

# config/development.rb 
config.action_mailer.smtp_settings = { 
    :address    => "smtp.gmail.com", 
    :port     => 587, 
    :domain    => 'gmail.com', 
    :user_name   => '[email protected]', 
    :password    => SECRET[:email_password], 
    :authentication  => 'plain' 
    # :enable_starttls_auto => true 
    } 

# app/mailers/user_mailer.rb 
class UserMailer < ActionMailer::Base 

    default :from => "[email protected]" 

    def welcome_email(user) 
    @user = user 
    mail(:to => user.profile.email, 
     :subject => "Registration Successful") 
    end 
end 
+0

然後看看這裏(和鏈接)http://stackoverflow.com/questions/4704137/how-to-avoid-my-sent-email-not-be-classified-as-spam – ecoologic

+0

感謝您的建議,我試過了,但它仍然會發送垃圾郵件.... –

0

我看到你的電子郵件didnt有DKIM這也可能是將電子郵件放入垃圾郵件或者由於ip信譽或域名聲譽的原因之一。

您可以檢查IP和域名reputaion黑名單here

相關問題