• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

integrate procmail into qmail mail delivery?

I

insel

Guest
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 [email protected] -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
 
Back
Top