gpt4 book ai didi

java - Apache james 3.4 消息已假脱机但未传递

转载 作者:行者123 更新时间:2023-12-01 17:59:33 25 4
gpt4 key购买 nike

在我的本地计算机上安装了 apache james 3.4。尝试发送 smtp 电子邮件,在日志中启用 Debug模式,我可以看到电子邮件已收到并发送到假脱机,但它并没有真正进入数据库或存储在任何地方。发送电子邮件后可以看到以下日志:

调试 14:40:22,520 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行 james 消息处理程序 org.apache.james.protocols.smtp.core.esmtp.MailSizeEsmtpExtension@139346fe调试 14:40:22,523 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.protocols.smtp.core.log.HookResultLogger@7e0a3d14调试 14:40:22,523 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.smtpserver.jmx.HookResultJMXMonitor@7727309d调试 14:40:22,526 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行 james 消息处理程序 org.apache.james.smtpserver.AddDefaultAttributesMessageHook@2ecd38f调试 14:40:22,527 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.protocols.smtp.core.log.HookResultLogger@7e0a3d14调试 14:40:22,527 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.smtpserver.jmx.HookResultJMXMonitor@7727309d调试 14:40:22,528 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行 james 消息处理程序 org.apache.james.smtpserver.SendMailHandler@e301d29调试 14:40:22,528 | org.apache.james.smtpserver.SendMailHandler | org.apache.james.smtpserver.SendMailHandler |发送邮件信息 14:40:22,567 | org.apache.james.smtpserver.SendMailHandler | org.apache.james.smtpserver.SendMailHandler |已成功后台处理来自 MaybeSender{mailAddress=Optional[kart2@kmart.com]} ​​的邮件 Mail1584042022511-573e00a5-df5c-4bd0-a9d2-0d4e45e12b0d,地址为 127.0.0.1/127.0.0.1 [kart2@kmart.com]调试 14:40:22,568 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.protocols.smtp.core.log.HookResultLogger@7e0a3d14调试 14:40:22,569 | org.apache.james.smtpserver.DataLineJamesMessageHookHandler | org.apache.james.smtpserver.DataLineJamesMessageHookHandler |执行钩子(Hook) org.apache.james.smtpserver.jmx.HookResultJMXMonitor@7727309d调试 14:40:22,583 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler | ====开始处理邮件 Mail1584042022511-573e00a5-df5c-4bd0-a9d2-0d4e45e12b0d ====调试 14:40:22,584 | org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor | org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor |调用 MailProcessor 根调试 14:40:22,587 | org.apache.camel.component.direct.DirectProducer | org.apache.camel.component.direct.DirectProducer |起始生产者:Producer[direct://processor.root]调试 14:40:22,588 | org.apache.camel.impl.ProducerCache | org.apache.camel.impl.ProducerCache |使用 key: direct://processor.root 添加到生产者缓存: Producer[direct://processor.root]调试 14:40:22,591 | org.apache.camel.impl.ProducerCache | org.apache.camel.impl.ProducerCache | >>>> 直接://processor.root Exchange[]调试 14:40:22,610 | org.apache.camel.processor.MulticastProcessor | org.apache.camel.processor.MulticastProcessor |完成顺序处理 1 次交换调试 14:40:22,616 | org.apache.camel.processor.MulticastProcessor | org.apache.camel.processor.MulticastProcessor |完成顺序处理 1 次交换调试 14:40:22,617 | org.apache.camel.processor.MulticastProcessor | org.apache.camel.processor.MulticastProcessor |完成顺序处理 1 次交换调试 14:40:22,618 | org.apache.camel.processor.MulticastProcessor | org.apache.camel.processor.MulticastProcessor | ExchangeId:ID-WW-CFT2PV2-1584041951079-0-9被标记为停止路由:Exchange[ID-WW-CFT2PV2-1584041951079-0-9]调试 14:40:22,618 | org.apache.camel.processor.MulticastProcessor | org.apache.camel.processor.MulticastProcessor |完成顺序处理 1 次交换调试 14:40:22,619 | org.apache.camel.processor.Pipeline | org.apache.camel.processor.Pipeline | ExchangeId:ID-WW-CFT2PV2-1584041951079-0-1被标记为停止路由:Exchange[ID-WW-CFT2PV2-1584041951079-0-1]调试 14:40:22,637 | org.apache.james.mailetcontainer.impl.JamesMailSpooler | org.apache.james.mailetcontainer.impl.JamesMailSpooler | ====结束处理邮件 Mail1584042022511-573e00a5-df5c-4bd0-a9d2-0d4e45e12b0d ====

感谢任何帮助。让我知道

最佳答案

我也遇到了这个问题,发现在默认的conf/mailetcontainer.xml配置文件中注释掉以下部分就可以解决问题。

        <mailet matcher="All" class="WithPriority">
<value>8</value>
</mailet>

<mailet matcher="HasPriority=8" class="Null"/>
<mailet matcher="AtLeastPriority=8" class="Null"/>
<mailet matcher="AtMostPriority=8" class="Null"/>

看起来这会阻止邮件越过根处理器。

我最初遵循这个建议来让服务器运行 Apache James Spring distribution not starting但这似乎更相关Re: Getting Apache James 3.4 to process mail.

关于java - Apache james 3.4 消息已假脱机但未传递,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60660911/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com