what i forgot to mention was that, i managed to disable the firewall in my
local machine. With that, I could telnet to smtp.gmail.com 465 and
smtp.mail.yahoo.com 25 without any problem. The only thing i couldn't do was
that i was not able to send out the mail as the two files were stucked in
the mail/outgoing folder as described below in below. Could you advise me
what configuration i have set wrong? 



Lec wrote:
> 
> Hi Stefano,
> 
> sorry for the late reply. my intention is to troubleshoot the application
> I am developing.  I would like to find out if the application is sending
> the mail as intended. Having the configuration like this still producing
> the two files ( FilesStreamStore and FileObjectStore ) in
> apps\james\var\mail\outgoing
> 
> I tried your suggestion by using gateway. Here is the configuration i
> have. Could you kindly advise what i did wrong? 
> 
>  
>       <servernames autodetect="true" autodetectIP="true">
>          <servername>localhost</servername>
>          <servername>192.168.1.3</servername>
>       </servernames>
> 
>        // i comment this portion
>        <!--mailet match="RemoteAddrNotInNetwork=127.0.0.1,192.168.1.3"
> class="ToProcessor">
>             <processor> relay-denied </processor>
>             <notice>550 - Requested action not taken: relaying
> denied</notice>
>         </mailet-->
> 
>    <dnsserver>
>       <servers>
>          <!--Enter ip address of your DNS server, one IP address per
> server -->
>          <!-- element. -->
>           <server>127.0.0.1</server>
>           <server>192.168.1.3</server>
>           <!--server>10.68.88.138</server-->
>       </servers>
>       <!-- Change autodiscover to false if you would like to turn off
> autodiscovery -->
>       <!-- and set the DNS servers manually in the <servers> section -->
>       <autodiscover>true</autodiscover>
>       <authoritative>false</authoritative>
>    </dnsserver>
> 
>    // under smtpserver block
>    <authRequired>true</authRequired>
>    <authorizedAddresses>127.0.0.0/8, 192.168.1.3,
> 127.0.0.1</authorizedAddresses>
> 
> 
>    <gateway>smtp.mail.yahoo.com</gateway>
>    <gatewayPort>25</gatewayPort>
>    <!-- If the gateway requires smtp authentication the following
> directives -->
>    <!-- (gatewayusername/gatewayPassword) can be used. -->
>    <gatewayusername>[my email]</gatewayusername>
>    <gatewayPassword>[my email password]</gatewayPassword>
> 
> 
>    // this is the mailet log
>    
> 16/10/09 13:57:10 INFO  James.Mailet: RemoteDelivery: maxRetries is larger
> than total number of attempts specified. Increasing last delayTime with 19
> attempts 
> 16/10/09 13:57:10 INFO  James.Mailet: RemoteDelivery: Delay of 21600000
> msecs is now attempted: 20 times
> 16/10/09 13:57:10 INFO  James.Mailet: RemoteDelivery: Adding SMTP gateway:
> smtp.mail.yahoo.com:25
> 16/10/09 13:57:58 INFO  James.Mailet: RemoteDelivery: Remotely delivering
> mail Mail1255672677692-0
> 16/10/09 13:57:58 INFO  James.Mailet: RemoteDelivery: Sending mail to
> [[email protected]] via [smtp.mail.yahoo.com:25]
> 16/10/09 13:57:58 INFO  James.Mailet: RemoteDelivery: Remote delivery
> thread (0) will process mail Mail1255672677692-0
> 16/10/09 13:57:58 INFO  James.Mailet: RemoteDelivery: Attempting to
> deliver Mail1255672677692-0
> 16/10/09 13:57:58 INFO  James.Mailet: RemoteDelivery: Attempting delivery
> of Mail1255672677692-0 to host smtp.mail.yahoo.com at 69.147.95.94 for
> addresses [[email protected]]
> 16/10/09 13:58:19 INFO  James.Mailet: RemoteDelivery: Exception reading
> response
> 16/10/09 13:58:19 INFO  James.Mailet: RemoteDelivery: Temporary exception
> delivering mail (Mail1255672677692-0: javax.mail.MessagingException: No
> mail server(s) available at this time.
>       at
> org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:762)
>       at
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:1122)
>       at java.lang.Thread.run(Thread.java:619)
> 
> 16/10/09 13:58:19 INFO  James.Mailet: RemoteDelivery: Storing message
> Mail1255672677692-0 into outgoing after 0 retries
> 16/10/09 14:03:19 INFO  James.Mailet: RemoteDelivery: Remote delivery
> thread (0) will process mail Mail1255672677692-0
> 16/10/09 14:03:19 INFO  James.Mailet: RemoteDelivery: Attempting to
> deliver Mail1255672677692-0
> 16/10/09 14:03:19 INFO  James.Mailet: RemoteDelivery: Attempting delivery
> of Mail1255672677692-0 to host smtp.mail.yahoo.com at 69.147.95.94 for
> addresses [[email protected]]
> 16/10/09 14:03:40 INFO  James.Mailet: RemoteDelivery: Exception reading
> response
> 16/10/09 14:03:40 INFO  James.Mailet: RemoteDelivery: Temporary exception
> delivering mail (Mail1255672677692-0: javax.mail.MessagingException: No
> mail server(s) available at this time.
>       at
> org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:762)
>       at
> org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:1122)
>       at java.lang.Thread.run(Thread.java:619)
> 
> 16/10/09 14:03:40 INFO  James.Mailet: RemoteDelivery: Storing message
> Mail1255672677692-0 into outgoing after 1 retries
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/the-mail-is-stucked-in-the-mail-outgoing-folder%2C-not-able-to-send-out-the-mail-tp25816904p25920337.html
Sent from the James - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to