getmail, spamassasin and dovecot deliver(LDA)

Checking incoming mail from getmail for spam isn’t hard when you already have spamassasin configured. Here is a sample getmailrc.

[retriever]
type = SimplePOP3Retriever
server = external.mailserver.no
username = uname
password = pword

[filter-spam]
type = Filter_external
path = /usr/bin/spamc

[destination]
type = MDA_external
path = /usr/lib/dovecot/deliver
arguments = ("-d", "luser@seljebu.no")

[options]
delete = true
message_log = /var/log/getmail.log

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>