Hi,
Documentation is not up-to-date.
The current source shows that the content of the gateway tag will be tokenized (with "," as separator).

So if you want to send with fallback to alternate relays, use <gateway>relay1,relay2,relay3</gateway>

I just realize that username/password is shared for all relays.

Maybe we should discuss this (anyone to confirm this?).

A possible configuraiton would be <gateway>user1:pwd1@relay1,relay2,user3:pwd3@relay3</gateway> user:pwd being optional.

Tks,
- Eric


On 19/04/2011 10:17, DUSSIN Frédéric wrote:
Hello

How about to configure several relay servers in case of the first one is 
unreachable ?
(I have tried to do it but it seems to me that only the first one is used and 
others are simply ignored.)

Regards,
Frédéric.


-----Message d'origine-----
De : Eric Charles [mailto:e...@apache.org]
Envoyé : mardi 19 avril 2011 08:59
À : James Users List
Objet : Re: How to set relay server

You can find it on
http://james.apache.org/server/3/dev-provided-mailets.html (under
RemoteDelivery section).

It's a bit lost there, so we will update documentation to better link to
this sections. tks for pointing.

Also, the delivery (to local mailbox and to remote smtp) is now
implemented as a mailet. We may reconsider this in later James releases
to make the delivery a core service, and no more a mailet.

Tks,

Eric


On 19/04/2011 07:35, Daniel Tan wrote:
Thanks for the quick response. Will try it out later. Is this something found 
in any faq as i am new to james and hope to learn more from websites before 
coming to the list

Sent from my iPhone

On Apr 19, 2011, at 1:17 PM, Eric Charles<e...@apache.org>   wrote:

Hi,

Uncomment the gateway block and set there your ISP relay hostname (and 
username/pwd if needed) in mailets conf file.

Tks,
- Eric


          <mailet match="All" class="RemoteDelivery">
             <outgoingQueue>   outgoing</outgoingQueue>

             <!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 -->
             <!-- 5 day retry period, with 4 attempts in the first
                  hour, two more within the first 6 hours, and then
                  every 6 hours for the rest of the period. -->
             <delayTime>    5 minutes</delayTime>
             <delayTime>   10 minutes</delayTime>
             <delayTime>   45 minutes</delayTime>
             <delayTime>    2 hours</delayTime>
             <delayTime>    3 hours</delayTime>
             <delayTime>    6 hours</delayTime>
             <maxRetries>   25</maxRetries>

             <deliveryThreads>   10</deliveryThreads>

             <sendpartial>true</sendpartial>

             <bounceProcessor>bounces</bounceProcessor>

             <!--
             <gateway>   otherserver.mydomain.com</gateway>
             <gatewayPort>25</gatewayPort>
             -->
             <!-- (gatewayUsername/gatewayPassword) can be used. -->
             <!--
             <gatewayUsername>login</gatewayUsername>
             <gatewayPassword>pass</gatewayPassword>
             -->

             <!--
             <mail.smtp.localhost>myMailServer</mail.smtp.localhost>
             -->
          </mailet>


On 19/04/2011 06:30, Daniel Tan wrote:
Hi,
I tried searching around the faq and cant quite get it where to set the relay 
server. I can receive email from internet on my desktop. I am using dynamic dns 
to resolve the hostname. But when i try to send email out, my server is not 
recognize as a valid server and i shld sent it via authorize relay. How do i do 
tat? I have put in my isp dns servers in dnsservice.xml

Regards,
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to