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

Re: procmail



Russell Shaw wrote:
Yuhanes Tjandra wrote:

Russell Shaw wrote:

Hi,
I got fetchmail and exim running with a pop3 dialup isp, and
mail goes into /var/spool/mail/russell. 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 = ""


I think so. You must have two file, .forward and .procmailrc in your home directory to activate that.

Take a look at /usr/share/doc/procmail/QuickStart as well as the examples in the Examples folder.


Hi,
I read that. I have in ~/.forward: |/usr/bin/procmail
and 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

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

~/Mail/procmail.log
and
~/Mail/mbox
don't appear.



I have the similar configurations as yours except the .procmailrc.
I can't comment on your .procmailrc since I haven't used the rules before. You can try to comment them out though.

Yuhanes




Reply to: