On Monday 20 October 2003 12:37 pm, Praedor Atrebates wrote: > I suppose I could bring the /etc/procmailrc to .procmailrc in my home > directory. As I am the only user on my system, I didn't see much need to > setup individual procmail and fetchmail settings. Besides which, I HAD to > do the global setup for fetchmail (and thus defaulted to doing it with > procmail too) because I wanted to run fetchmail as a daemon rather than as > a cron job. If run as a daemon, it will not use ~/.fetchmailrc and will > complain and error out if there isn't an /etc/fetchmailrc.
This is not totally correct. I currently run fetchmail as a daemon and it uses /root/.fetchmailrc as its configuration file. I do this by altering the startup script to point fetchmail to this configuration file rather than the /etc/fetchmailrc file which is the default (only of the included startup script). Making the change is trivial and insures compatibility with Fetchmailconf. You can also edit the modules for Webmin to point at the correct config file so that you will be compatible there as well. I do this only because the fetchmail author produced fetchmailconf so it would appear that his preferences is for the /root/.fetchmailrc location. I want to make sure that if I upgrade later on, I will already be compatible with whatever settings he is likely to use. > In any case, I suppose I feared that procmail would do the same thing and > complain if there wasn't an /etc/procmailrc (and having a .procmailrc in my > home directory would essentially be redundant). > > The /etc/procmailrc file is setup specifically for me. Can I simply get > away with moving /etc/procmailrc to $HOME/.procmailrc (and change the perms > to be for me rather than root)? Procmail wont complain if there is no > /etc/procmailrc file the way fetchmail does...or...if procmail is called > from the fetchmail daemon (not a user-initiated cron job) will procmail > still use $HOME/.procmailrc? If procmail runs as you, and needs to access some file that it does not have permissions for, you will get additional errors and some of your recipes may not work. If it is working now, why would you change it? -- Bryan Phinney Software Test Engineer
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
