spamassassin-dev December 2011 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 6717] New: Add option -X to turn EX_UNAVA

[Bug 6717] New: Add option -X to turn EX_UNAVAILABE into EX_TEMPFAIL

From: <bugzilla-daemon_at_nospam>
Date: Tue Dec 06 2011 - 22:58:42 GMT

             Bug #: 6717
           Summary: Add option -X to turn EX_UNAVAILABE into EX_TEMPFAIL
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: spamc/spamd
    Classification: Unclassified

Created attachment 5014
Patch to add -X option


I use spamc as a simple delivery filter with postfix like this in

dovecot-sa unix - n n - - pipe
  flags=ODRhu user=vmail:mail argv=/usr/bin/spamc -x -X -u ${recipient} -e
/usr/lib/dovecot/deliver -f ${sender} -a ${recipient} -d ${user}@${nexthop}

I was unhappy with how postfix would bounce mails when spamd wasn't running and
spamc was run with -x to prevent unfiltered mail to come trough.

When spamc returns EX_TEMPFAIL instead of EX_UNAVAILABLE, postfix will queue
the mail and try to deliver it later.

Please be aware that I don't have much recent experience with C-code and none
with the spamassassin code as such but the attached patch works well for me.

I would appreciate it if something like this could be added to spamassassin.

-- Configure bugmail: ------- You are receiving this mail because: ------- You are the assignee for the bug.