aspose file tools*
The moose likes Servlets and the fly likes Why the email from my server was not received Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Why the email from my server was not received" Watch "Why the email from my server was not received" New topic
Author

Why the email from my server was not received

gen pichong
Greenhorn

Joined: Apr 28, 2005
Posts: 15
I send emails out from the server based on the user input. The emails can be sent to email address with yahoo.com, hotmail.com, and many other domains. But not to email addresses with .comcast.net, .netzero.com domains. It is not even in the spam/junk email folder.

I try to send web based emails to my comcast.net account by registering on other websites. Such as "http://www.javaranch.com". It works. My comcast.net account can even receive spam from spamming software.

Anyone have idea of Why and How to solve? Thanks


<a href="http://www.graball.com" target="_blank" rel="nofollow">http://www.graball.com</a> -- A better search interface
Sharad Agarwal
Ranch Hand

Joined: Sep 11, 2002
Posts: 167
I did not understand the question. What kind of API are you using to send the mail? Did you try sending a mail through the same SMTP server using plain old telnet to port 25?

Regards,
Sharad
Demented Deliberations of a Dilettante


Alco-Haul: We move spirits.
Demented Deliberations of a Dilettante
gen pichong
Greenhorn

Joined: Apr 28, 2005
Posts: 15
It is the Java Mail API. I use the local SMTP server at port 25. It is sendmail running on RedHat Linux.

To be more specific. Using the exact same code, the email can be sent to genpichong@hotmail.com, genpichong@yahoo.com. But not genpichong@comcast.net.

The email listed above is just examples, not my real emails
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
You might take a look at the headers on email that does get through to your comcast account. Possibly your code is leaving something out.
Bill
gen pichong
Greenhorn

Joined: Apr 28, 2005
Posts: 15
Thanks. I believe the email header is the problem now. I have checked the spammer black list. My ip is not there. I have check the bounced email. It says that a domain must be set.

Now, I am researching on how to set email headers.
[ May 26, 2005: Message edited by: gen pichong ]
gen pichong
Greenhorn

Joined: Apr 28, 2005
Posts: 15
Now I am sure that the problem is that the domain information is not provided in the email header. So I need to configure the sendmail to make it contain the domain name.

But I am a newbie to SendMail. Can anyone good a sendmail provide some help?

current email header:
=======================
From: abc@DOMAIN_NAME.com
To: aabbcc@hotmail.com
Subject: Test Email
Date: Thu, 26 May 2005 17:57:05 -0400
Received: from www.DOMAIN_NAME.com ([64.234.212.265]) by MC6-F18.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 26 May 2005 14:57:03 -0700
Received: from www.DOMAIN_NAME.com (localhost.localdomain [127.0.0.1])by www.DOMAIN_NAME.com (8.12.8/8.12.8) with ESMTP id j4QLv5Gr003323for <aabbcc@hotmail.com>; Thu, 26 May 2005 17:57:05 -0400
Received: (from nobody@localhost)by www.DOMAIN_NAME.com (8.12.8/8.12.8/Submit) id j4QLv5Gb003321;Thu, 26 May 2005 17:57:05 -0400
X-Message-Info: JGTYoYF78jGk2nU+0bYgKfUqOY8jR6Jf2j9UFL/SkBQ=
Return-Path: nobody@www.DOMAIN_NAME.com
X-OriginalArrivalTime: 26 May 2005 21:57:04.0186 (UTC) FILETIME=[DA1E19A0:01C5623D]
=======================

I want to Change to:
=======================
From: abc@DOMAIN_NAME.com
To: aabbcc@hotmail.com
Subject: Test Email
Date: Thu, 26 May 2005 17:57:05 -0400
Received: from www.DOMAIN_NAME.com ([64.234.212.265]) by MC6-F18.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 26 May 2005 14:57:03 -0700
Received: from www.DOMAIN_NAME.com (www.DOMAIN_NAME.com [64.234.212.265])by www.DOMAIN_NAME.com (8.12.8/8.12.8) with ESMTP id j4QLv5Gr003323for <aabbcc@hotmail.com>; Thu, 26 May 2005 17:57:05 -0400
Received: (from nobody@www.DOMAIN_NAME.com)by www.DOMAIN_NAME.com (8.12.8/8.12.8/Submit) id j4QLv5Gb003321;Thu, 26 May 2005 17:57:05 -0400
X-Message-Info: JGTYoYF78jGk2nU+0bYgKfUqOY8jR6Jf2j9UFL/SkBQ=
Return-Path: nobody@www.DOMAIN_NAME.com
X-OriginalArrivalTime: 26 May 2005 21:57:04.0186 (UTC) FILETIME=[DA1E19A0:01C5623D]
=======================

It is runing on a Redhat linux 9 server.

How I can configure sendmail to realize it. I am a newbie to sendmail. Please be as detail as possible.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why the email from my server was not received