【问题标题】:Apache James - reduce message time in spoolApache James - 减少假脱机中的消息时间
【发布时间】:2013-06-20 02:25:36
【问题描述】:

我正在使用本地 Apache James 2.3.2 安装进行开发和自动化测试。它被配置为将所有传入的消息转发到一个地址,并且不在外部中继电子邮件:

     <mailet match="All" class="Forward">
        <forwardto>test@localhost</forwardto>
     </mailet>

一切正常:电子邮件被接受,放置在假脱机目录中,然后最终移至收件箱/测试目录,然后由我的自动化测试从中提取以进行验证。

唯一的问题是,将这些电子邮件从假脱机目录移动到收件箱/测试目录可能需要 10 到 60 秒,这意味着测试需要等待很长时间才能检索它们并进行检查。

这是否可以通过其他方式进行配置?或者我应该只是为了测试目的而转移到不同的电子邮件服务器?

谢谢!

【问题讨论】:

    标签: james


    【解决方案1】:

    不是这个问题的直接答案,但我最终切换到 JES http://www.ericdaugherty.com/java/mailserver/ 。您可以配置完成工作的 SMTP 和 POP3 线程的数量以及这些线程从假脱机中提取消息并尝试发送传递它们的频率

    # The server stores incoming SMTP messages on disk before attempting to deliver them.  This
    # setting determines how often (in seconds) the server checks the disk for new messages to deliver.  The
    # smaller the number, the faster message will be processed.  However, a smaller number will cause
    # the server to use more of your system's resources.
    smtpdelivery.interval=5
    

    这符合我的需要。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-23
      • 2021-01-22
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多