Re: [JBoss-user] Re: Questin with Mail Service-not solved yet and to dim

2002-10-08 Thread Dmitri Colebatch

it sounds like you need to get a better understanding of the way smtp hosts
behave.  do you have a mail admin that you can talk to?  as I think a couple
of people have already hinted at, the smtp host will not let mail be sent to
just anyone, otherwise spam would be rife.  So, what they (generally) do, is
(1) allow mail from people in the domain be sent to anyone, this is how mail
normally works, but (2) dont let people from outside the domain send mail to
anyone, but we need to allow incoming (mail to the same host/domain) mail -
otherwise we wouldn't receive any mail.

I'd suggest doing some more reading on smtp unless the above is all very
obvious to you...

hth
dim


- Original Message -
From: Gene Ge [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 08, 2002 7:28 PM
Subject: [JBoss-user] Re: Questin with Mail Service-not solved yet and to
dim


 Thanks very much! Dim

 I had found the archives I wanted.

 But the problem about mail service is still not solved. I had put
 usernamepassword into mail-service.xml, but it didn't take effect.

 With usernamepassword I can't send mail to host other than the smtp host
I
 used.
 whereas without usernamepassword I can send mail to other mail address in
 the smtp host.
 So, I think that's not the right place to put usernamepassword as in
 mail-service.xml:
 ---mail-service.xml--
   mbean code=org.jboss.mail.MailService
  name=jboss:service=Mail
 attribute name=JNDINamejava:/Mail/attribute
 attribute name=Usergene/attribute
 attribute name=Passwordgenepassword/attribute
 attribute name=Configuration
!-- Test --
configuration
   !-- Change to your mail server prototocol --
   property name=mail.store.protocol value=pop3/
   property name=mail.transport.protocol value=smtp/

   !-- Change to the user who will receive mail  --
   property name=mail.user value=nobody/

   !-- Change to the mail server  --
   property name=mail.pop3.host value=pop.163.com/

   !-- Change to the SMTP gateway server --
   property name=mail.smtp.host value=smtp.163.com/

   !-- Change to the address mail will be from  --
   property name=mail.from value=[EMAIL PROTECTED]/

   !-- Enable debugging output from the javamail classes --
   property name=mail.debug value=true/
/configuration
 /attribute
   /mbean

 /server
 ---
 Maybe I should put my up in configuration tag as a property, but I
don't
 how to
 any can help?  thanks and thanks

 _
 Chat with friends online, try MSN Messenger: http://messenger.msn.com



 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: Questin with Mail Service-not solved yet and to dim

2002-10-08 Thread Stephen Coy

Hi again,

Please let me reiterate:

A typical smtp server will only allow you to use it to deliver mail to 
recipients within its domain, when the sender is sending from outside 
it's domain, as defined by the ip address of the sender (which you 
appear to be doing). Therefore, as you said, you can only use it to 
deliver mail to [EMAIL PROTECTED] In order to get smtp.163.com to 
deliver mail to other addresses,  you must normally be directly 
connected to the 163.com network (thru a dial-up for example).

You need to find an smtp server that is on the same network as your 
jboss server and use that as a mail transfer agent.

Regards,

Steve Coy

On Tuesday, October 8, 2002, at 07:28  PM, Gene Ge wrote:

 Thanks very much! Dim

 I had found the archives I wanted.

 But the problem about mail service is still not solved. I had put 
 usernamepassword into mail-service.xml, but it didn't take effect.

 With usernamepassword I can't send mail to host other than the smtp 
 host I used.
 whereas without usernamepassword I can send mail to other mail 
 address in the smtp host.
 So, I think that's not the right place to put usernamepassword as in 
 mail-service.xml:
 ---mail-service.xml--
  mbean code=org.jboss.mail.MailService
 name=jboss:service=Mail
attribute name=JNDINamejava:/Mail/attribute
attribute name=Usergene/attribute
attribute name=Passwordgenepassword/attribute
attribute name=Configuration
   !-- Test --
   configuration
  !-- Change to your mail server prototocol --
  property name=mail.store.protocol value=pop3/
  property name=mail.transport.protocol value=smtp/

  !-- Change to the user who will receive mail  --
  property name=mail.user value=nobody/

  !-- Change to the mail server  --
  property name=mail.pop3.host value=pop.163.com/

  !-- Change to the SMTP gateway server --
  property name=mail.smtp.host value=smtp.163.com/

  !-- Change to the address mail will be from  --
  property name=mail.from value=[EMAIL PROTECTED]/

  !-- Enable debugging output from the javamail classes --
  property name=mail.debug value=true/
   /configuration
/attribute
  /mbean

 /server



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user