I would suggest using fetchmail (with mda
option) instead of getmail.
getmail configuration: ~/.getmail/getmailrc
- deliver via procmail
To deliver with an external MDA:
[destination] type = MultiDestination destinations = ("[procmail-as-bob]", ) [procmail-as-bob] type = MDA_external path = /path/to/procmail arguments = ('~bob/.procmailrc', '-f', '%(sender)') user = bob
procmail configuration with spamassassin/spamc: ~/.procmailrc
# default/fallback delivery destination DEFAULT=Maildir/ # rewrite message using spamassassin or spamc # :spamassassin.lock lock is not necessary for spamc # (it makes some sense for spamassassin) :0fw: spamassassin.lock * < 256000 | spamc # Mails with a score of 15 or higher are almost certainly spam (with 0.05% # false positives according to rules/STATISTICS.txt). Let's put them in a # different mailbox. (This one is optional.) # locking (trailing : ) is not necessary for deliveries to maildir :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Maildir/almost-certainly-spam/ # All mail tagged as spam (eg. with a score higher than the set threshold) # is moved to "probably-spam". # locking (trailing : ) is not necessary for deliveries to maildir :0: * ^X-Spam-Status: Yes Maildir/probably-spam/