You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Daniel Tan <pu...@hotmail.com> on 2011/04/19 06:30:22 UTC

How to set relay server

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-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: How to set relay server

Posted by Stefano Bagnara <ap...@bago.org>.
2011/4/21 Daniel Tan <pu...@hotmail.com>:
>
> anyway i have used the M3 snapshot and able to send email via james. problem is the sender email is my gmail address instead of my dynamic dns email address.
> hmmm...

I can't understand this sentence. James doesn't change the sender. It
relays the mail you tell it to relay.

> can i ask a question not related to James? how do i use my mail server (currently using dynamic dns) on my local machine to be recognize as a mail server authorized to send email to gmail/yahoo/hotmail etc?

Most servers will reject any mail coming from a dynamic dns. It's not
about James or any configuration you may use, it's about dynamic IP
are mainly source of spam / malware / spambot, etc, so they simply
drop their traffic (or apply to those IP a stronger filter).

Stefano

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


RE: How to set relay server

Posted by Daniel Tan <pu...@hotmail.com>.
anyway i have used the M3 snapshot and able to send email via james. problem is the sender email is my gmail address instead of my dynamic dns email address.
hmmm...can i ask a question not related to James? how do i use my mail server (currently using dynamic dns) on my local machine to be recognize as a mail server authorized to send email to gmail/yahoo/hotmail etc?

From: pufferfish@hotmail.com
To: server-user@james.apache.org
Subject: RE: How to set relay server
Date: Thu, 21 Apr 2011 11:57:59 +0800








hi eric,
what happened to remote manager on nightly built M3 snapshot? i tried to activate it via run.bat from M2 library but james cannot startup. has the remote management changed for M3 to jmx only?


