zone-eu / zone-mta

📤 Modern outbound MTA cross platform and extendable server application
European Union Public License 1.2
606 stars 96 forks source link

Limited to 5 outbound emails every 5 secondes #332

Open pydubreucq opened 1 year ago

pydubreucq commented 1 year ago

Hi, Actually my Zone-MTA send 5 emails every 5 secondes so with my volume it's a problem because I have to send 100K by day or more. I tried to modify connections and connectionCache parameter with no effect. Do you have an idea where I can change that ? Best Regards Pierre-Yves

andris9 commented 1 year ago

Sounds like an issue with the connection cache https://github.com/zone-eu/zone-mta/blob/a35907beddca3405590ad84080c70d6645e8684d/config/default.js#LL399C22-L399C22

pydubreucq commented 1 year ago

Hi, Thanks for your answer. I tried to change connection cache ttl to 1 but without effect. I tried to change in a specific zone too.

I forgot to tell that my problem is 5 emails by zone every 5 seconds

Thanks for all :)

pydubreucq commented 1 year ago

Is it possible to see the value used by zone-mta like the postconf command for postfix ? We tried to modify connectioncache or the number of connections without effect.

louis-lau commented 1 year ago

https://github.com/zone-eu/zone-mta-template

To see the current config run the following. This shows the fully merged config tree:

$ npm run config
{ name: 'ZoneMTA',
ident: 'zone-mta',
dbs:
{ mongo: ...
pydubreucq commented 1 year ago

Thanks for your answer. npm run config don't work for me I used npm run show

I'm using last stable Release (3.4.0)

I have this value for connections & connectionCache

default: {
      preferIPv6: false,
      ignoreIPv6: true,
      processes: 1,
      connections: 12,
      pool: 'default',
      connectionCache: { ttl: 3, reuseCount: 100 }
    },
zone1: {
      connections: 20,
      connectionCache: { ttl: 3, reuseCount: 50 },
      pool: 'ipZone1',
      throttling: '30 messages/second',
      recipientDomains: [
        'domain1.com',
        'domain2.com,
        'domain3.com'
      ]
    },

But zone-mta seems to don't care :(