1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice

integrate procmail into qmail mail delivery?

Discussion in 'Plesk for Linux - 8.x and Older' started by insel, Feb 24, 2005.

  1. insel

    insel Guest

    0
     
    Hello.

    Anybody integrated procmail into the qmail mail delivery process?

    At the moment I'd prefer a procmail integration for single mail users. With Spamassassin (SA) enabled you have a file /var/qmail/mailnames/domain.tld/user/.qmail with

    if [ -z "$SA" ]; then
    export SA=1;
    /usr/local/psa/bin/psa-spamc -f -u user@domain.tld -U /tmp/spamd_full.sock > spamcheck$$;
    /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "" "" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$;
    retval=$?;
    rm -f spamcheck$$;
    [ $retval = 0 ] && exit 99;
    exit $retval;
    fi

    (one line within .qmail).

    If qmail-local is sucessfull, this statement will exit with error-code 99, which means, that no further lines of .qmail are proceeded (see dot-qmail(5) ).

    spamcheck$$ is the complete mail with SA-Headers.
    $USER = popuser
    $HOME = /var/qmail/mailnames/domain.tld/user
    $LOCAL = [number]-user
    $HOST = domain.tld
    $SENDER = [sender]
    $DEFAULT = [empty]

    Any hints for an integration of procmail (after psa-spamc) there? Some experienced qmail-users here?

    insel
     
Loading...