Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fetchamil deamon problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Tue Feb 10, 2004 1:37 am    Post subject: Fetchamil deamon problem Reply with quote

Hi all
not sure if it goes here but it concerns email so it's technically network.

I use fetchmail to fetchmail from 3 differnt servers and deliver it to my local account so i can get it from my server via imap.

THe problem is this: I got a rather fancy /root/.fetchmailrc file. Generally fetchamil is then started like so:
fetchmail -d 600 --smtpname garbz@localhost -a

The problem is that atm i need to log in every time the server goes down and specifically run this command. If i put it in /etc/conf.d/local.start then i get errors such as no server specified etc. because it's not run as root and it doesn't read /root/.fetchmailrc

Are there any other places i can put this so it does get read. Or another way to launch fetchmail as root
_________________
Every begining is another begining's end.
Back to top
View user's profile Send private message
thompsonmike
Apprentice
Apprentice


Joined: 19 Jan 2004
Posts: 275
Location: Bath UK

PostPosted: Tue Feb 10, 2004 2:09 am    Post subject: Reply with quote

Try

/etc/init.d/fetchmail start

To have it run at boot

rc-update add fetchmail default

If you need to modify the start just change the fetchmail script in /etc/init.d
_________________
Thanks


Michael..
Back to top
View user's profile Send private message
Garbz
Apprentice
Apprentice


Joined: 02 Jul 2003
Posts: 260
Location: Brisbane, Australia

PostPosted: Wed Feb 11, 2004 3:22 am    Post subject: Reply with quote

ok thanks for stating the obvious i completely missed that.

I merged my config from my redhat box and redhat didn't have a fetchmail script at boottime.

the -f option is exactly what i was looking for thanks!
_________________
Every begining is another begining's end.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum