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]

Reply via email to