Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Feb 2002 15:50:05 +0100 (CET)
From:      Dominik Brettnacher <domi@saargate.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34833: p5-Mail-SpamAssassin patch for local mail delivery
Message-ID:  <200202111450.g1BEo5I40600@dominik.saargate.de>

next in thread | raw e-mail | index | archive | help

>Number:         34833
>Category:       ports
>Synopsis:       p5-Mail-SpamAssassin patch for local mail delivery
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 07:00:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dominik Brettnacher
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD dominik.saargate.de 4.5-STABLE FreeBSD 4.5-STABLE #0: Sun Feb 3 16:19:53 CET 2002 domi@dominik.saargate.de:/usr/obj/usr/src/sys/DOMINIK i386


>Description:
	By using SpamAssassin in a certain way, it will deliver mail
	to the local spool directory. However, the hard-coded default
	directory is "/var/spool/mail", which is not suitable for
	FreeBSD systems. Consequently, local mail delivery will not work
	if this directory is not overridden by an environment variable.

>How-To-Repeat:
	Try to use "/usr/local/bin/spamassassin" as a "filter" in a
	forward file. As there is no MAIL variable used, delivery
	will probably fail.

>Fix:
diff -urN /usr/ports/mail/p5-Mail-SpamAssassin/files/patch-aa p5-Mail-SpamAssassin/files/patch-aa
--- /usr/ports/mail/p5-Mail-SpamAssassin/files/patch-aa	Thu Jan  1 01:00:00 1970
+++ p5-Mail-SpamAssassin/files/patch-aa	Mon Feb 11 15:43:14 2002
@@ -0,0 +1,20 @@
+--- lib/Mail/SpamAssassin/NoMailAudit.pm.orig	Mon Feb 11 15:42:13 2002
++++ lib/Mail/SpamAssassin/NoMailAudit.pm	Mon Feb 11 15:42:23 2002
+@@ -302,7 +302,7 @@
+   my $file = shift;
+ 
+   # some bits of code from Mail::Audit here:
+-  $file ||= $ENV{'MAIL'} || "/var/spool/mail/".getpwuid($>);
++  $file ||= $ENV{'MAIL'} || "/var/mail/".getpwuid($>);
+ 
+   if (exists $self->{accept}) {
+     return $self->{accept}->();
+@@ -321,7 +321,7 @@
+ 
+     if (!defined $gotlock) {
+       # dot-locking not supported here (probably due to file permissions
+-      # on the /var/spool/mail dir).  just use flock().
++      # on the /var/mail dir).  just use flock().
+       $nodotlocking = 1;
+     }
+ 
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202111450.g1BEo5I40600>