• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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