> I set up all my config settings in /etc/sysconfig/fetchmailrc and set > this to 0600 owned by root.
Ah, running fetchmail as root in daemon mode. > page. I have not set a fetchlimit. I have not noticed any problems with > fallovers and the like. I am interested to know what you think of my > setup. Are there any glaring loop holes that I am missing? Not that I can see, but that would be difficult from the brief extract of your fetchmailrc. If you have a slow connection, you'll get some fun if someone sends you a 30MB email. In general it pays to set limits. Personally, I like some more fine-control over some of the options. Most importantly, I don't want to poll some boxes as often as others, and I want to control the time when the poll happens. The latter being the reason I haven't used daemon mode, but a cron job from a user account. There's also no need for root to pick up my mail for me (different story if you set up a family fetchmail, but even there, each member could run their own fetchmail the way they want - all depends on what's desired). Running fetchmail via cron has the downside that it doesn't warn if mails haven't been retrieved because they were larger than allowed (had 2 sitting at the ISP for 2 months before I noticed). Studying the man page gives that fetchmail uses the same exit code for "no mail retrieved because there wasn't any" and "some mail not retrieved because it was too big". This is seriously deficient. I ended up writing a wrapper script (yet one more) which looks at the fetchmail output, and mails/logs warnings. I had the script anyway for logging and safety-catch purposes, if I had known how long it would take to add debugging and notification capabilities I'd have looked for a better solution. Definitely not newbie territory (locking issues!!). I'd be willing to hand out copies if anyone's interested nonetheless, to save others some time. Ah yes, one more reason for the script was that I don't want fetchmail to deliver locally via localhost:25 (it jambles the order of emails, and there's not really any need to involve the local MTA anyway), piping it into procmail is just fine. Next I'd investigate running fetchmail in daemon mode as $USER, and still get the behaviour I want. I guess I'm just never satisfied with the default-behaviour of software... hence my question how you were running yours, but it seems a bit like you haven't dug deep enough to reach the problem-layer. > Second I copied one of the scripts in /etc/init.d and modified it to run > fetchmail. It is run from /etc/rc.d/rc.local using, This is distro-specific, so I won't comment, but the method is correct. Volker -- Volker Kuhlmann is possibly list0570 with the domain in header http://volker.dnsalias.net/ Please do not CC list postings to me.
