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 
> username&password into mail-service.xml, but it didn't take effect.
>
> With username&password I can't send mail to host other than the smtp 
> host I used.
> whereas without username&password I can send mail to other mail 
> address in the smtp host.
> So, I think that's not the right place to put username&password as in 
> mail-service.xml:
> <---------------mail-service.xml---------------------->
>  <mbean code="org.jboss.mail.MailService"
>         name="jboss:service=Mail">
>    <attribute name="JNDIName">java:/Mail</attribute>
>    <attribute name="User">gene</attribute>
>    <attribute name="Password">genepassword</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

Reply via email to