Nigel Metheringham edited this page Nov 29, 2012 · 2 revisions



I wish to have large emails go out one at a time.


One possibility is to set up a router that defers all large messages, except in queue runs. Since queue runners deliver just one message at a time, if you limited the number of simultaneous queue runners to 1, you would get the effect you wanted. A suitable router might be

  driver = redirect
  condition = ${if or{{queue_running}{<{$message_size}{200K}} }{no}{yes}}
  data = :defer: too large for immediate delivery

Of course, this would always delay any large message until the next queue runner, but if you run them fairly regularly, this shouldn't be a huge problem, and may even be desirable. Note the use of no_verify to ensure that this router is not used when Exim is verifying addresses.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.