Menu

#122 Multiple Client Connections

v1.0 (example)
open
None
5
1 day ago
2025-11-13
No

Hi, Is there anyway that EmailRelay can create multiple connections as a client to an SMTP server. I have about 60000 emails to send and want to get done in the quickest possible time

Related

Support Requests: #122

Discussion

  • Graeme Walker

    Graeme Walker - 2025-11-13

    You can run as many emailrelay processes as you want, sharing the same spool directory. When one process is ready to send an email it renames an envelope file with a ".busy" filename extension in order to lock it and prevent any other process from picking it up. It might be best to use "--as-client" or "--dont-serve" or "--no-smtp" so that the processes do not all try to listen on the same server port (25 by default).

     
  • Graeme Walker

    Graeme Walker - 2025-11-14

    Or it might be easier to use the multi-config approach, as illustrated under 'advanced usage' in the userguide -- just add new forwarding sections to the existing config file:

    log
    log-format unit
    spool-dir ...
    port 25
    forward-to ...
    ...
    
    fwd1-spool-dir ...
    fwd1-poll 10
    fwd1-forward-to ...
    fwd1-no-smtp
    
    fwd2-spool-dir ...
    ...etc
    

    The disadvantage compared to having multiple processes is that it's more likely to get CPU-bound.

     
    • Paul Passingham

      Paul Passingham - 2025-11-14

      Thanks Graham

      That is very helpful

      Kind Regards

      Paul

      Paul Passingham

      Senior Deployment Specialist
      020 7089 1410

      Grosvenor Systems Limited

      We want to hear from you! Please take our NPS survey. https://t.xink.io/Tracking/Index/CXACAHIOAgAo5xsB0

      Click here to explore our Professional Services Brochurehttps://t.xink.io/Tracking/Index/_D4CAHIOAgAo5xsB0

      Grosvenor Systems Limited | Registration No. 1496717 (England) | Registered Office: 7 Leathermarket Street, London, SE1 3FB
      Any views or opinions expressed in this message which do not relate to the official business of Grosvenor Systems Limited are those of the individual sender. The information in this communication and any attachments is confidential, for the attention of the named recipient only and should not be passed on to any other person. It is sent in good faith, in confidence and without legal responsibility. Whilst efforts are made to safeguard outbound e-mails, Grosvenor Systems Limited cannot guarantee that attachments are clear of any virus or compatible with your systems and Grosvenor Systems Limited will not accept any liability in this respect.


      From: support-requests@emailrelay.p.re.sourceforge.net support-requests@emailrelay.p.re.sourceforge.net on behalf of Graeme Walker graeme_walker@users.sourceforge.net
      Sent: 14 November 2025 10:49
      To: [emailrelay:support-requests] 122@support-requests.emailrelay.p.re.sourceforge.net
      Subject: [emailrelay:support-requests] #122 Multiple Client Connections

      You don't often get email from graeme_walker@users.sourceforge.net. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification

      Or it might be easier to use the multi-config approach, as illustrated under 'advanced usage' in the userguide -- just add new forwarding sections to the existing config file:

      log
      log-format unit
      spool-dir ...
      port 25
      forward-to ...
      ...

      fwd1-spool-dir ...
      fwd1-poll 10
      fwd1-forward-to ...
      fwd1-no-smtp

      fwd2-spool-dir ...
      ...etc

      The disadvantage compared to having multiple processes is that it's more likely to get CPU-bound.


      [support-requests:#122]https://sourceforge.net/p/emailrelay/support-requests/122/ Multiple Client Connections

      Status: open
      Group: v1.0 (example)
      Created: Thu Nov 13, 2025 11:46 AM UTC by Paul Passingham
      Last Updated: Thu Nov 13, 2025 10:40 PM UTC
      Owner: Graeme Walker

      Hi, Is there anyway that EmailRelay can create multiple connections as a client to an SMTP server. I have about 60000 emails to send and want to get done in the quickest possible time


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/emailrelay/support-requests/122/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Support Requests: #122

  • Graeme Walker

    Graeme Walker - 1 day ago

    Another option is to use the "--admin" interface's "flush" command. This does forwarding in the context of the admin connection, so it could be used to increase the number of forwarding clients dynamically. One disadvantage is that if the admin connection goes away before forwarding is complete then you will likely end up with a failed (".bad") message. That means you might have to consider TCP idle timeouts and keepalives if the admin connection is quiescent for a long time while the flush command executes, or use a unix domain socket.

    (I have occasionally considered removing the "flush" command in favour of "forward" but I suppose this use case counts against doing so.)

     

Log in to post a comment.