[Mimedefang] biolerplate before message

2004-08-02 Thread Du Plooy, Ernst

Hi,

Does anyone have an idea how to add a boilerplate before the message
instead of after?  This is for a company that insists that their
disclaimer should be displayed before the message.


___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] md_check_against_smtp_server

2004-08-02 Thread Bill Maidment
Bill Maidment wrote:
Jan Pieter Cornet wrote:
You are testing here against the recipient given by the external
relay. I noticed in the headers below that you are actually forwarding
to [EMAIL PROTECTED] You might want to make the same translation
before checking, by adding:
   $recip =~ s/\@(mail\.)?maidment\.com\.au/[EMAIL PROTECTED]/i;
... or something similar.
 

 - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>
  (reason: 554 5.4.6 Too many hops)
  (expanded from: <[EMAIL PROTECTED]>)

This turned out to be bug in sendmail-8.13.0 (fixed in 8.13.1)

Replying to myself.
No it wasn't!!! I was confusing mail logs with mail headers.
The apparent forwarding is from the define(`MAIL_HUB', `[192.168.2.5]') 
statement in sendmail.mc

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


mimedefang@lists.roaringpenguin.com

2004-08-02 Thread Martin Blapp

Hi,

> Aug  2 12:50:50 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
> (pid 15621) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
> 12:50:50 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
> req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=61,
> maxrss=0, bi=0, bo=0 Aug  2 12:50:53 gateway2 mimedefang-multiplexor[15598]:
> Starting slave 0 (pid 15622) (1 running): Bringing slaves up to minSlaves
> (2) Aug  2 12:50:53 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
> Undefined subroutine &main::do_main_loop called at
> /usr/local/bin/mimedefang.pl line 60.

All you need to do is calling 'mimedefang.pl -test' to see where your bug is.
Or call mimedefang.pl on a prepared Mimedefang message with INPUT/HEADERS file.

Martin
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] md_check_against_smtp_server

2004-08-02 Thread Bill Maidment
Jan Pieter Cornet wrote:
You are testing here against the recipient given by the external
relay. I noticed in the headers below that you are actually forwarding
to [EMAIL PROTECTED] You might want to make the same translation
before checking, by adding:
   $recip =~ s/\@(mail\.)?maidment\.com\.au/[EMAIL PROTECTED]/i;
... or something similar.
 

 - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>
  (reason: 554 5.4.6 Too many hops)
  (expanded from: <[EMAIL PROTECTED]>)

This turned out to be bug in sendmail-8.13.0 (fixed in 8.13.1)

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] md_check_against_smtp_server

2004-08-02 Thread Bill Maidment
Jan Pieter Cornet wrote:
On Mon, Aug 02, 2004 at 05:41:19PM +1000, Bill Maidment wrote:
I'm trying to use md_check_against_smtp_server to check the email 
recipient against valid users on another mail server.

Wild guess: have you enabled filter_recipient processing by running
mimedefang with the "-t" option? (or by specifying MX_RECIPIENT_CHECK="yes"
in the appropriate startup script).
MX_RECIPIENT_CHECK="yes" is set

You are testing here against the recipient given by the external
relay. I noticed in the headers below that you are actually forwarding
to [EMAIL PROTECTED] You might want to make the same translation
before checking, by adding:
   $recip =~ s/\@(mail\.)?maidment\.com\.au/[EMAIL PROTECTED]/i;
I didn't deliberately rename to [192.168.2.5], maybe something to do 
with SRS or something I did in sendmail that I've forgotten about. But 
that was part of the problem.


Apparently you are rewriting to [EMAIL PROTECTED] If this works for
known users, then maybe you added those users to something like
virtusertable? If so, maybe you forgot to add the catch-all entry at the
end of virtusertable, saying:
@[192.168.2.5]  error:"5.1.1" No such user
Yep. This was the biggy. I didn't move my /etc/mail/access rules from 
the external server to the internal server, so there was no catch-all.

Many thanks for your help.
Cheers
Bill
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


RE: [Mimedefang] Sire MimeDefang 2.44: Undefined subroutine &main ::do_main_loop

2004-08-02 Thread Tory Blue
-Original Message-
From: Jan Pieter Cornet [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 02, 2004 3:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [Mimedefang] Sire MimeDefang 2.44: Undefined subroutine
&main::do_main_loop

Since you're using the embedded interpreter, the call do "do_main_loop" is
made from C, which is probably why you get the nonsensical "at ... line 60"
thrown at you. perl is a bit wonky in this case...

It will likely work if you disable the embedding: remove the -E switch or do
not set MX_EMBED_PERL in the startup script.

I can't say why embedding doesn't work. I did notice that embedded perl
programs are particularly picky on the perl version. Upgrade perl, and your
embedded mimedefang will likely break. Did you compile mimedefang yourself?
Maybe a recompile will help.

_ _ _ _ _ _ 

Yes I compiled it many times actually, after every possible change. Just
really odd, I almost thru it out and went with something else, but I'm not a
quitter so I'm going to get this to work! Of course with some help ;).

Will try this out, 

Here is my perl information:

[EMAIL PROTECTED] bin]# perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.4.21-1.1931.2.382.entsmp,
archname=i386-linux-thread-multi
uname='linux stripples.devel.redhat.com 2.4.21-1.1931.2.382.entsmp #1
smp wed aug 6 17:18:52 edt 2003 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat,
Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0
-Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid
-Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog
-Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly
-Dpager=/usr/bin/less -isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030222 (Red Hat Linux 3.2.2-5)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lpthread -lc -lcrypt -lutil
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl): 
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
MAINT18379
  Built under linux
  Compiled at Aug 13 2003 11:47:58
  @INC:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/5.8.0

Thanks
Tory
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


mimedefang@lists.roaringpenguin.com

2004-08-02 Thread Jan Pieter Cornet
On Mon, Aug 02, 2004 at 02:10:53PM -0700, Tory Blue wrote:
> I'm having an issue and after exhaustive searches it's unclear what is
> happening.
> 
> System:
> Redhat 9
> Mimdefang 2.44
> ClamAv 0.75.1
> Spamassassin 2.63
> MIME-tools-5.411a-RP-Patched-02.tar.gz 
> IO-stringy-1.212.tar.gz IO::stringy 
> MIME-Base64-2.11.tar.gz MIME::Base64 
> MailTools-1.1401.tar.gz Mail::Tools 
> Digest-SHA1-2.00.tar.gz Digest::SHA1
> Unix-Syslog-0.100.tar.gz 
> zlib-1.1.4-8 
> zlib-devel
> 
> All the correct libraries etc (I believe)
> 
> Sendmail and spamass-milter/spamassassin works fine on this system
> 
> [EMAIL PROTECTED] clamav-0.75.1]# mimedefang.pl -test
> Filter /etc/mail/mimedefang-filter seems syntactically correct.
> 
> 
> I'm seeing this the momemt I start up mimedefang: and line 60 if
> mimedefang.pl is the "use MIME::Tools 5.40 ();" statement. One other oddity
> is that if you are using spamassassin via RPM, mimedefang does not
> acknowledge that it's installed.
> 
> Thanks for any input you can provide, 
> 
> [EMAIL PROTECTED] mail]# /etc/init.d/mimedefang start
> Starting mimedefang-multiplexor: [  OK  ]
> Starting mimedefang: [  OK  ]
> [EMAIL PROTECTED] mail]# tail -f /var/log/maillog
> Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Initialized embedded
> Perl interpreter Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]:
> Starting slave 0 (pid 15612) (1 running): Bringing slaves up to minSlaves
> (2) Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
> Undefined subroutine &main::do_main_loop called at
> /usr/local/bin/mimedefang.pl line 60. 
> Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
> (pid 15612) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2

Since you're using the embedded interpreter, the call do "do_main_loop"
is made from C, which is probably why you get the nonsensical "at ...
line 60" thrown at you. perl is a bit wonky in this case...

It will likely work if you disable the embedding: remove the -E switch
or do not set MX_EMBED_PERL in the startup script.

I can't say why embedding doesn't work. I did notice that embedded perl
programs are particularly picky on the perl version. Upgrade perl, and
your embedded mimedefang will likely break. Did you compile mimedefang
yourself? Maybe a recompile will help.

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <[EMAIL PROTECTED]>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;# Jan-Pieter Cornet
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] md_check_against_smtp_server

2004-08-02 Thread Jan Pieter Cornet
On Mon, Aug 02, 2004 at 05:41:19PM +1000, Bill Maidment wrote:
> I'm trying to use md_check_against_smtp_server to check the email 
> recipient against valid users on another mail server.
> 
> The problem I have is that invalid recipients cause the incoming email 
> to continually bounce between my two mail servers. Valid recipients work 
> fine!
> 
> Any clues as to what I've missed/got wrong?

Wild guess: have you enabled filter_recipient processing by running
mimedefang with the "-t" option? (or by specifying MX_RECIPIENT_CHECK="yes"
in the appropriate startup script).

> I have this in sendmail.mc on the other mail server. Could this be the 
> cause?
> 
> define(`SMART_HOST',`mail.maidment.com.au')

That is only one of the causes, probably. You can use a smarthost,
however.
 
> mimedefang-filter snippet and email sample follow:
> 
> #***
> 
> 
> sub filter_recipient ($) {
> my($recip, $sender, $ip, $host, $first, $helo,
> $rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
> return md_check_against_smtp_server($sender, $recip,
> "mail.maidment.com.au",
> "video.maidment.com.au");
> }

You are testing here against the recipient given by the external
relay. I noticed in the headers below that you are actually forwarding
to [EMAIL PROTECTED] You might want to make the same translation
before checking, by adding:

   $recip =~ s/\@(mail\.)?maidment\.com\.au/[EMAIL PROTECTED]/i;

... or something similar.
 
> >>   - The following addresses had permanent fatal errors -
> >><[EMAIL PROTECTED]>
> >>(reason: 554 5.4.6 Too many hops)
> >>(expanded from: <[EMAIL PROTECTED]>)
> >>
> >>   - Transcript of session follows -
> >>554 5.4.6 Too many hops 26 (25 max): from
> 
> <[EMAIL PROTECTED]> via localhost,
> to <[EMAIL PROTECTED]>
> 
> >>Reporting-MTA: dns; video.maidment.com.au
> >>Arrival-Date: Mon, 2 Aug 2004 15:13:33 +1000
> >>
> >>Final-Recipient: RFC822; [EMAIL PROTECTED]
> >>X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
> >>Action: failed
> >>Status: 5.4.6
> >>Diagnostic-Code: SMTP; 554 5.4.6 Too many hops
> >>Last-Attempt-Date: Mon, 2 Aug 2004 15:15:07 +1000
> >>Return-Path: <[EMAIL PROTECTED]>
> >>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
> >>by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DXwF032594
> >>for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:33 +1000
> >>Received: from video.maidment.com.au (video.maidment.com.au 
> [192.168.2.5])
> >>by mail.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DRBR013005
> >>for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:27 +1000
> >>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
> >>by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DV5U032585
> >>for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:31 +1000

Apparently you are rewriting to [EMAIL PROTECTED] If this works for
known users, then maybe you added those users to something like
virtusertable? If so, maybe you forgot to add the catch-all entry at the
end of virtusertable, saying:

@[192.168.2.5]  error:"5.1.1" No such user

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <[EMAIL PROTECTED]>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;# Jan-Pieter Cornet
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


mimedefang@lists.roaringpenguin.com

2004-08-02 Thread Tory Blue

I'm having an issue and after exhaustive searches it's unclear what is
happening.

System:
Redhat 9
Mimdefang 2.44
ClamAv 0.75.1
Spamassassin 2.63
MIME-tools-5.411a-RP-Patched-02.tar.gz 
IO-stringy-1.212.tar.gz IO::stringy 
MIME-Base64-2.11.tar.gz MIME::Base64 
MailTools-1.1401.tar.gz Mail::Tools 
Digest-SHA1-2.00.tar.gz Digest::SHA1
Unix-Syslog-0.100.tar.gz 
zlib-1.1.4-8 
zlib-devel

All the correct libraries etc (I believe)

Sendmail and spamass-milter/spamassassin works fine on this system

[EMAIL PROTECTED] clamav-0.75.1]# mimedefang.pl -test
Filter /etc/mail/mimedefang-filter seems syntactically correct.


I'm seeing this the momemt I start up mimedefang: and line 60 if
mimedefang.pl is the "use MIME::Tools 5.40 ();" statement. One other oddity
is that if you are using spamassassin via RPM, mimedefang does not
acknowledge that it's installed.

Thanks for any input you can provide, 

[EMAIL PROTECTED] mail]# /etc/init.d/mimedefang start
Starting mimedefang-multiplexor: [  OK  ]
Starting mimedefang: [  OK  ]
[EMAIL PROTECTED] mail]# tail -f /var/log/maillog
Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Initialized embedded
Perl interpreter Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15612) (1 running): Bringing slaves up to minSlaves
(2) Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
Undefined subroutine &main::do_main_loop called at
/usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:44 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15612) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:44 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.010, nswap=0, majflt=2, minflt=67,
maxrss=0, bi=0, bo=0 Aug  2 12:50:44 gateway2 mimedefang[15611]: Multiplexor
alive - entering main loop Aug  2 12:50:47 gateway2
mimedefang-multiplexor[15598]: Starting slave 0 (pid 15619) (1 running):
Bringing slaves up to minSlaves (2) Aug  2 12:50:47 gateway2
mimedefang-multiplexor[15598]: Slave 0 stderr: Undefined subroutine
&main::do_main_loop called at /usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:47 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15619) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:47 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=62,
maxrss=0, bi=0, bo=0 Aug  2 12:50:50 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15621) (1 running): Bringing slaves up to minSlaves
(2) Aug  2 12:50:50 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
Undefined subroutine &main::do_main_loop called at
/usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:50 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15621) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:50 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=61,
maxrss=0, bi=0, bo=0 Aug  2 12:50:53 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15622) (1 running): Bringing slaves up to minSlaves
(2) Aug  2 12:50:53 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
Undefined subroutine &main::do_main_loop called at
/usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:53 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15622) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:53 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=61,
maxrss=0, bi=0, bo=0 Aug  2 12:50:56 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15623) (1 running): Bringing slaves up to minSlaves
(2) Aug  2 12:50:56 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
Undefined subroutine &main::do_main_loop called at
/usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:56 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15623) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:56 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=62,
maxrss=0, bi=0, bo=0 Aug  2 12:50:59 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15624) (1 running): Bringing slaves up to minSlaves
(2) Aug  2 12:50:59 gateway2 mimedefang-multiplexor[15598]: Slave 0 stderr:
Undefined subroutine &main::do_main_loop called at
/usr/local/bin/mimedefang.pl line 60. 
Aug  2 12:50:59 gateway2 mimedefang-multiplexor[15598]: Reap: Idle slave 0
(pid 15624) exited normally with status 9 (SLAVE DIED UNEXPECTEDLY) Aug  2
12:50:59 gateway2 mimedefang-multiplexor[15598]: Slave 0 resource usage:
req=0, scans=0, user=0.000, sys=0.000, nswap=0, majflt=2, minflt=62,
maxrss=0, bi=0, bo=0 Aug  2 12:51:02 gateway2 mimedefang-multiplexor[15598]:
Starting slave 0 (pid 15625) (1 ru

RE: [Mimedefang] Sendmail 8.10 and MIMEDefang

2004-08-02 Thread Rob
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Kenneth Chan
> 
> I have a raq4 with sendmail 8.10.  Which is the most recent 
> version that will work with sendmail 8.10?  Is there an 
> archive of previous versions available for download?

In theory any version should.

However, 8.10 was a *very* short lived branch.  The MILTER support in it is
nearly certain to have bugs that remain unpatched.  At the very least you
should move to 8.11.7 and consider 8.13.1.


PLEASE - keep list traffic on the list.  Email sent directly to me may be
ignored utterly.

-- 
Rob | What part of "no" was it you didn't understand? 
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Sendmail 8.10 and MIMEDefang

2004-08-02 Thread alan premselaar

Kenneth Chan wrote:
Hi,
I have a raq4 with sendmail 8.10.  Which is the most recent version that will work 
with sendmail 8.10?  Is there an archive of previous versions available for download?
Thanks
Ken.
Kenneth,
 If I'm not mistaken (and this is off the top of my head after a long 
day at work) then sendmail 8.10 doesn't support MILTER which is required 
to run MIMEDefang.  also, apparently some versions of sendmail 8.11 have 
 some MILTER related bugs and it's recommended to use at least sendmail 
8.12 with MIMEDefang.

anyone else on the list can correct me if i'm wrong (please).
hope this helps,
alan
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Sendmail 8.10 and MIMEDefang

2004-08-02 Thread Kenneth Chan
Hi,

I have a raq4 with sendmail 8.10.  Which is the most recent version that will work 
with sendmail 8.10?  Is there an archive of previous versions available for download?

Thanks

Ken.
-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] HEADS UP, bug in spamassassin versions 2.50 -> 2.63

2004-08-02 Thread Patrik Andersin

Hi,

There is an nasty umask bug in spamassasin version 2.50 - 2.63 which
effectively disables virus scanning in mimedefang if 

 a. you use sa's bayesian auto learn (which triggers the bug)
and
 b. you run your virusscanner with different uid than mimedefang.


The bug is in sa's UnixLocker.pm module in line 47:

  my $umask = 077;  ### <- BUG HERE!! shoud be: my $umask = umask 077;
  if (!open(LTMP, ">$lock_tmp")) {
  umask $umask;
  die "lock: $$ cannot create tmp lockfile $lock_tmp for $lock_file: $!\n";
  }
  umask $umask;


What happens is that after first auto learn, all new working files
created by mimedefang.pl are created with umask 077 and im my case
clamd cannot access those files any longer.

Bug report filed:
http://bugzilla.spamassassin.org/show_bug.cgi?id=3653

