# File: getmailrc-something permissions: rw-r--r-- resides in ~/.getmail # getmail -d --rcfile getmailrc-something #is the command to lanch getmail using this file #for multiple accounts run: getmail -d --rcfile getmailrc-smth1 --rcfile getmailrc-smth2 [options] verbose = 1 delete = 0 message_log = ~/.getmail/log [retriever] type = SimplePOP3Retriever server = mail.something.com # From where you plan to get your mails username = yourusername password = yourpassword #read: http://pyropus.ca/software/getmail/faq.html#faq-integrating-clamav #check out the correct path to clamscan [filter-1] type = Filter_classifier path = /usr/bin/clamdscan arguments = ("--stdout", "--disable-summary", "-") exitcodes_drop = (1, ) #Antispam labeling by Spamassassin. #http://pyropus.ca/software/getmail/faq.html#faq-integrating-spamassassin #check out the correct path to spamc [filter-2] type = Filter_external path = /usr/bin/spamc arguments = ("-s 10000", ) #Filtering spam messages with slocal #check out the correct path to slocal on your system. # use "whereis slocal" or "locate slocal" for that. #If you plan to use a different mail format like mbox or maildir, change "slocal" to "procmail". #But first you need to install procmail: apt-get install procmail #I won't describe the process of configuration of procmail here. There are tons of information #on the internet. Google. [destination] type = MDA_external path = /usr/lib/mh/slocal