mail spooling

mail spooling

Fabrizio Balliano
Vastuste arv 6
hi to all,
i'm managing a moodle community with 1500 users but i've problems when sending mail (when posting to global forum) because my smtp allows me to send only 200 mails/hour.

does moodle have a mail spooler to send some mails every hour, not all in one time?

it is possible to integrate moodle mail sending with external mailing software such as mailman?

thank you to all!
fabrizio
Keskmine hinnang: -
Vastuses Fabrizio Balliano

Re: mail spooling

Iñaki Arenaza
Core developers pilt Documentation writers pilt Particularly helpful Moodlers pilt Peer reviewers pilt Plugin developers pilt
I guess the easier way to do it is installing a local SMTP server and let it deal with spooling, throttling, et al.

Saludos. Iñaki.
Vastuses Iñaki Arenaza

Re: mail spooling

Fabrizio Balliano
thank you very much for your answer

actually I can't, it would be enaught to have the mail sender just send a few mail/hour, sleep and continue sending later...
Vastuses Fabrizio Balliano

Re: mail spooling

Iñaki Arenaza
Core developers pilt Documentation writers pilt Particularly helpful Moodlers pilt Peer reviewers pilt Plugin developers pilt
I'm afraid the changes you propose are not trivial at all. That's why I said the easier thing would be to run your own local smtp server...

Saludos. Iñaki.
Vastuses Iñaki Arenaza

Re: mail spooling

Fabrizio Balliano
hum, ok i'm going to change the mail sending inserting a sleep(6)
not nice but that's what i nedd at the moment

cheers and thank you!
fabrizio
Vastuses Fabrizio Balliano

Re: mail spooling

Martín Langhoff
Not entirely sure, but you may end up with the same forum message being sent more than once if the mailout takes more than 5 minutes to exec. The mailout code is quite conservative, but I suspect that there are a few race conditions that your sleep(6) will make painfully evident.

Possible workaround: have a lock on cron runs, so they never overlap -- take a look at dotlockfile. But bear in mind this has its own problems too.