List Info

Thread: Cannot use JavaMail? Blojsom emails not working....




Cannot use JavaMail? Blojsom emails not working....
user name
2007-01-08 02:53:06
Again, thanks David.

I have gone over my email settings over and over again. 
However, for the smtp-server, I had 127.0.0.1.  I changed it
to localhost but without success.

Still receiving 501 EHLO requires domain address.

??  Very strange ??

Aaron

----- Original Message ----
From: David Czarnecki <davidblojsom.com>
To: blojsom-users <blojsom-userslists.sourceforge.net>
Sent: Sunday, January 7, 2007 8:46:34 PM
Subject: Re: [Blojsom-users] Cannot use JavaMail? Blojsom
emails not working....

Make sure the following init-params are in your web.xml:

<http://wiki.blojsom.com/wiki/display/blojsom/S
end+Email+Plugin>

On 1/7/07 9:32 PM, "Aaron Paxson"
<aaronpaxsonyahoo.com> wrote:

> Thanks David.  I'm not really sure how to check for the
exact version of
> Blojsom?  I no longer have the tarball that I
originally extracted, and I
> don't see a README or VERSION in my directories?
> 
> I have made it through more troubleshooting, though,
and it happens before
> authentication....
> 
> In doing more research, it seems that javamail is
issuing HELO or EHLO without
> specifying a domain name.  Here is my packet capture
after a Blojsom email
> submission (snipped):
> 
>   0.607657    127.0.0.1 -> 127.0.0.1    SMTP
Response: 220 www1.thepaxson5.org
> ESMTP Sendmail 8.13.1/8.13.1; Sun, 7 Jan 2007 16:25:40
-0600
>   0.814993    127.0.0.1 -> 127.0.0.1    SMTP
Command: EHLO
>   0.815713    127.0.0.1 -> 127.0.0.1    SMTP
Response: 501 5.0.0 EHLO requires
> domain address
>   1.023240    127.0.0.1 -> 127.0.0.1    SMTP
Command: HELO
>   1.023842    127.0.0.1 -> 127.0.0.1    SMTP
Response: 501 5.0.0 HELO requires
> domain address
>   1.024082    127.0.0.1 -> 127.0.0.1    TCP 2343
> smtp [ACK] Seq=13 Ack=167
> Win=32768 Len=0 TSV=942511362
> 
> You can see, that sendmail is issuing back a 501:  EHLO
requires domain
> address.  In doing more research, javamail gets this
from
> InetAddress.getLocalHost().getHostName().   Apparently,
its not returning
> anything.  To test this, I created a simple java prog
to return
> InetAddress.getLocalHost().getHostName() in a
System.out.println() statement.
> I got back an exception:
> 
> Exception in thread "main"
java.net.UnknownHostException: www1.thepaxson5.org:
> www1.thepaxson5.org
>         at
java.net.InetAddress.getLocalHost(InetAddress.java:1308)
>         at LocalHostName.main(LocalHostName.java:5)
> 
> Which is strange, since www1.thepaxson5.org is my
hostname?  This is running
> on a RHEL4 system, whereas my original system was
FedoraCore 2.
> 
> Issuing 'hostname' returns the correct name, and my
local hosts file, is
> correct.  Not sure where to go from here?  I'm looking
at my old system now,
> to see if I see any discrepencies, but not sure if I'll
find any.....
> 
> Thanks!
> 
> Aaron
> 
> ----- Original Message ----
> From: David Czarnecki <davidblojsom.com>
> To: blojsom-users <blojsom-userslists.sourceforge.net>
> Sent: Sunday, January 7, 2007 7:08:41 PM
> Subject: Re: [Blojsom-users] Cannot use JavaMail?
Blojsom emails not
> working....
> 
> What version of blojsom? Did you try using an SMTP
username and password?
> 
> 
> On 1/7/07 5:14 PM, "Aaron Paxson"
<aaronpaxsonyahoo.com> wrote:
> 
>> This is very strange problem.  I¹ve moved my
blojsom install to a new server.
>> Now, email from Blojsom does not work.  I am using
Sendmail on the local
>> machine, and it works for all of my other mail
clients, and even from the
>> local machine.  I can use SMTP commands to send
emails out.  But, Blojsom
>> keeps complaining about sending email.
> 
> Keep in mind, I am still using the
>> Blojsom 2.x version, and have not upgraded to the
new version with DB
>> access.
> 
> --------
>> From my maillog:
> 
> Jan  5 18:02:22 www1 sendmail[13416]:
>> l0602KAT013416: localhost.localdomain [127.0.0.1]
did not issue
>> MAIL/EXPN/VRFY/ETRN during connection to MTA
> --------
> 
> The javamail must know
>> about it, as sendmail returns the SMTP commands:
> 
>> From running ¼ehlo¹ on my
>> localhost:
> 
> #telnet localhost 25
> Trying 127.0.0.1...
> Connected to
>> localhost.localdomain (127.0.0.1).
> Escape character is '^]'.
> 220
>> www1.thepaxson5.org ESMTP Sendmail 8.13.1/8.13.1;
Fri, 5 Jan 2007 18:04:51
>> -0600
> ehlo me
> 250-www1.thepaxson5.org Hello localhost.localdomain
[127.0.0.1],
>> pleased to meet 
>> you
> 250-ENHANCEDSTATUSCODES
> 250-PIPELINING
> 250-8BITMIME
> 250-SIZE
> 250-DSN
> 250-E
>> TRN
> 250-AUTH DIGEST-MD5 CRAM-MD5
> 250-DELIVERBY
> 250 HELP
> ----------
> 
> You can
>> see that sendmail returns ETRN as a valid command.
> 
> I do not get much data
>> from catalina.out
> 
> ----------
> Jan 05 19:02:19 DEBUG [http-8080-Processor18]
>> email.EmailUtils - Constructing e-mail message to
blog entry author:
>> ajthepaxson5.org
> Jan 05 19:02:19 INFO  [http-8080-Processor18]
>> email.EmailUtils - Sending e-mail message to:
ajthepaxson5.org
> Jan 05
>> 19:02:21 ERROR [http-8080-Processor18]
email.EmailUtils -
>> javax.mail.SendFailedException: Sending failed;
> -------
> 
> How should I
>> troubleshoot this?  Anyone know where I should
look?  I¹ve also changed my
>> mailhost in web.xml, and have even tried to use a
javamail JNDI session from
>> Tomcat, with no luck.

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection
around 
http://mail.yahoo.com 

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
Cannot use JavaMail? Blojsom emails not working....
user name
2007-01-08 03:01:27
Looks like you're using blojsom 2.28. You can grab this from
the feeds where
I've got generator strings in the XML or look at the JAR
files in
/WEB-INF/lib.

