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

Procmail setup problem



Hi,

i was trying to setup procmail to store incoming e-mails to different
files in my home directory, but, procmail write all my incoming emails
to the same file, the "mbox" file.
I can not understand why?


My procmail config file look like so:

----------------------------------------------------------------------

PATH=$HOME/bin:/usr/bin:/bin:/usr/local/bin:.
MAILDIR=$HOME/Mail      
DEFAULT=$MAILDIR/mbox
LOGFILE=$MAILDIR/Procmail_log_from
LOCKFILE=$HOME/.lockmail

....
cut
....



:0:                             # Anything from Bugtraq
* ^To.bugtraq@securityfocus.com
bugtraq

....
cut
....

:0:
* ^To:.*debian-user
*  Cc:.*debian-user
${HOME}/Mail/debian-user


....
cut
....

# Accept all the rest to your default mailbox
:0:
${DEFAULT}

-------------------------------------------------------------------------


To perform a basic step of troubleshoting, I configured the verbose log
in ".procmailrc" with the statements:


----------------------
...
VERBOSE=yes
LOGABSTRACT=all
...
----------------------

I retreived e-mails with fetchmail and when procmail starts to process
them I saw the output below.
It seem that I configured procmail filter to process the e-mails
correctly......but even if he matched the emails, it store them to the
default file, the mbox.


------------------------------------------------------------------------------------
procmail: Unlocking "/home/milos94/.lockmail"
procmail: [20786] Thu Aug 26 18:41:11 2004
procmail: Assigning "LOGABSTRACT=all"
procmail: No match on "^To.bugtraq@securityfocus.com"
procmail: No match on "^To.gnupg-devel@gnupg.org"
procmail: No match on "^To_nmap-dev@insecure.org"
procmail: No match on "^To.nmap-hackers@insecure.org    # Anything from
namp-hacker"
procmail: No match on "^To.rsbac@rsbac.org              # Anything from
rsbac"
procmail: Match on "^To:.*debian-user"
procmail: No match on "Cc:.*debian-user"
procmail: No match on "^To:.*reiserfs-list@namesys.com"
procmail: No match on "^To.snort-sigs@lists.sourceforge.net"
procmail: No match on "^To.Snort-users@lists.sourceforge.net"
procmail: Locking "/home/milos94/Mail/mbox.lock"
procmail: Assigning "LASTFOLDER=/home/milos94/Mail/mbox"
procmail: Opening "/home/milos94/Mail/mbox"
procmail: Acquiring kernel-lock
procmail: Unlocking "/home/milos94/Mail/mbox.lock"
procmail: Notified comsat: "milos94@6876203:/home/milos94/Mail/mbox"
>From bounce-debian-user=condor_rl=libero.it@lists.debian.org  Thu Aug 26
18:41:11 2004
 Subject: WARNUNG -  GroupShield-Ticket Nr.
OA80_1093534209_ZPCEXCHANGE_1 w
  Folder:
/home/milos94/Mail/mbox                                          6543
procmail: Unlocking "/home/milos94/.lockmail"
------------------------------------------------------------------------------------------


Any ideas??


thk
Lore





Reply to: