Home › Forums › OS X Server and Client Discussion › Mail › Fetchmail and StartupItems
- This topic has 4 replies, 1 voice, and was last updated 19 years, 6 months ago by
Anonymous.
-
AuthorPosts
-
February 24, 2005 at 12:18 pm #360815
viKKing
ParticipantWell, I configured built-in (10.3.8) Fetchmail to retrieve our mails for months now and it does it well.
The only gripes I have is that I can’t have it running at boot with a StartupItems or WORST by hand. The only way to start it working is using Webmin and performing a server check (button in the Fetchmail tabs). I don’t see what Webmin does that I don’t.When typing command /usr/bin/fetchmail the only respons I’m returned is that daemon is starting or awakened, but nothing happens at all.
The Fetchmail FAQ has been of no help.
I really need to fix that before leaving this company for a new one.
Thanks.
/viKKIng
May 15, 2005 at 1:35 am #361682Anonymous
GuestI had it running at boot with a startupitems entry, but this seems to have broken under Tiger… Has anyone else seen this?
May 21, 2005 at 10:09 am #361733Anonymous
GuestI have put the content below (specific for my situation, but you will get the picture, I guess) in a file named org.catb.fetchmail in
/Library/LaunchDaemons/
Now fetchmail starts automatically.
Label
org.catb.fetchmail
OnDemand
ProgramArguments
/usr/bin/fetchmail
-a
-d
1800
-f
/etc/fetchmailrc
May 21, 2005 at 10:14 am #361734Anonymous
Guestahum, xml code not shown…
Now in text mode:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.catb.fetchmail</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/fetchmail</string>
<string>-a</string>
<string>-d</string>
<string>1800</string>
<string>-f</string>
<string>/etc/fetchmailrc</string>
</array>
</dict>
</plist>The file name should end with .plist I think, so org.catb.fetchmail.plist works for sure.
September 30, 2005 at 3:09 pm #363422Anonymous
GuestI now also have a .plist file starting fetchamail. Oddly, it seems to have appeared automatically when I did a reinstall (not upgrade – one of the other options).
This didn’t really work that well, as I have my fetchamail running as a daemon that polls every 2 minutes. So, I have a tiny script that does a sleep 5 before it runs fetchmail. That gets past the launchd requirememnt that it not run as a daemon or exit, etc.
See http://adrinux.perlucida.com/ for lots of useful stuff on launchd and http://developer.apple.com/macosx/launchd.html and http://developer.apple.com/documentation/MacOSX/Conceptual/BPSystemStartup/index.html
That should get you going!
G. -
AuthorPosts
- You must be logged in to reply to this topic.
Comments are closed