• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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