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?
Thanks!

On Thu, Sep 18, 2008 at 4:58 PM, Leandro Bertolami <[EMAIL PROTECTED]>wrote:

> Thank you very much for your quick reply, you are a life saver.
> I'll try that and see what happens.
>
>
>
>
> On Thu, Sep 18, 2008 at 4:50 PM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
>
>> Leandro Bertolami ha scritto:
>>
>>  Hi,
>>>
>>> I'm looking for a solution to a big problem. I am developing a custom
>>> MTA,
>>> with the requirement of sending multiple emails from different IP's (on
>>> the
>>> same server) simultaneously.
>>> This means that I will have a server with entire C class IP addresses
>>> (e.g.:
>>> 65.70.100.0 to 65.70.100.255) to use for a mailing list. But the mails
>>> will
>>> be partitioned in groups and each group will be delivered from a
>>> different
>>> IP.
>>> So, my question is: is it possible to have multiple SMTP servers on a
>>> single
>>> mail server, and have each of these SMTP servers mapped to one of the
>>> available IPs on that server? This way I can send mail from all of the
>>> available IPs on my server at the same time.
>>>
>>
>> Yes, you can use a single JAMES instance using 250 RemoteDelivery (a bit
>> extreme but it should work).
>>
>> You define a different outgoing spool for each RemoteDelivery and then
>> define a different <bind> configuration for each RemoteDelivery.
>>
>> Stefano
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

Reply via email to