View previous topic :: View next topic |
Author |
Message |
Dralnu Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11964815134611c782ebb2b.jpg)
Joined: 24 May 2006 Posts: 1919
|
Posted: Sun Mar 09, 2008 12:01 am Post subject: configuring fetchmail to run as a daemon |
|
|
I'm trying to get fetchmail to run as a daemon from boot, and so far I have gotten it where it seems to opperate alright as user without any command line options, but I'm having a little trouble figuring the best way to have it run at boot.
I was looking through the shadow file, and ran across a user named "nobody" and one named "guest", neither of which I can think of the reason for their being there (I'm checking to see if they are listed in the default shadow file, just in case), but I'm wondering if there would be a way to write an initscript to run all of this sudo $LOW_LEVEL_USER fetchmail -f /etc/fetchmailrc, or what kind of problems I may have doing such.
I also would like some info on making sure the config will work as expected.
Code: | set syslog
poll mailserver.com protocol imap port 000
user "someone@something.net" password "foobar" is user ssl mda "procmail -d %T" |
What I want it to do is fetch the email from the server, run it through procmail, and deliver it to user, all while running as one of the prior listed useless users. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
yabbadabbadont Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/13361939844cd4b5d53ebe4.jpg)
Joined: 14 Mar 2003 Posts: 4791 Location: 2 exits past crazy
|
Posted: Sun Mar 09, 2008 2:12 am Post subject: |
|
|
Is there some reason why it wont work if run from the system crontab? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Dralnu Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/11964815134611c782ebb2b.jpg)
Joined: 24 May 2006 Posts: 1919
|
Posted: Sun Mar 09, 2008 5:06 am Post subject: |
|
|
I was wanting to try to run it as a daemon. I was thinking of asking what the diffrence between the two would be, but after a little looking into the fetchmail docs, doing it that way should be slightly faster (only reads the config once), plus I've done it via crontab before, and just want to try doing it in daemon mode. _________________ The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|