• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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