Tag Archive for 'getmail'

Switching from fetchmail to getmail4

It seems to me that the fecthmail shipped with Edgy is rather buggy so I’ve just switched to getmail4.

The configuration file to fetch emails from a POP3S server and pass them to procmail is:

[retriever]
type = SimplePOP3SSLRetriever
server = xxxxxx.xxxxx.it
username = xxxxx
password = xxxxxxxxxx

[destination]
type = MDA_external
path = /usr/bin/procmail
# unixform is essential
unixfrom = true

which is saved as ~/.getmail/name1.

The configuration file to fetch emails from a POP3 server and store them in a Mboxrd file is:

[retriever]
type = SimplePOP3Retriever
server = xxxxxx.xxxxx.it
username = xxxxx
password = xxxxxxxxxx

[destination]
type = Mboxrd
path = /home/carlo/Mail/name2

which is saved as ~/.getmail/name2.

Don’t forget to chmod 700 ~/.getmail. Finally, to fetch them all I wrote a simple script which is basically a sequence of

getmail -a -d -v -r name1
getmail -a -d -v -r name2

If you enjoyed this post, make sure you subscribe to my RSS feed!