postfix/script

Discussion in 'Server Operation' started by hotchilli, Jun 30, 2006.

  1. hotchilli

    hotchilli New Member

    Could this script be run for utilsing the infomation mentioned in post thread:

    http://www.howtoforge.com/forums/showthread.php?t=5256



    # vim: set ts=4 shiftwidth=4:

    SHELL=/bin/bash
    PMDIR=$HOME/procmail
    LOGFILE=$PMDIR/pmlog

    # To insert a blank line between each message's log entry,
    # uncomment next two lines (this is helpful for debugging)
    ## LOG="
    ## "

    # Set to yes when debugging; default is no
    #VERBOSE=yes

    MAILDIR=$HOME/Mail # Make sure this directory exists!

    #INCLUDERC=$PMDIR/rc.testing

    :0fw
    | /usr/bin/spamassassin

    :0
    * ^X-Spam-Flag: YES
    spam/

    :0
    * ^Delivered-To: mail2news_munge@mydoamin\.com
    | ~mail2news/bin/multipost -M

    :0
    * ^Delivered-To: mail2news_nospam@mydomain\.com
    | ~mail2news/bin/multipost -m

    :0
    * ^Delivered-To: mail2news@mydomain\.com
    | ~mail2news/bin/multipost


    Hotchilli
     
  2. falko

    falko Super Moderator ISPConfig Developer

    I don't know this mail2news tool, but make sure
    Code:
    MAILDIR=$HOME/Mail # Make sure this directory exists!
    is correct.
    I think it should be
    Code:
    MAILDIR=$HOME/Maildir # Make sure this directory exists!
    but I'm not sure...
     

Share This Page