james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Huru (JIRA)" <server-...@james.apache.org>
Subject [jira] [Comment Edited] (JAMES-1824) Problem with encoding
Date Thu, 13 Oct 2016 12:20:20 GMT

    [ https://issues.apache.org/jira/browse/JAMES-1824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15571747#comment-15571747
] 

Dan Huru edited comment on JAMES-1824 at 10/13/16 12:20 PM:
------------------------------------------------------------

{noformat}
After renaming the necessary files I've started James and enabled SMTP server auth. When I
try to send an email to James I get the following:

INFO  15:03:03,073 | james.imapserver | ID=-449807885 Connection established from fe80:0:0:0:4507:61af:cf94:17c%20
INFO  15:03:04,910 | james.imapserver | ID=-806960204 Connection established from fe80:0:0:0:4507:61af:cf94:17c%20
INFO  15:03:28,036 | james.imapserver | ID=-806960204 Unable to append message to mailbox
#private:test@ro00040402.ericsson.se:Sent
org.apache.james.mailbox.exception.MailboxException: Unable to parse message
	at org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:402)
	at org.apache.james.imap.processor.AppendProcessor.appendToMailbox(AppendProcessor.java:136)
	at org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:73)
	at org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:49)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:98)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:87)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:81)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:69)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:52)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:188)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:310)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The system cannot find the path specified
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createTempFile(Unknown Source)
	at java.io.File.createTempFile(Unknown Source)
	at org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:277)
	... 49 more

{noformat}


was (Author: danhuru):
After renaming the necessary files I've started James and enabled SMTP server auth. When I
try to send an email to James I get the following:

INFO  15:03:03,073 | james.imapserver | ID=-449807885 Connection established from fe80:0:0:0:4507:61af:cf94:17c%20
INFO  15:03:04,910 | james.imapserver | ID=-806960204 Connection established from fe80:0:0:0:4507:61af:cf94:17c%20
INFO  15:03:28,036 | james.imapserver | ID=-806960204 Unable to append message to mailbox
#private:test@ro00040402.ericsson.se:Sent
org.apache.james.mailbox.exception.MailboxException: Unable to parse message
	at org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:402)
	at org.apache.james.imap.processor.AppendProcessor.appendToMailbox(AppendProcessor.java:136)
	at org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:73)
	at org.apache.james.imap.processor.AppendProcessor.doProcess(AppendProcessor.java:49)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:98)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.process(AbstractMailboxProcessor.java:87)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:81)
	at org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess(AbstractMailboxProcessor.java:69)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:52)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imap.processor.base.AbstractChainedProcessor.process(AbstractChainedProcessor.java:54)
	at org.apache.james.imapserver.netty.ImapChannelUpstreamHandler.messageReceived(ImapChannelUpstreamHandler.java:188)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:310)
	at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
	at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
	at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
	at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
	at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
	at org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolExecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The system cannot find the path specified
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createTempFile(Unknown Source)
	at java.io.File.createTempFile(Unknown Source)
	at org.apache.james.mailbox.store.StoreMessageManager.appendMessage(StoreMessageManager.java:277)
	... 49 more



> Problem with encoding
> ---------------------
>
>                 Key: JAMES-1824
>                 URL: https://issues.apache.org/jira/browse/JAMES-1824
>             Project: James Server
>          Issue Type: Bug
>    Affects Versions: 3.0.0-beta5
>         Environment: Debian 8.5
>            Reporter: Alex
>
> I use v3-beta5 version andI have the following problem. I have james server and two users
on it userA@example.com and userB@example.com
> Messages in Cyrillic (UTF-8) from userA go to userB and from userB go to userA without
any encoding problems.
> However, when I send messages in Cyrillic to external smtp server, for example userC@gmail.com
I have ????? ???? in body. I compared messages.
> When from userA to userB (no external smtp server) I have:
> Content-Type: text/plain; charset=utf-8; format=flowed
> Content-Transfer-Encoding: 8bit
> When from userA to userC (external smpty server) I have
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> X-MIME-Autoconverted: from 8bit to quoted-printable by Apache JAMES
> This is the full message from userB to userC (I only changed email addresses and IPs
for security reasons)
> {code}
> ########### START ##############
> Delivered-To: userC@gmail.com
> Received: by 0.0.0.0 with SMTP id y71csp60203ivf;
>         Sat, 17 Sep 2016 01:02:11 -0700 (PDT)
> X-Received: by 0.0.0.0 with SMTP id p187mr6881075lfe.48.1474099331684;
>         Sat, 17 Sep 2016 01:02:11 -0700 (PDT)
> Return-Path: <userA@example.com>
> Received: from mail.example.com ([0.0.0.0])
>         by mx.google.com with ESMTP id f144si273780lfd.145.2016.09.17.01.02.11
>         for <userC@gmail.com>;
>         Sat, 17 Sep 2016 01:02:11 -0700 (PDT)
> Received-SPF: neutral (google.com: 0.0.0.0 is neither permitted nor denied by best guess
record for domain of userA@example.com) client-ip=0.0.0.0;
> Authentication-Results: mx.google.com;
>        spf=neutral (google.com: 0.0.0.0 is neither permitted nor denied by best guess
record for domain of userA@example.com) smtp.mailfrom=userA@example.com
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> X-MIME-Autoconverted: from 8bit to quoted-printable by Apache JAMES
> Return-Path: <userA@example.com>
> X-UserIsAuth: true
> Received: from 0.0.0.0 (EHLO [0.0.0.0]) ([0.0.0.0])
>           by server1 (JAMES SMTP Server ) with ESMTPA ID 1844125562
>           for <userC@gmail.com>;
>           Sat, 17 Sep 2016 11:02:42 +0300 (MSK)
> To: UserC <userC@gmail.com>
> From: UserA <userA@example.com>
> Subject: =?UTF-8?B?0KHQvNC+0YLRgNC10Lsg0LLRh9C10YDQsCDRhNGD0YLQsdC+0Ls/?=
> Message-ID: <57DCF882.50809@example.com>
> Date: Sat, 17 Sep 2016 11:02:10 +0300
> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
>  Thunderbird/38.8.0
> ???????? ????. ??? ????? ??????????
> ########### END ##############
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message