Re: Getmail for many users
"Gary R. Schmidt" <[email protected]>
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <[email protected]> |
On 09/03/2019 21:57, Mike Mildner wrote: > Hi, > > is there another way to get mails from extern ISP for 'many' Users? > At this time i call getmail like this: > > getmail -r rcfile_user1 -n -rcfile_user2 -n ... > > But with >20 users its not usefull > I would run a separate getmail per user, 20+ users is really not that big a thing, and have cron fire them off a minute or so apart, something like this: 0,30 * * * * timeout 300 getmail -r user0 1,31 * * * * timeout 300 getmail -r user1 2,32 * * * * timeout 300 getmail -r user2 ... 29,59 * * * * timeout 300 getmail -r user29 That has thirty users mail polling twice an hour, which seems fine. If you want to poll more often, once every five minutes would not be an unusual setting, just do six at a time: 0,30 * * * * timeout 300 getmail -r user0 ... 0,30 * * * * timeout 300 getmail -r user5 1,31 * * * * timeout 300 getmail -r user7 ... Most will complete fairly quickly, - see "man timeout", it kills processes that run too long - so it's not a big load on the system or network. Cheers, Gary B-)