CPU spikes when sending to inexistent domains

Issue #963 resolved
Rafael Batiati created an issue

My QA team just sent a batch of 10k e-mail messages to an inexistent domain (e.g. joe@notexists.org) and that operation caused the server to hang for several minutes with 100% CPU usage.

We repeated the same batch of 10k e-mail messages but this time using an inexistent account on a valid domain (e.g. no_such_account@gmail.com) and no issue was observed.

Version 2.3.7

Comments (5)

  1. Rafael Batiati reporter

    Thank you @SH

    Do you have any suggestions for a workaround? I’ve read the GH issue but I have no clue about where I should set the config acquireTimeoutMillis on my poste.io deployment.

    I’ve created the “notexists.org” domain on my own mail server, and it seems to have solved the problem. It’s ok since I can predict the “unknown” domain my users are going to use, but it isn't really a general-case workaround.

  2. SH repo owner

    Which version are you using? I’ve tried to dig deeper to the issue and everything worked as expected.

    There was similar Haraka looping bug which was fixed couple versions ago

  3. Log in to comment