Wie man die E-Mail-Sende-Geschwindigkeitsbeschränkung einstellt

I have a forum on discourse but with slow sending speed limit (20/sec)
Am I able to set sending speed limit on discourse?

I’m asking this because I found that I got nearly 500,000 records everyday on unsubscribe_keys table, but only 9000 in mail_log and 1000 in skipped_mail_log, our forum have nearly 500,000 members, too.
I’m not sure whether it’s caused by sending email too fast and make some weird problem happened, so I’m trying to throttle the sending speed but with no luck.

Unsubscribe_keys

email_log

2 „Gefällt mir“

You need to get a faster mail server and/or change settings so that let mail gets sent.

You can change how often summary emails get sent and change the max emails per day setting.

There is no rate limit setting.

1 „Gefällt mir“

not sure whether sending rate is necessary…
because even we can increase to probably 60/sec,it’s still possible that the server send too fast and get blocked.

2 „Gefällt mir“

What are you using to send email?

I use AWS SES service

1 „Gefällt mir“

Have you raised with their support?

1 „Gefällt mir“

Why are so many Discourse members being mailed? What are they being mailed for, exactly? That’s the more relevant question.

On a typical Discourse install, the only “all users” email is the digest, and even that is specific to only users who have not been on the website in a week or more, but also haven’t been gone more than a year.

In general you only get emails when someone is speaking directly to you, and even then only when you haven’t touched the website with any web browser in the last 10 minutes.

8 „Gefällt mir“

We had an activity before. (about several months ago) That activity attracted about 90 thousand members registered. And now they may leave for a few weeks. So system sent them the digest emails

2 „Gefällt mir“

Hast du schon eine Lösung gefunden? Ich bin kurz davor, auf Amazon SES umzusteigen und habe gerade festgestellt, dass unser anfängliches Limit 14 E-Mails pro Sekunde beträgt. Ich bin mir nicht sicher, wie schnell Discourse die E-Mails an SES sendet. Die Seite versendet sehr viele E-Mails.

Weiß jemand, mit welcher maximalen Rate Discourse E-Mails versendet? Wird es versuchen, mehr als 14 pro Sekunde zu senden?

Wenn es zu schnell sendet, frage ich mich, ob es vielleicht eine gute Idee wäre, ein Skript zu schreiben, das die Versandzeiten der Zusammenfassungen für alle Benutzer über die Woche hinweg gleichmäßig verteilt, anstatt den Großteil an einem Tag zu versenden (unser Import-Jahrestag).

Edit: Mir ist aufgefallen, dass ich herausfinden könnte, ob dies ein Problem ist, indem ich die Mandrill-Protokolle überprüfe. Sofern ich nicht eine zusätzliche Drosselung von Mandrill betrachte, denke ich, dass wir ein Maximum von etwa 8 E-Mails pro Sekunde haben, also sollte es in Ordnung sein.

2 „Gefällt mir“

Hey Josh!

Für Digests kannst du dies auf 14 pro Sekunde begrenzen, indem du diese Discourse-Globalvariable auf 420 setzt, wie im Folgenden in deiner Container-Build-Datei:

 DISCOURSE_MAX_DIGESTS_ENQUEUED_PER_30_MINS_PER_SITE: 420

Das ist nicht „exakt

3 „Gefällt mir“