Smtp rateLimit emails per second

Hi.
I’m using mailtrap for development and it’s working good. The free account I’m using has a limitation of 4 emails every 10 seconds, thats it 0.4 emails per second.

I went to config > mail > stmp and set a rateLimit of 0.3 and I still get the error 550: too many mails per second.

Any help?

1 Like

Can you share the complete config file? Also, it’s worth checking nodemailer docs too https://nodemailer.com/smtp/pooled/.

Hi @virk.
Mailtrap is working ok, just the problem with the sending limit.

I just checked nodemailer, included rateDelta in the setup and I still get the error. Only one connection alive.


  smtp: {
    driver: 'smtp',
    pool: true,
    port: 2525,
    host: Env.get('SMTP_HOST'),
    secure: false,
    auth: {
      user: Env.get('MAIL_USERNAME'),
      pass: Env.get('MAIL_PASSWORD')
    },
    maxConnections: 5,
    maxMessages: 100,
    rateDelta :10000, //TODO: cambiar en Producción
    rateLimit: 2 //TODO: cambiar en Producción
  },

@jorgeyoma were you able to resolve this? I’m having the same issue.

I’ve changed my settings to

maxConnections: 1,
maxMessages: 2,
rateLimit: 10

which as I understand it should limit to 2 messages every 10 seconds, but still I get the 550 error from Mailtrap

Hi @JamesThomson.

I don’t remember, but this are my config variables:
maxMessages: 100,
rateDelta :12000, //TODO: cambiar en Producción
rateLimit: 2 //TODO: cambiar en Producción

Hi @JamesThomson

I tested today and the problem continues.

Thanks for confirming that @jorgeyoma