> Date: Tue, 19 Apr 2011 13:50:04 +0200
> From: eric@apache.org
> To: server-user@james.apache.org
> Subject: Re: How to set relay server
> 
> You're falling into https://issues.apache.org/jira/browse/JAMES-1175 
> that will be fixed in 3.0-M3.
> 
> (see also http://markmail.org/message/g6p62h6a4twsnsk3)
> 
> Can you try with a snapshot from 
> http://people.apache.org/builds/jamesll/nightly/ ?
> 
> If this still does not work, can you post the shown messages/exceptions 
> in log file (james-server.log, mailetcontainer.log,...).
> 
> Tks,
> 
> Eric
> 
> 
> On 19/04/2011 13:31, Daniel Tan wrote:
> >
> > hmm...i tried to use gmail as my relay but starttls is required.
> > Must issue a STARTTLS command first.
> >
> > i have tried putting -Dmail.smtp.starttls.enable=true into run.bat and also tried with<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>  into mailetcontainer.xmlboth doesnt seem to work. i am using james 3 m2 by the way
> >
> >> Subject: RE: How to set relay server
> >> Date: Tue, 19 Apr 2011 10:17:51 +0200
> >> From: Frederic.Dussin@euroscript.fr
> >> To: server-user@james.apache.org
> >>
> >> 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:eric@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<er...@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-unsubscribe@james.apache.org
> >>>>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >>>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >   		 	   		
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
 		 	   		  

RE: How to set relay server

Posted by Daniel Tan <pu...@hotmail.com>.
please ignore this qn. saw that M3 has disabled telnet function and available thru jmx only.

> From: pufferfish@hotmail.com
> To: server-user@james.apache.org
> Subject: RE: How to set relay server
> Date: Thu, 21 Apr 2011 11:57:59 +0800
> 
> 
> hi eric,
> what happened to remote manager on nightly built M3 snapshot? i tried to activate it via run.bat from M2 library but james cannot startup. has the remote management changed for M3 to jmx only?
> 
> 
> > Date: Tue, 19 Apr 2011 13:50:04 +0200
> > From: eric@apache.org
> > To: server-user@james.apache.org
> > Subject: Re: How to set relay server
> > 
> > You're falling into https://issues.apache.org/jira/browse/JAMES-1175 
> > that will be fixed in 3.0-M3.
> > 
> > (see also http://markmail.org/message/g6p62h6a4twsnsk3)
> > 
> > Can you try with a snapshot from 
> > http://people.apache.org/builds/jamesll/nightly/ ?
> > 
> > If this still does not work, can you post the shown messages/exceptions 
> > in log file (james-server.log, mailetcontainer.log,...).
> > 
> > Tks,
> > 
> > Eric
> > 
> > 
> > On 19/04/2011 13:31, Daniel Tan wrote:
> > >
> > > hmm...i tried to use gmail as my relay but starttls is required.
> > > Must issue a STARTTLS command first.
> > >
> > > i have tried putting -Dmail.smtp.starttls.enable=true into run.bat and also tried with<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>  into mailetcontainer.xmlboth doesnt seem to work. i am using james 3 m2 by the way
> > >
> > >> Subject: RE: How to set relay server
> > >> Date: Tue, 19 Apr 2011 10:17:51 +0200
> > >> From: Frederic.Dussin@euroscript.fr
> > >> To: server-user@james.apache.org
> > >>
> > >> 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:eric@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<er...@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-unsubscribe@james.apache.org
> > >>>>> For additional commands, e-mail: server-user-help@james.apache.org
> > >>>>>
> > >>>>
> > >>>> ---------------------------------------------------------------------
> > >>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > >>>> For additional commands, e-mail: server-user-help@james.apache.org
> > >>>>
> > >>>>
> > >>>
> > >>> ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > >>> For additional commands, e-mail: server-user-help@james.apache.org
> > >>>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > >> For additional commands, e-mail: server-user-help@james.apache.org
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > >> For additional commands, e-mail: server-user-help@james.apache.org
> > >>
> > >   		 	   		
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> > 
>  		 	   		  
 		 	   		  

RE: How to set relay server

Posted by Daniel Tan <pu...@hotmail.com>.
hi eric,
what happened to remote manager on nightly built M3 snapshot? i tried to activate it via run.bat from M2 library but james cannot startup. has the remote management changed for M3 to jmx only?


> Date: Tue, 19 Apr 2011 13:50:04 +0200
> From: eric@apache.org
> To: server-user@james.apache.org
> Subject: Re: How to set relay server
> 
> You're falling into https://issues.apache.org/jira/browse/JAMES-1175 
> that will be fixed in 3.0-M3.
> 
> (see also http://markmail.org/message/g6p62h6a4twsnsk3)
> 
> Can you try with a snapshot from 
> http://people.apache.org/builds/jamesll/nightly/ ?
> 
> If this still does not work, can you post the shown messages/exceptions 
> in log file (james-server.log, mailetcontainer.log,...).
> 
> Tks,
> 
> Eric
> 
> 
> On 19/04/2011 13:31, Daniel Tan wrote:
> >
> > hmm...i tried to use gmail as my relay but starttls is required.
> > Must issue a STARTTLS command first.
> >
> > i have tried putting -Dmail.smtp.starttls.enable=true into run.bat and also tried with<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>  into mailetcontainer.xmlboth doesnt seem to work. i am using james 3 m2 by the way
> >
> >> Subject: RE: How to set relay server
> >> Date: Tue, 19 Apr 2011 10:17:51 +0200
> >> From: Frederic.Dussin@euroscript.fr
> >> To: server-user@james.apache.org
> >>
> >> 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:eric@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<er...@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-unsubscribe@james.apache.org
> >>>>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >>>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >   		 	   		
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
 		 	   		  

Re: How to set relay server

Posted by Eric Charles <er...@apache.org>.
You're falling into https://issues.apache.org/jira/browse/JAMES-1175 
that will be fixed in 3.0-M3.

(see also http://markmail.org/message/g6p62h6a4twsnsk3)

Can you try with a snapshot from 
http://people.apache.org/builds/jamesll/nightly/ ?

If this still does not work, can you post the shown messages/exceptions 
in log file (james-server.log, mailetcontainer.log,...).

Tks,

Eric


On 19/04/2011 13:31, Daniel Tan wrote:
>
> hmm...i tried to use gmail as my relay but starttls is required.
> Must issue a STARTTLS command first.
>
> i have tried putting -Dmail.smtp.starttls.enable=true into run.bat and also tried with<mail.smtp.starttls.enable>true</mail.smtp.starttls.enable>  into mailetcontainer.xmlboth doesnt seem to work. i am using james 3 m2 by the way
>
>> Subject: RE: How to set relay server
>> Date: Tue, 19 Apr 2011 10:17:51 +0200
>> From: Frederic.Dussin@euroscript.fr
>> To: server-user@james.apache.org
>>
>> 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:eric@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<er...@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-unsubscribe@james.apache.org
>>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>   		 	   		

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


RE: How to set relay server

Posted by Daniel Tan <pu...@hotmail.com>.
hmm...i tried to use gmail as my relay but starttls is required.
Must issue a STARTTLS command first.

i have tried putting -Dmail.smtp.starttls.enable=true into run.bat and also tried with <mail.smtp.starttls.enable>true</mail.smtp.starttls.enable> into mailetcontainer.xmlboth doesnt seem to work. i am using james 3 m2 by the way

> Subject: RE: How to set relay server
> Date: Tue, 19 Apr 2011 10:17:51 +0200
> From: Frederic.Dussin@euroscript.fr
> To: server-user@james.apache.org
> 
> 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:eric@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<er...@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-unsubscribe@james.apache.org
> >>> For additional commands, e-mail: server-user-help@james.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> >> For additional commands, e-mail: server-user-help@james.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> > For additional commands, e-mail: server-user-help@james.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
 		 	   		  

Re: How to set relay server

Posted by Eric Charles <er...@apache.org>.
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:eric@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<er...@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-unsubscribe@james.apache.org
>>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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


RE: How to set relay server

Posted by DUSSIN Frédéric <Fr...@euroscript.fr>.
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:eric@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<er...@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-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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


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


Re: How to set relay server

Posted by Eric Charles <er...@apache.org>.
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<er...@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-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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


Re: How to set relay server

Posted by Daniel Tan <pu...@hotmail.com>.
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 <er...@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-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
> 
> 

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


Re: How to set relay server

Posted by Eric Charles <er...@apache.org>.
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-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>

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