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

procmail



Hi,
I got fetchmail and exim running with a pop3 dialup isp and the
mail is going into /var/mail/fetchmail. However, procmail doesn't
seem to do anything with it. Is exim meant to start procmail?

This is in /etc/exim/exim.conf:

# This transport is used for procmail

procmail_pipe:
  driver = pipe
  command = "/usr/bin/procmail"
  return_path_add
  delivery_date_add
  envelope_to_add
# check_string = "From "
# escape_string = ">From "
  suffix = ""

# This director runs procmail for users who have a .procmailrc file

procmail:
  driver = localuser
  transport = procmail_pipe
  require_files = ${local_part}:+${home}:+${home}/.procmailrc:+/usr/bin/procmail
  no_verify

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

This is in ~/.procmailrc:

PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Mail              # you'd better make sure it exists
DEFAULT=$MAILDIR/mbox           # Things that don't match end up here
LOGFILE=$MAILDIR/procmail.log   # recommended
LOCKFILE=$HOME/.lockmail

:0 Whc: msgid.lock
| formail -D 8192 msgid.cache   #prevent duplicate messages

:0 a:
duplicates         #but store them instead of deleting them

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

The folder ~/Mail/mbox doesn't appear.



Reply to: