Skrevet av Emne: Procmail config  (Lest 2234 ganger)

ATC

  • Gjest
Procmail config
« på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • How to configure procmail @ atc.no



    ATC

    • Gjest
    [Solved] Procmail config
    « Svar #1 på: 27. ſeptember 2008, 18:24 pm »
  • [applaud]0
  • [smite]0
  • ------------sample .procmailrc file-----------
    PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin #to enable spawning of procmail when new mail arrives
    #LOGABSTRACT=all # debug logging
    #VERBOSE=yes     # verbose logging
    MAILDIR=$HOME/Maildir #path to mail directory
    PMDIR=$HOME/ProcMail #variable - PMDIR
    LOGFILE=$PMDIR/procmail.log #path to logfile

    INCLUDERC=$PMDIR/spam.rc #include rule files

    :0:
    new #mailbox to copy files that don't match any rules
    ----------end sample .procmailrc file---------


    Now, most tutorials nag you about a .forward-file. In our case .qmail should be used instead.

    ----------sample .qmail file------------------
    |IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #USERID
    ----------end sample .qmail file--------------


    example of a filter
    ----------sample /ProcMail/spam.rc------------
    :0
    * ^X-Spam-status:.*yes*
    /dev/null #of course it's not recommended to do this :o)
    ----------end sample /ProcMail/spam.rc--------