Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Synchronet Synchronet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 224
    • Issues 224
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

This GitLab instance has migrated as of Nov-5-2022 to a new server: hardware, OS, SSH key

The v3.20a development branch has now been merged to the master branch. Sysops upgrading from earlier versions must run 'jsexec update'

  • MainMain
  • SynchronetSynchronet
  • Issues
  • #120
Closed
Open
Issue created Aug 28, 2020 by Michael J. Ryan@tracker1Developer

Throttle email relay connections

Re: mailall.js

By: Access Denied to Digital Man on Sun May 23 2010 08:28 am

Hey DM,

Back roughly a year ago you made me a bulk email mod called mailall.js (based off bulkmail.js, but with the ability of using javascript to send them account information, etc). I'm routing through my SMTP server via my ISP just fine, but it seems as though after it sends out some emails, it starts giving me errors of "421 Connection rate too high, try again later [R0203001]."

Is there a way to slow this process down so that it doesn't connect so fast? Or is it just because of the amount of connections? I believe it was trying to send out about 230 emails in under a minute, and after about 100 it started giving me that error message. Maybe if there was a delay in between messages going out it would fix this? I guess it doesn't matter how long it takes to get done, as long as it works for every email.

What you want is to throttle the sendmail thread. This isn't really a JavaScript question, unless you want to queue up 100 e-mails at a time, wait for an hour or so, then another hundred. It'd probably easy to just add some kind of throttle support to the sendmail thread, which it currently doesn't have. I'll look into adding a configuration parameter.

                                            digital man

Snapple "Real Fact" #127:
A hummingbird's heart beats 1,400 times a minute. 
Assignee
Assign to
Time tracking