Ich würde empfehlen, fetchmail (mit mda
Option) anstelle von getmail zu verwenden.
getmail-Konfiguration : ~/.getmail/getmailrc
- Lieferung über procmail
Lieferung mit einem externen 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 Konfiguration mit 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/