Hello,
I cud solve the previous problem by setting the gateway tag.I was a
prob with recipient address resolution only.Continuing with the work
I
am facing another problem. I want that the James should send mails
two two
gateways. When one gateway is disconnected then it should send mails
to
other gateways. This feature of James is already mentioned in the
James
docs. I have done exactly the the same thing by adding the tags for
specifying the sequence of gateways it should try to send to as
follows:
<!-- Attempt remote delivery using the specified repository for the
spool,
-->
<!-- using delay time to retry delivery and the maximum
number of
retries -->
<mailet match="All" class="RemoteDelivery">
<outgoing> file://var/mail/outgoing/ </outgoing>
<!-- alternative database repository example below -->
<!--
<outgoing> db://maildb/spool/outgoing </outgoing>
-->
<!-- Number of milliseconds between delivery attempts -->
<delayTime> 21600000 </delayTime>
<!-- Number of failed attempts before returning to the
sender -->
<maxRetries> 5 </maxRetries>
<!-- The number of threads that should be trying to
deliver
outgoing messages -->
<deliveryThreads> 5 </deliveryThreads>
<!-- A single mail server to deliver all outgoing
messages. -->
<!-- This is useful if this server is a backup or failover
machine, -->
<!-- or if you want all messages to be routed through a
particular mail server, -->
<!-- regardless of the email addresses specified in the
message
-->
<!-- -->
<!-- The gateway element specifies the gateway SMTP server
name.
-->
<!-- If your gateway mail server is listening on a port
other
than 25, -->
<!-- you can set James to connect to it on that port using
the
gatewayPort -->
<!-- element. -->
<gateway>10.0.0.50:25</gateway>
<gateway>192.168.1.1:25</gateway>
<debug>true</debug>
I tried to send mails to the internet using the above configuration
but the
mailet is saying it could not connect as below:
3/11/03 16:30:19 INFO James.Mailet: RemoteDelivery: Remotely
delivering
mail Mail1068721217185-1
13/11/03 16:30:19 INFO James.Mailet: RemoteDelivery: Sending mail to
[EMAIL PROTECTED] via 192.168.1.1:25,10.0.0.50:25
13/11/03 16:30:19 INFO James.Mailet: RemoteDelivery: Remote delivery
thread
(0) will process mail Mail1068721217185-1
13/11/03 16:30:19 INFO James.Mailet: RemoteDelivery: Attempting to
deliver
Mail1068721217185-1
13/11/03 16:30:19 INFO James.Mailet: RemoteDelivery: Attempting
delivery of
Mail1068721217185-1 to host 192.168.1.1:25,10.0.0.50:25 to addresses
[EMAIL PROTECTED]
13/11/03 16:30:20 INFO James.Mailet: RemoteDelivery: Temporary
exception
delivering mail (Mail1068721217185-1: javax.mail.MessagingException:
Could
not connect to SMTP host: 192.168.1.1, port: 25;
nested exception is:
java.net.ConnectException: Connection refused: connect
at com.sun.mail.smtp.SMTPTransport.openServer
(SMTPTransport.java:911)
at com.sun.mail.smtp.SMTPTransport.protocolConnect
(SMTPTransport.java:158)
at javax.mail.Service.connect(Service.java:233)
at javax.mail.Service.connect(Service.java:134)
at javax.mail.Service.connect(Service.java:86)
at com.sun.mail.smtp.SMTPTransport.connect
(SMTPTransport.java:95)
at
org.apache.james.transport.mailets.RemoteDelivery.deliver
(RemoteDelivery.jav
a:228)
at
org.apache.james.transport.mailets.RemoteDelivery.run
(RemoteDelivery.java:59
0)
at java.lang.Thread.run(Thread.java:536)
13/11/03 16:30:20 INFO James.Mailet: RemoteDelivery: Storing message
Mail1068721217185-1 into outgoing after 0 retries
The James is not able to go to the other gateway it is only
attempting the
deliveries to the first gateway defined.
Also I have checked by giving it only single gateway 192.168.1.1:25
It is not able to send to it. I think may be the gateway is not set
properly
to send my mails from the James.
Could you please guide me in locating where the problem is. I want to
know
Why is it not checking the second gateway.
Preeti
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]