Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External mail server feature or delayed mail queue #210

Open
ssemerikov opened this issue Aug 26, 2020 · 2 comments
Open

External mail server feature or delayed mail queue #210

ssemerikov opened this issue Aug 26, 2020 · 2 comments

Comments

@ssemerikov
Copy link

ssemerikov commented Aug 26, 2020

Dear Eddie,

I use HotCRP on the shared hosting with the strict limit of 100 emails per hour. When we have a lot of submissions before deadline, this limit is exceeded in a minutes. Another cases are notifications/reminders to the all (or some) of authors, review assignment et al, etc. The most of shared hosting providers allows to use the external mail servers (e.g., Gmail). Is it possible to make an 'externalMailer' option(s) in HotCRP, or 'maxlMailPerHour' option and the internal queue of delayed emails to avoid an 'emails-per-hour' restriction?

Kind regards,
Serhiy Semerikov

@kohler
Copy link
Owner

kohler commented Aug 26, 2020

Hi,

I would certainly consider a patch to this effect; or you could use HotCRP.com.

Eddie

@Bramas
Copy link

Bramas commented Aug 28, 2020

Hi,
I faced the same problem when using it recently.
I think it will be hard to throttle the mail sending using php (except by having a long running script or a web page that refresh itself every second, sending 10 mail each time or something like that).

My solution was to use an intermediary SMTP server that send at most one mail per second. The SMTP server receives all the emails from hotcrp and keeps it in its queue until they are all sent.

I used docker-compose to set up my solution (inspired by the PR #140 )
The complete solution is available here : https://github.com/Bramas/hotcrp-docker-compose
With it, you can set up hotcrp easily as everything is pre-configured, setting the mail server you want to use and it will throttle 1 mail per second.

I am currently using it successfully for a conference (20 papers until now).

Quentin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants