On Wednesday 08 October 2003 12:30 pm, Praedor Atrebates wrote:
> Thanks all, I have it working in a desireable fashion now.
>
> I am once again using fetchmail + postfix and, now, spamassassin to deal
> with my incoming mail.  Procmail is properly directing a subset of my mail
> to my mailbox directly and passing the rest through spamassassin - and a
> 30+ second delay for spamassassin processing isn't a problem.  Procmail is
> also /dev/nulling all emails identified as spam so I never have to see any
> of it. Nice.
>
> A new question now.  Fetchmail gave me a bit of a fit at first.  I ran
> fetchmailconf as user and then ran fetchmail as user and this was fine,
> except I'd rather not have to start fetchmail myself every time I start my
> laptop up - I'd rather have it run as a daemon.  I DID get the fetchmail
> daemon working eventually, but only after manually editing
> /etc/fetchmailrc. As root or user, all running fetchmailconf would do is
> create a
> ~/.fetchmailrc file while daemon mode requires /etc/fetchmailrc.  I tried
> doing it from webmin as well to no avail.  In the end, I copied my
> ~/.fetchmailrc file to /etc/fetchmailrc so that I could run the fetchmail
> daemon.  How does one normally setup the daemon instead of running personal
> instances of fetchmail, that is, how is /etc/fetchmailrc normally created? 
> I am assuming that I should not have to do what I did above and copy my
> personal .fetchmailrc to /etc/fetchmailrc.
>

The init script for fetchmail normally tries to use /etc/fetchmailrc as a 
systemwide default fetchmail configuration file.  You can however, change 
this to point to wherever you want it to draw from.  So, on the run line, 
simply add the -f option so that the run command looks like:

daemon fetchmail -d 180 -f /root/.fetchmailrc

or if running as user

daemon fetchmail -d 180 /home/user/.fetchmailrc

although once you get the rc file setup, I am not sure why you would want to 
change it.

The init script, if you want to change it is  /etc/init.d/fetchmail

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to