由于某些原因,当传递的消息总是落后于实际发送时,我经常会遇到队列释放问题。James被设置为将传入消息发送到网关(Postfix)。
RemoteDelivery类有:
// Set it to try to deliver (in a separate thread) immediately
// (triggered by storage)“存储”究竟是什么?在哪里配置的?
我已经设置了一个mailet,它将匹配的消息(基于收件人域)发送到网关(在mailet容器中指定)。这是很好的工作,直到某一点,当它被“卡住”被传送到网关。在James日志中,它显示为发送方的Successfully spooled mail,然后显示为
[TID=83] INFO 11:04:54,858 | james.smtpserver | Id='1510412390' User='' Successfully spooled mail Mail1581005094857-978ba32f-74e6-4ca1-b903-7994637a9873 from <address@remote> on <remote sender IP> for [<address@local>]
...
[TID=734] INFO 11:04:55,290 | james.mailetcontext | Remotely delivering mail Mail1581005094857-978ba32f-74e6-4ca1-b903-7994637a9873
[TID=34] INFO 11:04:55,290 | james.mailetcontext | Remote delivery thread (0) will process mail Mail1581005072858-90055113-03cf-4bc0-84d7-d47d176feef2
[TID=34] INFO 11:04:55,290 | james.mailetcontext | Attempting to deliver Mail1581005072858-90055113-03cf-4bc0-84d7-d47d176feef2
[TID=734] INFO 11:04:55,312 | james.mailetcontext | Adding SMTP gateway: <gateway address>
[TID=734] INFO 11:04:55,312 | james.mailetcontext | Sending mail to [<address@local>] via [<gateway address>]
[TID=34] INFO 11:04:55,312 | james.mailetcontext | Adding SMTP gateway: <gateway adrdress>
[TID=34] INFO 11:04:55,312 | james.mailetcontext | Attempting delivery of Mail1581005072858-90055113-03cf-4bc0-84d7-d47d176feef2 to host <gateway adrdress> at <gateway adrdress> from <address@remote> for addresses [<address@local>]]但我看不出邮件是成功发送到网关的。
为了使它“解除”,我需要另一个传入的消息被发送到詹姆斯,它将点击相同的邮件,以推动先前的消息被假脱机,这是以前被卡住的。然后,在James日志中,它将显示为
[TID=35] INFO 11:22:14,443 | james.mailetcontext | Mail (Mail1581005094857-978ba32f-74e6-4ca1-b903-7994637a9873) sent successfully to <gateway adrdress> at <gateway adrdress> from <address@remote> for [[<address@local>]]看起来,如果中继主机发生变化,相关队列的行为可能会有所不同,就像一个纸巾管,把乒乓球推到一端。只有当足够多的球被推入其中之一时,才能得到其他end.Any的想法吗?
发布于 2020-02-18 18:34:05
ActiveMQ Ver5.4.2出现了一个问题。升级到5.5.1,队列问题消失了。
https://serverfault.com/questions/1001946
复制相似问题