Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
configuring fetchmail to run as a daemon
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
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Sun Mar 09, 2008 12:01 am    Post subject: configuring fetchmail to run as a daemon Reply with quote

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
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Sun Mar 09, 2008 2:12 am    Post subject: Reply with quote

Is there some reason why it wont work if run from the system crontab?
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Sun Mar 09, 2008 5:06 am    Post subject: Reply with quote

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
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