[Mimedefang] MIMEDefang 2.34-BETA-4 or a patch for 2.33 fixed Received: problem
David F. Skoll
dfs at roaringpenguin.com
Tue May 27 16:20:01 EDT 2003
Hi,
There is in fact a bug in the way MIMEDefang hands off a Received: header
to SpamAssassin.
You can either download 2.34-BETA-4 from
http://www.mimedefang.org/node.php?id=1 or apply this patch to 2.33 and
rebuild 2.33:
--- mimedefang.pl.in.OLD Tue May 27 16:15:10 2003
+++ mimedefang.pl.in Tue May 27 16:15:40 2003
@@ -4974,7 +4974,12 @@
# Synthesize a "Return-Path" and "Received:" header
my @sahdrs;
push (@sahdrs, sprintf("Return-Path: %s\n", $Sender));
- push (@sahdrs, synthesize_received_header());
+ my $hdr;
+ $hdr = synthesize_received_header();
+ my $line;
+ foreach $line (split(/\n/, $hdr)) {
+ push (@sahdrs, "$line\n");
+ }
unshift (@msg, @sahdrs);
Please note that 2.34-BETA-4 includes a lot of stuff that isn't ready
yet and is #ifdef'd out (the FFR_SENDMAIL_TCP_MAP). Don't ask me what
it's for; all will be revealed. :-)
It also drops support for non-multiplexor mode.
Regards,
David.
=====================================================================
Changelog for 2.34-BETA-4 follows:
2003-05-27 David F. Skoll <dfs at roaringpenguin.com>
* mimedefang.pl.in (spam_assassin_mail): Fix the way the
synthesized Received: header was handed to SpamAssassin.
* configure.in: Changed default location of quarantine directory
to /var/spool/MD-Quarantine. *** NOTE INCOMPATIBILITY ***
Use --with-quarantinedir=/var/spool/MIMEDefang if you want the
old behaviour.
* mimedefang.c: Removed support for non-multiplexor operation.
It is now mandatory to use the multiplexor.
*** NOTE INCOMPATIBILITY ***
2003-05-26 David F. Skoll <dfs at roaringpenguin.com>
* configure.in, Makefile.in, mimedefang.pl.in, README.SOPHIE:
Improved Sophie support, courtesy of Jason Englander.
2003-05-25 David F. Skoll <dfs at roaringpenguin.com>
* Makefile.in: "make install" target obeys DESTDIR (as well
as former RPM_INSTALL_ROOT) to change installation root.
2003-05-21 David F. Skoll <dfs at roaringpenguin.com>
* MIMEDefang 2.34-BETA-3
* mimedefang.pl.in: Check for socket errors when talking to
daemonized virus scanners like Sophie, Trophie, Clamd and
CarrierScan, and return tempfail on error. Problem noted
by Chris Stromsoe and Dave Shrimpton.
(relay_is_blacklisted): Rather than just returning true or
false, we return the actual DNS lookup value (like "127.0.0.2")
if a host is in a DNS-based blacklist. Feature requested by
Matthew Hall.
* Tempfail codes default to 451/4.3.0 rather than 450/4.7.1.
These new codes are more consistent and in line with
RFCs 2821 and 1893.
2003-05-14 David F. Skoll <dfs at roaringpenguin.com>
* configure.in: Because of SCO's disgusting behaviour,
MIMEDefang will refuse to build on SCO UNIX or SCO Linux
unless you supply the --enable-running-on-scummy-sco configure
option.
2003-05-12 David F. Skoll <dfs at roaringpenguin.com>
* mimedefang-filter.5.in: Documented md_syslog. md_syslog
is now an officially-supported API function.
* mimedefang.c (mfconnect): Do not use strncpy in
potentially-unsafe way (Dirk Mueller)
* mimedefang.c, mimedefang.pl.in: Allow Perl filters to specify
SMTP reply codes (4xx, 5xx) and DSN status codes (4.x.y, 5.x.y)
(Suggested by user "jkohan" on the MIMEDefang Web site.)
* mimedefang.pl.in: md_check_against_smtp_server returns the
same SMTP reply code and DSN status as the forwarding server
(rather than its own codes on failure.)
2003-04-25 David F. Skoll <dfs at roaringpenguin.com>
* Version 2.33 RELEASED
More information about the MIMEDefang
mailing list