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
> 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>
> <--------------------------------------------------------------->
> Maybe I should put my u&p 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

Reply via email to