I've setup Apache James Server v2.3.2 and configured it as described in HOW TO section.
It works OK, sends mails as expected but on my Gmail account only and filtered as spam. Have no idea why other my emails accounts reject it i could find them in inbox.
I've tried to find a solution in mail list archive but with no result.
Did somebody face this problem? Did I miss some required SMTP headers or something?
Typical raw message (java mail session debug mode) looks like this (some_email@somehost.some_domain):
DEBUG: setDebug: JavaMail version 1.4.3
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG SMTP: trying to connect to host "localhost", port 25, isSSL false
220 alex SMTP Server (JAMES SMTP Server 2.3.2) ready Mon, 21 Feb 2011 23:15:02 +0200 (EET)
DEBUG SMTP: connected to host "localhost", port: 25
EHLO alex
250-alex Hello alex (localhost [127.0.0.1])
250-PIPELINING
250 ENHANCEDSTATUSCODES
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: use8bit false
MAIL FROM:<alex@localhost>
250 2.1.0 Sender <alex@localhost> OK
RCPT TO:<some_email@somehost.some_domain>
250 2.1.5 Recipient <some_email@somehost.some_domain> OK
DEBUG SMTP: Verified Addresses
DEBUG SMTP: some_email@somehost.some_domain
DATA
354 Ok Send data ending with <CRLF>.<CRLF>
From: alex@localhost
To: some_email@somehost.some_domain
Message-ID: <7704521.0.1298322902328.JavaMail.Administrator@alex>
Subject: re[2]: hello
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
body is here
.
250 2.6.0 Message received
QUIT
221 2.0.0 alex Service closing transmission channel