Hi Eric,

The cause is RemoteDelivery. it crushes validity of the sign through converting 
quoted-printable to 8bit plain text after DKIMSign mailet has made the sign, 
due to the property mail.smtp.allow8bitmime=true.

I'm not sure why that property is set true but I guess XML definition will win 
due to following invocation of props.putAll(defprops).

Sorry come to think of it, I'm not sure where that doc is appropriate. if the 
jDKIM site has some setup instruction or something, it would be good to place 
that note.

On Mar 9, 2015, at 14:12, Eric Charles <e...@apache.org> wrote:

> You are talking about RemoteDelivery and DKIMSign mailet. Which one is
> the cause of issue?
> 
> The code of RemoteDelivery mailet (line 732) is
> 
>        // By setting this property to true the transport is allowed to
>        // send 8 bit data to the server (if it supports the 8bitmime
>        // extension).
>        // 2006/03/01 reverted to false because of a javamail bug
> converting to
>        // 8bit
>        // messages created by an inputstream.
>        props.setProperty("mail.smtp.allow8bitmime", "true");
> 
> 
> The comment is not in line with the code (supposed to be false since
> 2006, but set to true).
> 
> Where would you like to see that doc (in jdkim site, in server site, in
> javadoc...?)
> 
> 
> On 03/09/2015 12:34 AM, Kohei Nozaki wrote:
>> I think we always should set this if we use DKIMSign mailet. adding some 
>> note to the documentation is reasonable.
>> 
>> On Mar 9, 2015, at 2:49, Eric Charles <e...@apache.org> wrote:
>> 
>>> Should we always set this property, or is it only valid in your specific
>>> case?
>>> 
>>> On 02/08/2015 10:28 AM, Kohei Nozaki wrote:
>>>> I sent this mail yesterday and I already found the solution. putting 
>>>> <mail.smtp.allow8bitmime>false</mail.smtp.allow8bitmime> inside <mailet 
>>>> match="All" class="RemoteDelivery"> element solved the issue. the cause 
>>>> was that JavaMail converted quoted-printable to 8bit unexpectedly.
>>>> 
>>>> 
>>>>> Hello,
>>>>> 
>>>>> I'm configuring James-3.0.0-beta5-SNAPSHOT to enable DKIM signing. it 
>>>>> creates valid signature for plain text mails, but not for 
>>>>> quoted-printable mails that made by Apple Mail. I also tried set 
>>>>> forceCRLF=false to DKIMSign mailet but no effect. I'm investing this 
>>>>> problem and suspecting logics in CRLFOutputStream or RemoteDelivery now 
>>>>> but still the cause is unknown. 
>>>>> 
>>>>> Is anyone has any hints or ideas to solve this problem?
>>>>> 
>>>>> Also I posted about details of my setup to my blog: 
>>>>> http://www.nailedtothex.org/roller/kyle/entry/configuring-james-to-sign-dkim
>>>>> 
>>>>> Thanks.
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>>>>> For additional commands, e-mail: server-user-h...@james.apache.org
>>>>> 
>>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>>>> For additional commands, e-mail: server-user-h...@james.apache.org
>>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>>> For additional commands, e-mail: server-user-h...@james.apache.org
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
>> For additional commands, e-mail: server-user-h...@james.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
> For additional commands, e-mail: server-user-h...@james.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscr...@james.apache.org
For additional commands, e-mail: server-user-h...@james.apache.org

Reply via email to