Leandro,

If it helps.  I just went through this and got it to work.

If you use NAT (eg behind the firewall), I found that I had to setup
multiple local ip addresses and bind my james server to them and not
the external ip addresses.  In that instance it did work.

Good luck.

Mark


On Tue, Sep 23, 2008 at 11:00 AM, Leandro Bertolami
<[EMAIL PROTECTED]> wrote:
> Stefano,
>
> Thanks for your response. I tried removing the bind parameter and adding
> mail.smtp.localaddr but still cant make it work.
>
> Here is the config
>
> <mailet match="SubjectIs=xxx.xxx.xxx.91" class="RemoteDelivery">
>            <outgoing>file://var/mail/outgoing-91/</outgoing>
>            <mail.smtp.localaddr>xxx.xxx.xxx.91</mail.smtp.localaddr>
>
>  <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> 1 </deliveryThreads>
>            <sendpartial>false</sendpartial>
>            <bounceProcessor>bounces</bounceProcessor>
>        </mailet>
>
>         <mailet match="SubjectIs=xxx.xxx.xxx.90" class="RemoteDelivery">
>            <outgoing>file://var/mail/outgoing/</outgoing>
>            <mail.smtp.localaddr>xxx.xxx.xxx.90</mail.smtp.localaddr>
>            <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> 1 </deliveryThreads>
>            <sendpartial>false</sendpartial>
>            <bounceProcessor>bounces</bounceProcessor>
>         </mailet>
>
> It sends both mails from the .90 IP, but with this config it's working ok
> (but only for 2 ip's, I tried with 3 but didn work)
>
>      <mailet match="SubjectIs=xxx.xxx.xxx.91" class="RemoteDelivery">
>            <outgoing>file://var/mail/outgoing-91/</outgoing>
>            <bind>xxx.xxx.xxx.91</bind>
>            ...
>         </mailet>
>
>
>         <mailet match="SubjectIs=xxx.xxx.xxx.90" class="RemoteDelivery">
>            <outgoing>file://var/mail/outgoing/</outgoing>
>            <mail.smtp.localaddr>xxx.xxx.xxx.90</mail.smtp.localaddr>
>          ...
>        </mailet>
>
> If I add this to the mailets, the mals for .92 came with the IP .90.
>
>  <mailet match="SubjectIs=206.212.241.92" class="RemoteDelivery">
>            <outgoing> file://var/mail/outgoing-92/ </outgoing>
>            <mail.smtp.localaddr>206.212.241.92</mail.smtp.localaddr>
>
>
> I think I'm getting closer. Any Ideas?
>
> Thanks again for your time!
>
>
>
> On Tue, Sep 23, 2008 at 1:02 PM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>
>> Leandro Bertolami ha scritto:
>>
>>  I'm still trying to deliver mails from different IP's. I tried your
>>> solution, but it worked only with one mailet.
>>> Here is the RemoteDelivery Mailet config
>>>
>>> <mailet match="SubjectIs=206.212.241.91" class="RemoteDelivery">
>>>            <outgoing> file://var/mail/outgoing-91/ </outgoing>
>>>            <bind>206.212.241.91</bind>
>>>
>>>            <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> 1 </deliveryThreads>
>>>            <sendpartial>false</sendpartial>
>>>            <bounceProcessor>bounces</bounceProcessor>
>>>        </mailet>
>>>
>>> <mailet match="SubjectIs=206.212.241.90" class="RemoteDelivery">
>>>            <outgoing> file://var/mail/outgoing/ </outgoing>
>>>            <bind>206.212.241.90</bind>
>>>
>>>            <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> 1 </deliveryThreads>
>>>            <sendpartial>false</sendpartial>
>>>            <bounceProcessor>bounces</bounceProcessor>
>>>        </mailet>
>>>
>>> I have a java test that sends 2 emails to a gmail account, with the IP in
>>> the subject. Both mails get delivered, but with the same IP.
>>> If i have only one mailet, the bind parameter works well.
>>>
>>> Any Ideas?
>>>
>>
>> try removing the bind config and using this:
>> <mail.smtp.localaddr>206.212.241.91</mail.smtp.localaddr>
>>
>> I just verified in the code that when bind is used then the bind address is
>> statically changed, so only one bind is in fact allowed and my previous
>> suggestion cannot work.
>>
>>
>> Stefano
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to