I think the bug you're seeing is this one:

<h
ttp://jira.blojsom.com/jira/browse/BLOJSOM-118>

It's fixed in 2.30.

On 1/7/07 9:53 PM, "Aaron Paxson"
<aaronpaxsonyahoo.com> wrote:

> Again, thanks David.
> 
> I have gone over my email settings over and over again.
 However, for the
> smtp-server, I had 127.0.0.1.  I changed it to
localhost but without success.
> 
> Still receiving 501 EHLO requires domain address.
> 
> ??  Very strange ??
> 
> Aaron
> 
> ----- Original Message ----
> From: David Czarnecki <davidblojsom.com>
> To: blojsom-users <blojsom-userslists.sourceforge.net>
> Sent: Sunday, January 7, 2007 8:46:34 PM
> Subject: Re: [Blojsom-users] Cannot use JavaMail?
Blojsom emails not
> working....
> 
> Make sure the following init-params are in your
web.xml:
> 
> <http://wiki.blojsom.com/wiki/display/blojsom/S
end+Email+Plugin>
> 
> On 1/7/07 9:32 PM, "Aaron Paxson"
<aaronpaxsonyahoo.com> wrote:
> 
>> Thanks David.  I'm not really sure how to check for
the exact version of
>> Blojsom?  I no longer have the tarball that I
originally extracted, and I
>> don't see a README or VERSION in my directories?
>> 
>> I have made it through more troubleshooting,
though, and it happens before
>> authentication....
>> 
>> In doing more research, it seems that javamail is
issuing HELO or EHLO
>> without
>> specifying a domain name.  Here is my packet
capture after a Blojsom email
>> submission (snipped):
>> 
>>   0.607657    127.0.0.1 -> 127.0.0.1    SMTP
Response: 220
>> www1.thepaxson5.org
>> ESMTP Sendmail 8.13.1/8.13.1; Sun, 7 Jan 2007
16:25:40 -0600
>>   0.814993    127.0.0.1 -> 127.0.0.1    SMTP
Command: EHLO
>>   0.815713    127.0.0.1 -> 127.0.0.1    SMTP
Response: 501 5.0.0 EHLO
>> requires
>> domain address
>>   1.023240    127.0.0.1 -> 127.0.0.1    SMTP
Command: HELO
>>   1.023842    127.0.0.1 -> 127.0.0.1    SMTP
Response: 501 5.0.0 HELO
>> requires
>> domain address
>>   1.024082    127.0.0.1 -> 127.0.0.1    TCP 2343
> smtp [ACK] Seq=13 Ack=167
>> Win=32768 Len=0 TSV=942511362
>> 
>> You can see, that sendmail is issuing back a 501: 
EHLO requires domain
>> address.  In doing more research, javamail gets
this from
>> InetAddress.getLocalHost().getHostName().  
Apparently, its not returning
>> anything.  To test this, I created a simple java
prog to return
>> InetAddress.getLocalHost().getHostName() in a
System.out.println() statement.
>> I got back an exception:
>> 
>> Exception in thread "main"
java.net.UnknownHostException:
>> www1.thepaxson5.org:
>> www1.thepaxson5.org
>>         at
java.net.InetAddress.getLocalHost(InetAddress.java:1308)
>>         at LocalHostName.main(LocalHostName.java:5)
>> 
>> Which is strange, since www1.thepaxson5.org is my
hostname?  This is running
>> on a RHEL4 system, whereas my original system was
FedoraCore 2.
>> 
>> Issuing 'hostname' returns the correct name, and my
local hosts file, is
>> correct.  Not sure where to go from here?  I'm
looking at my old system now,
>> to see if I see any discrepencies, but not sure if
I'll find any.....
>> 
>> Thanks!
>> 
>> Aaron
>> 
>> ----- Original Message ----
>> From: David Czarnecki <davidblojsom.com>
>> To: blojsom-users <blojsom-userslists.sourceforge.net>
>> Sent: Sunday, January 7, 2007 7:08:41 PM
>> Subject: Re: [Blojsom-users] Cannot use JavaMail?
Blojsom emails not
>> working....
>> 
>> What version of blojsom? Did you try using an SMTP
username and password?
>> 
>> 
>> On 1/7/07 5:14 PM, "Aaron Paxson"
<aaronpaxsonyahoo.com> wrote:
>> 
>>> This is very strange problem.  I¹ve moved my
blojsom install to a new
>>> server.
>>> Now, email from Blojsom does not work.  I am
using Sendmail on the local
>>> machine, and it works for all of my other mail
clients, and even from the
>>> local machine.  I can use SMTP commands to send
emails out.  But, Blojsom
>>> keeps complaining about sending email.
>> 
>> Keep in mind, I am still using the
>>> Blojsom 2.x version, and have not upgraded to
the new version with DB
>>> access.
>> 
>> --------
>>> From my maillog:
>> 
>> Jan  5 18:02:22 www1 sendmail[13416]:
>>> l0602KAT013416: localhost.localdomain
[127.0.0.1] did not issue
>>> MAIL/EXPN/VRFY/ETRN during connection to MTA
>> --------
>> 
>> The javamail must know
>>> about it, as sendmail returns the SMTP
commands:
>> 
>>> From running Œehlo¹ on my
>>> localhost:
>> 
>> #telnet localhost 25
>> Trying 127.0.0.1...
>> Connected to
>>> localhost.localdomain (127.0.0.1).
>> Escape character is '^]'.
>> 220
>>> www1.thepaxson5.org ESMTP Sendmail
8.13.1/8.13.1; Fri, 5 Jan 2007 18:04:51
>>> -0600
>> ehlo me
>> 250-www1.thepaxson5.org Hello localhost.localdomain
[127.0.0.1],
>>> pleased to meet
>>> you
>> 250-ENHANCEDSTATUSCODES
>> 250-PIPELINING
>> 250-8BITMIME
>> 250-SIZE
>> 250-DSN
>> 250-E
>>> TRN
>> 250-AUTH DIGEST-MD5 CRAM-MD5
>> 250-DELIVERBY
>> 250 HELP
>> ----------
>> 
>> You can
>>> see that sendmail returns ETRN as a valid
command.
>> 
>> I do not get much data
>>> from catalina.out
>> 
>> ----------
>> Jan 05 19:02:19 DEBUG [http-8080-Processor18]
>>> email.EmailUtils - Constructing e-mail message
to blog entry author:
>>> ajthepaxson5.org
>> Jan 05 19:02:19 INFO  [http-8080-Processor18]
>>> email.EmailUtils - Sending e-mail message to:
ajthepaxson5.org
>> Jan 05
>>> 19:02:21 ERROR [http-8080-Processor18]
email.EmailUtils -
>>> javax.mail.SendFailedException: Sending failed;
>> -------
>> 
>> How should I
>>> troubleshoot this?  Anyone know where I should
look?  I¹ve also changed my
>>> mailhost in web.xml, and have even tried to use
a javamail JNDI session from
>>> Tomcat, with no luck.

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net



------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )