On 13.02.19 11:45, Piers via luv-main wrote:
> I have a server that  regularly runs jobs to import email via IMAP from
> remote servers.
...
> The problem is that these jobs seem to run over each other and then
> eventually (occasionally) it will hang the server.
...
> I am looking for suggestions as to:
> 
> - How to fix the underlying problem

For a couple of decades now, I've used fetchmail to bring in mail from
IMAP or POP mailservers, either corporate or (now in retirement) at the
ISP. I configure it to run each 10 minutes, and it never jams.
Restarting after a power outage can result in a query: "Delete stale
lockfile?"

There's a fetchmailconf command to assist with initial setup, so you
don't have to hack .fetchmailrc out of raw vacuum. I see mine has
barely changed in nearly 20 years. (fetchmailconf datestamps its work)

You can have it send mail directly to procmail (if that's what you use
to distribute it to multiple inboxes):    fetchmail -m procmail
or just let it forward to port 25. That's what I tend to do, even though
it's probably a complete waste to run postfix with only one mail
recipient now. (Old habits die hard.)

I'm all for a good excuse for hacking a script, but a long-solved
problem isn't such a use case.

Erik
_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to