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 Simon Klaiber <li...@klaiber.com> on 2012/08/27 18:29:06 UTC
Binding Outgoing SMTP to specific IP
Hi I use following in my Mailet configuration:
<mailet match="All" class="RemoteDelivery">
<bind>XXX.XX.XXX.XX</bind>
<outgoingQueue>outgoing</outgoingQueue>
<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>
<maxDnsProblemRetries>0</maxDnsProblemRetries>
<deliveryThreads>10</deliveryThreads>
<sendpartial>true</sendpartial>
<bounceProcessor>bounces</bounceProcessor>
</mailet>
(IP Adress Changed to XX.XX.....)
This worked in James 2, since upgrading to James 3 James seems to send
the Remote messages under another IP where the RDNS lookup does not work.
How do I bind Remote delivery to a specific ip in James 3
Thanks Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Binding Outgoing SMTP to specific IP
Posted by Eric Charles <er...@apache.org>.
Seems like we use an undocumented JavaMail 1.2 property
(mail.smtp.socketFactory.class), but documented since then on
http://javamail.kenai.com/nonav/javadocs/com/sun/mail/smtp/package-summary.html
To be completely sure, w need to debug things. If you can't dig into,
please open a JIRA (https://issues.apache.org/jira/browse/JAMES)
Thx, Eric
On 28/08/2012 15:29, Simon Klaiber wrote:
> I use 3.0-b3.
>
> Hardware and OS and Network Configuration didn't change.
>
> SMTP Incoming is also binded on the same address (that works). I had
> this problem in the past and it was resolved by adding the (at this time
> undocumented) <Bind> parameter on the Remote delivery Mailet.
>
> Since Upgrading its sends again on the xx.xx.xx.204 address when it
> should send on xx.xx.xx.198 address. the 204 IP is not used at all in
> the James Config and is also not the main IP of the Server but another
> secondary address.
>
> Simon
>
> On 28.08.2012 16:09, Eric Charles wrote:
>> RemoteDelivery code didn't change, however since 3.0-b4, we use
>> Geronimo JavaMail instead of Oracle(ex-Sun) JavaMail. Could this be
>> the cause? Tell us which version you use.
>>
>> Do you run on the same HW, or a new one? In the latter, are you sure
>> of your host network configuration?
>>
>> Thx, Eric
>>
>> On 27/08/2012 17:29, Simon Klaiber wrote:
>>> Hi I use following in my Mailet configuration:
>>>
>>> <mailet match="All" class="RemoteDelivery">
>>> <bind>XXX.XX.XXX.XX</bind>
>>> <outgoingQueue>outgoing</outgoingQueue>
>>> <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>
>>> <maxDnsProblemRetries>0</maxDnsProblemRetries>
>>> <deliveryThreads>10</deliveryThreads>
>>> <sendpartial>true</sendpartial>
>>> <bounceProcessor>bounces</bounceProcessor>
>>> </mailet>
>>>
>>> (IP Adress Changed to XX.XX.....)
>>>
>>>
>>> This worked in James 2, since upgrading to James 3 James seems to send
>>> the Remote messages under another IP where the RDNS lookup does not
>>> work.
>>> How do I bind Remote delivery to a specific ip in James 3
>>>
>>>
>>> Thanks Simon
>>>
>>> ---------------------------------------------------------------------
>>> 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: Binding Outgoing SMTP to specific IP
Posted by Simon Klaiber <li...@klaiber.com>.
Thanks for the hint, but it didn't change the behaviour...
On 28.08.2012 17:22, Stefano Bagnara wrote:
> 2012/8/28 Simon Klaiber <li...@klaiber.com>:
>> I use 3.0-b3.
>>
>> Hardware and OS and Network Configuration didn't change.
>>
>> SMTP Incoming is also binded on the same address (that works). I had
>> this problem in the past and it was resolved by adding the (at this time
>> undocumented) <Bind> parameter on the Remote delivery Mailet.
> I'm on the 2.x tree but I use this confs in the RemoteDelivery in
> order to bind an IP
> ----
> <bind>IP</bind>
> <mail.smtp.localaddress>IP</mail.smtp.localaddress>
> <mail.smtp.localhost>helohostname</mail.smtp.localhost>
> ----
>
> Stefano
>
> ---------------------------------------------------------------------
> 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: Binding Outgoing SMTP to specific IP
Posted by Stefano Bagnara <ap...@bago.org>.
2012/8/28 Simon Klaiber <li...@klaiber.com>:
> I use 3.0-b3.
>
> Hardware and OS and Network Configuration didn't change.
>
> SMTP Incoming is also binded on the same address (that works). I had
> this problem in the past and it was resolved by adding the (at this time
> undocumented) <Bind> parameter on the Remote delivery Mailet.
I'm on the 2.x tree but I use this confs in the RemoteDelivery in
order to bind an IP
----
<bind>IP</bind>
<mail.smtp.localaddress>IP</mail.smtp.localaddress>
<mail.smtp.localhost>helohostname</mail.smtp.localhost>
----
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Binding Outgoing SMTP to specific IP
Posted by Simon Klaiber <li...@klaiber.com>.
I use 3.0-b3.
Hardware and OS and Network Configuration didn't change.
SMTP Incoming is also binded on the same address (that works). I had
this problem in the past and it was resolved by adding the (at this time
undocumented) <Bind> parameter on the Remote delivery Mailet.
Since Upgrading its sends again on the xx.xx.xx.204 address when it
should send on xx.xx.xx.198 address. the 204 IP is not used at all in
the James Config and is also not the main IP of the Server but another
secondary address.
Simon
On 28.08.2012 16:09, Eric Charles wrote:
> RemoteDelivery code didn't change, however since 3.0-b4, we use
> Geronimo JavaMail instead of Oracle(ex-Sun) JavaMail. Could this be
> the cause? Tell us which version you use.
>
> Do you run on the same HW, or a new one? In the latter, are you sure
> of your host network configuration?
>
> Thx, Eric
>
> On 27/08/2012 17:29, Simon Klaiber wrote:
>> Hi I use following in my Mailet configuration:
>>
>> <mailet match="All" class="RemoteDelivery">
>> <bind>XXX.XX.XXX.XX</bind>
>> <outgoingQueue>outgoing</outgoingQueue>
>> <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>
>> <maxDnsProblemRetries>0</maxDnsProblemRetries>
>> <deliveryThreads>10</deliveryThreads>
>> <sendpartial>true</sendpartial>
>> <bounceProcessor>bounces</bounceProcessor>
>> </mailet>
>>
>> (IP Adress Changed to XX.XX.....)
>>
>>
>> This worked in James 2, since upgrading to James 3 James seems to send
>> the Remote messages under another IP where the RDNS lookup does not
>> work.
>> How do I bind Remote delivery to a specific ip in James 3
>>
>>
>> Thanks Simon
>>
>> ---------------------------------------------------------------------
>> 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: Binding Outgoing SMTP to specific IP
Posted by Eric Charles <er...@apache.org>.
RemoteDelivery code didn't change, however since 3.0-b4, we use Geronimo
JavaMail instead of Oracle(ex-Sun) JavaMail. Could this be the cause?
Tell us which version you use.
Do you run on the same HW, or a new one? In the latter, are you sure of
your host network configuration?
Thx, Eric
On 27/08/2012 17:29, Simon Klaiber wrote:
> Hi I use following in my Mailet configuration:
>
> <mailet match="All" class="RemoteDelivery">
> <bind>XXX.XX.XXX.XX</bind>
> <outgoingQueue>outgoing</outgoingQueue>
> <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>
> <maxDnsProblemRetries>0</maxDnsProblemRetries>
> <deliveryThreads>10</deliveryThreads>
> <sendpartial>true</sendpartial>
> <bounceProcessor>bounces</bounceProcessor>
> </mailet>
>
> (IP Adress Changed to XX.XX.....)
>
>
> This worked in James 2, since upgrading to James 3 James seems to send
> the Remote messages under another IP where the RDNS lookup does not work.
> How do I bind Remote delivery to a specific ip in James 3
>
>
> Thanks Simon
>
> ---------------------------------------------------------------------
> 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