Menu

#22 MEssage forward problem for high loads.

v1.0 (example)
closed
nobody
None
5
2018-06-20
2017-02-09
No

Hello,

I am developing a filter script which detects pattern in the given e-mail. The script run in a different server which communicates with emailrelay net pre-processor. I am testing the system with different work loads. For 10 to 30 threads, there is no problem. But after 40 threads most of the messages can not be forwarded. There are some exceptions in the debug log. I tested the system with emailrelay-msgcopy script, there was no forward problem. How can I debug my problem? Is it a timing issue in EmailRelay?

Note:
I am using two email relay instances. One of them is storing and the other one pre-process and forwards to the next hop mta.

Thanks,

-Koray

Discussion

  • Graeme Walker

    Graeme Walker - 2017-02-09

    Debugging always starts with log files. Add "--verbose", "--log-file" and "--log-time" options to the command-line.

    Note that emailrelay is single-threaded and event-driven, with asynchronous network i/o, but it is totally blocked while exectuting external programs. If your scripts are slow then you should use multiple emailrelay processes running against the same spool directory to regain parallelism.

    Please use email for help with debugging, to reduce noise here.

     
  • Koray YIlLMAZ

    Koray YIlLMAZ - 2017-02-10

    Ok, thanks. I will send e-mail...

     
  • Graeme Walker

    Graeme Walker - 2018-06-20
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB