Package: sa-exim
Version: 4.2.1-14
Severity: minor
Tags: patch

As reported by others (#687149), installing sa-exim causes spamassassin's
daily cronjobs to emit warnings, which are sent to root. e.g.

/etc/cron.daily/spamassassin:
Sep  8 07:33:57.584 [8468] warn: Couldn't get Connecting IP header 
X-SA-Exim-Connect-IP for message <1410176036@lint_rules>, skipping greylisting 
call Couldn't get Connecting IP header X-SA-Exim-Connect-IP for message 
<1410176042@lint_rules>, skipping greylisting 

While I currently have spamassassin 3.4.0 from backports intalled, it affects
the stable 3.3.2 the same way

The attached patch makes the greylisting function return immediately if 
spamassassin is linting. A more conservative approach would be to only
downgrade the warning message during lint (as the spamassassin FreeMail
plugin does)
-- System Information:
Debian Release: 7.6
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages sa-exim depends on:
ii  debconf [debconf-2.0]                        1.5.49
ii  exim4-daemon-heavy [exim4-localscanapi-1.1]  4.80-7
ii  libc6                                        2.13-38+deb7u4
ii  spamc                                        3.4.0-2~bpo70+1

Versions of packages sa-exim recommends:
ii  perl  5.14.2-21+deb7u1

Versions of packages sa-exim suggests:
ii  spamassassin  3.4.0-2~bpo70+1

-- Configuration Files:
/etc/cron.d/greylistclean changed:
33 * * * * debian-spamd [ -x /usr/share/sa-exim/greylistclean ] && 
/usr/share/sa-exim/greylistclean

/etc/exim4/sa-exim.conf changed:
SAEximDebug: 1
SAspamcpath: /usr/bin/spamc
SAspamcHost: 127.0.0.1
SAspamcPort: 783
SAEximRunCond: ${if and {{def:sender_host_address} {!eq 
{$sender_host_address}{127.0.0.1}} {!eq {$sender_host_address}{::1}}}}
SAmaxbody: 256000
SATruncBodyCond: 0
SARewriteBody: 0
SAPrependArchiveWithFrom: 1
SAmaxarchivebody: 20971520
SAerrmaxarchivebody: 1073741824
SAmaxrcptlistlength: 8000
SAaddSAEheaderBeforeSA: 1
SAtimeoutsave: /var/spool/sa-exim/SAtimeoutsave
SAtimeoutSavCond: 1
SAerrorsave: /var/spool/sa-exim/SAerrorsave
SAerrorSavCond: 1
SAtemprejectonerror: 0
SAteergrubetime: 900
SAteergrubeSavCond: 0
SAteergrubesave: /var/spool/sa-exim/SAteergrube
SAteergrubeoverwrite: 1
SAdevnull: 20.0
SAdevnullSavCond: 0
SAdevnullsave: /var/spool/sa-exim/SAdevnull
SApermreject: ${if and { {!eq {$sender_host_address}{128.2.200.12}} {!eq 
{$sender_host_address}{128.2.204.218}} {!eq 
{$sender_host_address}{128.2.235.26}} } {6.0}{9999}}
SApermrejectSavCond: 0
SApermrejectsave: /var/spool/sa-exim/SApermreject
SAtempreject: ${if and { {!eq {$sender_host_address}{128.2.200.12}} {!eq 
{$sender_host_address}{128.2.204.218}} {!eq 
{$sender_host_address}{128.2.235.26}} } {3.0}{9999}}
SAtemprejectSavCond: 0
SAtemprejectsave: /var/spool/sa-exim/SAtempreject
SAtemprejectoverwrite: 1
SAgreylistiswhitestr: GREYLIST_ISWHITE
SAgreylistraisetempreject: 9.0
SAspamacceptsave: /var/spool/sa-exim/SAspamaccept
SAspamacceptSavCond: 0
SAnotspamsave: /var/spool/sa-exim/SAnotspam
SAnotspamSavCond: 0
SAmsgteergrubewait: Wait for more output
SAmsgteergruberej: Please try again later
SAmsgpermrej: Rejected
SAmsgtemprej: Please try again later
SAmsgerror: Temporary local error while processing message, please contact 
postmaster.


-- debconf information:
  sa-exim/purge_spool: false
--- Greylisting.pm.orig	2014-09-08 10:47:05.000000000 -0400
+++ Greylisting.pm	2014-09-08 10:38:24.000000000 -0400
@@ -63,6 +63,10 @@
     my $dontcheckscore;
     my %option;
 
+    if ($self->{main}->{lint_rules}) {
+       Mail::SpamAssassin::Plugin::dbg("GREYLISTING: disabled while linting");
+       return 0;
+    }
     Mail::SpamAssassin::Plugin::dbg("GREYLISTING: called function");
 
     $optionhash  =~ s/;/,/g;

Reply via email to