Package: amavisd-new-milter Version: 1:2.4.2-6.1 Followup-For: Bug #422227 This bug is not amd64-specific -- the build script mistakenly configures the helper programs with the wrong socket location. The first hunk of the attached patch corrects this. The second hunk is ancillary: it makes amavis-milter print the socket name when connecting and if the '-d' argument is provided.
With this patch, I am able to make filtering work with postfix <--> amavis-milter <--> amavisd. The following lines need to be added to /etc/amavis/conf.d/50-user ----------------------------------------------------------------- # This makes amavis socket work with default amavis-milter # otherwise, we'd need a different version to work with AM.PDP # http://sourceforge.net/projects/amavisd-milter/ $interface_policy{'SOCK'} = undef; # When amavis is being a milter, we need to undef $forward_method $forward_method = undef; ----------------------------------------------------------------- -Corey -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.16.29-xen Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages amavisd-new-milter depends on: ii amavisd-new 1:2.4.2-6.1 Interface between MTA and virus sc ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries amavisd-new-milter recommends no packages. -- no debconf information
diff -Naur amavisd-new-2.4.2.orig/debian/rules amavisd-new-2.4.2/debian/rules --- amavisd-new-2.4.2.orig/debian/rules 2007-06-05 00:40:15.000000000 -0500 +++ amavisd-new-2.4.2/debian/rules 2007-06-03 21:59:00.000000000 -0500 @@ -35,7 +35,7 @@ cd helper-progs && ./configure \ --prefix=/usr \ --with-runtime-dir=/var/lib/amavis \ - --with-sockname=/var/lib/amavis/amavisd.sock \ + --with-sockname=/var/run/amavis/amavisd.sock \ --with-user=amavis touch configure-stamp diff -Naur amavisd-new-2.4.2.orig/helper-progs/amavis-milter.c amavisd-new-2.4.2/helper-progs/amavis-milter.c --- amavisd-new-2.4.2.orig/helper-progs/amavis-milter.c 2007-06-05 00:40:15.000000000 -0500 +++ amavisd-new-2.4.2/helper-progs/amavis-milter.c 2007-06-05 00:17:03.000000000 -0500 @@ -705,7 +705,7 @@ sendmail_queueid, strerror(errno)); } if (r >= 0) { - amavis_syslog(DBG_DEBUG, "%s: (mlfi_eom) connect", sendmail_queueid); + amavis_syslog(DBG_DEBUG, "%s: (mlfi_eom) connect to socket: %s", sendmail_queueid, saddr.sun_path); r = connect(sock, (struct sockaddr *) (&saddr), sizeof(saddr)); if (r < 0) amavis_syslog(DBG_FATAL, "%s: (mlfi_eom) failed to connect(): %s",