Hi Eric,

I just fixed this. Sorry for the trouble.

Bye,
Norman


2010/5/26 Eric Charles <[email protected]>:
> Hi,
>
> I just updated to revision 948330 with the AbstractRemoteDelivery patch.
> Mails are now forwarded, but without title, body nor header (see hereafter
> 1.Direct and 2.ViaJames from wireshark).
> Maybe the camel configuration needs some modifications.
>
> Tks,
>
> Eric
>
> 1. DIRECT TO RELAY
> 220 relay.skynet.be ESMTP
> EHLO [192.168.1.11]
> 250-relay.skynet.be
> 250-8BITMIME
> 250 SIZE 16777216
> MAIL FROM:<[email protected]> SIZE=411
> 250 sender <[email protected]> ok
> RCPT TO:<[email protected]>
> 250 recipient <[email protected]> ok
> DATA
> 354 go ahead
> Message-ID: <[email protected]>
> Date: Wed, 26 May 2010 17:57:10 +0200
> From: Eric Charles <[email protected]>
> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8)
> Gecko/20100322 Thunderbird/3.0.3
> MIME-Version: 1.0
> To: [email protected]
> Subject: mail_title
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
>
> mail_body
> .
> 250 ok:  Message 681392225 accepted
> QUIT
> 221 relay.skynet.be
>
>
> 2. TO RELAY VIA JAMES
> 220 relay.skynet.be ESMTP
> EHLO 127.0.1.1
> 250-relay.skynet.be
> 250-8BITMIME
> 250 SIZE 16777216
> MAIL FROM:<[email protected]>
> 250 sender <[email protected]> ok
> RCPT TO:<[email protected]>
> 250 recipient <[email protected]> ok
> DATA
> 354 go ahead
>
> .
> 250 ok:  Message 390806655 accepted
> QUIT
> 221 relay.skynet.be
>
>
>
> On 05/24/2010 01:30 PM, Eric Charles wrote:
>>
>> Took from a fresh james setup and simply enabled the <gateway> tag with a
>> valid smtp relay and got same exception when attempting to deliver mails via
>> gateway:
>> INFO  13:26:30,682 | james.mailetcontext | Exception delivering message
>> (Mail1274700389857-3) - SMTP can only send RFC822 messages
>>
>> For 2.3, I simply enabled the <gateway> tag (with eventual username/pwd),
>> and it was OK.
>>
>> Something else to configure in current trunk?
>>
>> Tks,
>>
>> Eric
>>
>>
>> On 05/24/2010 01:15 PM, Eric Charles wrote:
>>>
>>> Hi Norman,
>>>
>>> I tried this config :
>>>
>>> <mailet match="[email protected]" class="ToProcessor">
>>> <processor>domainprocessor</processor>
>>> </mailet>
>>> <processor name="domainprocessor">
>>>
>>> <mailet match="All" class="ActiveMQRemoteDelivery">
>>> <outgoingQueue> outgoing2</outgoingQueue>
>>> <outgoingRetryQueue> outgoing2.retry</outgoingRetryQueue>
>>> <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> 1 </deliveryThreads>
>>> <sendpartial>true</sendpartial>
>>> <bounceProcessor>bounces</bounceProcessor>
>>> <gateway>172.16.1.206 </gateway>
>>> <gatewayPort>25</gatewayPort>
>>> <gatewayUsername>xxx</gatewayUsername>
>>> <gatewayPassword>yyy</gatewayPassword>
>>>
>>> </mailet>
>>>
>>> </processor>
>>>
>>>
>>> and got in James1 log:
>>> INFO  12:52:47,502 | james.mailetcontext | Exception delivering message
>>> (Mail1274698287300-18) - SMTP can only send RFC822 message
>>>
>>> James replies with
>>>
>>> Hi. This is the James mail server at srv001.
>>> I'm afraid I wasn't able to deliver your message to the following
>>> addresses.
>>> This is a permanent error; I've given up. Sorry it didn't work out.
>>>  Below
>>> I include the list of recipients and the reason why I was unable to
>>> deliver
>>> your message.
>>>
>>>
>>> I also tried the initial config I proposed (which was more applicable for
>>> a servers configured in series, yours being more suited for tree-like
>>> servers), and got the same error in James1 log.
>>>
>>> James2 can handle mails (tested via telnet).
>>> When I send via James1, nothing is written in the log (so I assume the
>>> mail does not even leave James1).
>>>
>>> Finally I am wondering if the "SMTP can only send RFC822 message" comes
>>> from my config, or from the handling of mails via gateway in current trunk.
>>> I have difficulties to test "gateways" config from my environment
>>> (firewalls,...).
>>> Any idea if it comes from my configs or from issues with james handling
>>> "gateways"?
>>>
>>> Many Tks,
>>>
>>> Eric
>>>
>>>
>>> On 05/20/2010 06:48 PM, Norman Maurer wrote:
>>>>
>>>> Hi Eric,
>>>>
>>>> sorry for the delay....
>>>>
>>>> Just add the domains to domain configuration on both servers and use a
>>>> matcher to "forward" the mails to the other server.
>>>>
>>>> Bye,
>>>> Norman
>>>>
>>>>
>>>> 2010/5/17 Eric Charles<[email protected]>:
>>>>>
>>>>> Hi,
>>>>>
>>>>> As far as I understand, james current trunk considers that smtp
>>>>> authentication is needed for mails not being in its domains list (I use
>>>>> JDBCDomainList, so domains not being in database).
>>>>>
>>>>> This avoids to expose james as openrelay by default even if
>>>>> <authRequired>true</authRequired>  remains commented in smptserver.xml.
>>>>>
>>>>> Now I need to split domain management in 2 separate servers (different
>>>>> SLA),
>>>>> let's say James1 and James2.
>>>>>
>>>>> I would define in James1 all James1+James2 domains.
>>>>>
>>>>> In James1 spoolmanager.xml, I would comment the
>>>>> <mailet match="HostIsLocal" class="ToProcessor">
>>>>> <processor>  local-address-error</processor>
>>>>> <notice>550 - Requested action not taken: no such user here</notice>
>>>>> </mailet>
>>>>>
>>>>> and would define
>>>>> <mail.smtp.localhost>James2<mail.smtp.localhost>
>>>>>
>>>>> to forward all permitted mails not handled by James1 to James2.
>>>>>
>>>>> Do this make sense?
>>>>>
>>>>> Tks,
>>>>>
>>>>> Eric
>>>>>
>>>>>
>>>>>
>>>> ---------------------------------------------------------------------
>>>> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to