idoru.be/notes

Manuals, writings and idea's from an techie.

fetchmail LaunchDaemon for macosx

$ vi /Library/LaunchDaemons/local.fetchmail.plist <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>KeepAlive</key> <false/> <key>Label</key> <string>local.fetchmail</string> <key>Program</key> <string>/usr/bin/fetchmail</string> <key>ProgramArguments</key> <array> <string>/usr/bin/fetchmail</string> <string>–fetchmailrc=/Users/<snip>/.fetchmailrc</string> <string>–pidfile=/Users/<snip>/.fetchmail.pid</string> <string>–daemon=1800</string> <string>–nodetach</string> </array> <key>QueueDirectories</key> <array/> <key>RunAtLoad</key> <true/> <key>UserName</key> <string><snip></string> <key>WatchPaths</key> <array/> <key>WorkingDirectory</key> <string>/Users/<snip>/.fetchmail</string> </dict> </plist> $ mkdir /Users/<snip>/.fetchmail $ sudo launchctl load -w /Library/LaunchDaemons/local.fetchmail.plist $ tail -f /var/log/system.log

fetchmail gmail via IMAP to macosx for backup

first, enable IMAP in gmail. $ vi .fetchmailrc if you have a mta running: poll imap.gmail.com protocol IMAP user ‘<snip>‘ there with password ‘<snip>’ is ‘<snip>‘ here options ssl keep sslcertck sslcertpath “/Users/<snip>/.ssl/certs” folder ‘[Gmail]/All Mail’ if not, deliver via procmail to /var/mail…: poll imap.gmail.com protocol IMAP user ‘<snip>‘ there with password ‘<snip>’ is ‘<snip>‘ […]

fetchmail gmail via POP3 to macosx for backup

first, enable POP for all mail in gmail. $ vi .fetchmailrc if you have a mta running: poll pop.gmail.com with proto POP3 and options no dns user ‘<snip>’ there with password ‘<snip>’ is ‘<snip>’ here options ssl keep sslcertck sslcertpath “/Users/<snip>/.ssl/certs” if not, deliver via procmail to /var/mail…: poll pop.gmail.com with proto POP3 and options […]