//patrik
-- 
[EMAIL PROTECTED]
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIME-tools-5.411a with BinHex support

2004-08-02 Thread J.D. Bronson
ahh..that I have!
thanks. I built the dependency, but it makes good and fails 9/9 tests ?!?
Convert::Hex - I think

At 11:38 PM 8/1/2004, you wrote:
Hi,
> Can you please expand (or show an example) of scan_entity() ?
Sorry, shouldn't have made the (). The real function is
entity_contains_virus() ...
Clamd does now detect all BinHex encoded attachments.
Martin
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


--
J.D. Bronson
Aurora Health Care // Information Services // Milwaukee, WI USA
Office: 414.978.8282 // Email: [EMAIL PROTECTED] // Pager: 414.314.8282
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] MIME-tools-5.411a with BinHex support

2004-08-02 Thread Jan Pieter Cornet
On Sun, Aug 01, 2004 at 11:11:58PM +0200, Martin Blapp wrote:
> I just patched MIME-tools-5.411a to support BinHex-Encoding. You'll need the
> Convert::BinHex installed. Some FreeBSD fixes are also part of this distfile.
> 
> Download URL:
> 
> http://people.freebsd.org/~mbr/distfiles/MIME-tools-5.411a-RP-Patched-03.tar.gz
> 
> This fixes the Virustest #5, #8 if scan_entity() is used.

It should also fix it if message_contains_virus() is used, since the Binhex
attachments are now in a separate file in the workdir, and the
message_contains_virus() routines scan the entire workdir.

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <[EMAIL PROTECTED]>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;# Jan-Pieter Cornet
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] md_check_against_smtp_server

2004-08-02 Thread Bill Maidment
Hi
I'm trying to use md_check_against_smtp_server to check the email 
recipient against valid users on another mail server.

The problem I have is that invalid recipients cause the incoming email 
to continually bounce between my two mail servers. Valid recipients work 
fine!

Any clues as to what I've missed/got wrong?
I have this in sendmail.mc on the other mail server. Could this be the 
cause?

define(`SMART_HOST',`mail.maidment.com.au')
mimedefang-filter snippet and email sample follow:
#***
sub filter_recipient ($) {
my($recip, $sender, $ip, $host, $first, $helo,
$rcpt_mailer, $rcpt_host, $rcpt_addr) = @_;
return md_check_against_smtp_server($sender, $recip,
"mail.maidment.com.au",
"video.maidment.com.au");
}

>Date: Mon, 2 Aug 2004 15:15:07 +1000
>>From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Subject: Returned mail: see transcript for details
>>Auto-Submitted: auto-generated (failure)
>>X-Spam-Score: -0.074 ()
BAYES_01,IS_A_BOUNCE,L_hR_NOREPLY,MY_BOUNDARY3,MY_MTPARENS
>>X-Scanned-By: MIMEDefang 2.42
>>X-Scanned-By: MIMEDefang 2.45
>>
>>The original message was received at Mon, 2 Aug 2004 15:13:33 +1000
>from mail.maidment.com.au [192.168.2.2]
>>
>>   - The following addresses had permanent fatal errors -
>><[EMAIL PROTECTED]>
>>(reason: 554 5.4.6 Too many hops)
>>(expanded from: <[EMAIL PROTECTED]>)
>>
>>   - Transcript of session follows -
>>554 5.4.6 Too many hops 26 (25 max): from
<[EMAIL PROTECTED]> via localhost,
to <[EMAIL PROTECTED]>
>>Reporting-MTA: dns; video.maidment.com.au
>>Arrival-Date: Mon, 2 Aug 2004 15:13:33 +1000
>>
>>Final-Recipient: RFC822; [EMAIL PROTECTED]
>>X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
>>Action: failed
>>Status: 5.4.6
>>Diagnostic-Code: SMTP; 554 5.4.6 Too many hops
>>Last-Attempt-Date: Mon, 2 Aug 2004 15:15:07 +1000
>>Return-Path: <[EMAIL PROTECTED]>
>>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
>>	by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DXwF032594
>>	for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:33 +1000
>>Received: from video.maidment.com.au (video.maidment.com.au 
[192.168.2.5])
>>	by mail.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DRBR013005
>>	for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:27 +1000
>>Received: from mail.maidment.com.au (mail.maidment.com.au [192.168.2.2])
>>	by video.maidment.com.au (8.13.0/8.13.0) with ESMTP id i725DV5U032585
>>	for <[EMAIL PROTECTED]>; Mon, 2 Aug 2004 15:13:31 +1000

etc...
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang