Re: Procmail filtering

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





jdow wrote:

From: "John Summerfied" <debian@xxxxxxxxxxxxxxxxxxxxxx>

Lovell Mcilwain wrote:

Hello all,

I seem to be having a bit of trouble getting procmail to filter e mails to individual mailboxes on my FC4 machine.

I am using fetchmail to poll my email to my machine and I want to use procmail rather my then my mail client to filter my e mail. I don't have many mailboxes but I change machines often enough that its hard to keep updating my mail client filters.

When I tail my mail.log file it does show that .fetchmail is looking at my .forward file in my home directory so I am assuming that there is an issue with the syntax of my .procmailrc file. Im new to using procmail so I copied and pasted some procmail examples into my .procmailrc file and gave it a whirl but no luck.

Any help is appreciated..


Here are what I have in my files:

.forward:


Start by removing .forward, and use the MTA (sendmail, postfix or whatever).

They're set up by default to invoke procmail.

The .forward has been removed.


He specifically said he was using fetchmail.

So here is the fetchmail -> procmail part of his picture.
===8<--- For account jdow
defaults mda "/usr/bin/procmail -d jdow"
set syslog
set postmaster ""
set no bouncemail
set no spambounce
set properties ""
# following is for debug.
#set logfile fetchmail_el.log
poll smtp.earthlink.net with proto POP3
  user 'jdow' there with password 'ASDFGHJKL'
  is 'jdow@xxxxxxxxxxx' here options pass8bits
  smtpaddress '      '
===8<---

I have edited my .fetchmailrc file to include the mda default Im not sure what the purpose of setting the no bouncemail or no spambounce or properties. I also enabled the logfile so that I can debug if necessary.

Then you have the .procmailrc to setup.

===8<---
#############################################################################
# Necessary generic definitions
#############################################################################
DROPPRIVS=yes
VERBOSE=yes
LOGNAME=procmail

# Example folder diversion with clone so email also appears in main folder
:0c: clone.lock
* ^List-Id: .*(spamassassin\.apache.\org)
$HOME/mail/rawmbox

# Example folder diversion without clone. I'm indecisive about the real
# destination for the UOL crap.
:0:
* ^From: AntiSpam UOL <.*@uol.com.br>
#/dev/null
/$HOME/mail/uol_crap
===8<--- And so forth.

{^_^}



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux