View previous topic :: View next topic |
Author |
Message |
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Tue Feb 10, 2004 1:37 am Post subject: Fetchamil deamon problem |
|
|
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 |
|
|
thompsonmike Apprentice
Joined: 19 Jan 2004 Posts: 275 Location: Bath UK
|
Posted: Tue Feb 10, 2004 2:09 am Post subject: |
|
|
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 |
|
|
Garbz Apprentice
Joined: 02 Jul 2003 Posts: 260 Location: Brisbane, Australia
|
Posted: Wed Feb 11, 2004 3:22 am Post subject: |
|
|
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 |
|
|
|