[Mimedefang] using action_add_part on msgs to be quarantined

2004-11-22 Thread Rolf
hello
Try as I might I cannot add the spamassassin report to the mail msg 
prior to it being quarantined.

Using MD 2.45
I have worked out that this is undoubtedly some aspect of the MD logic, 
but can't work out what.

the relevant bit of filter end - which is little changed from the 
example is

   my($hits, $req, $names, $report) = spam_assassin_check();
if ($hits >= $req) {
md_graphdefang_log('Spam', $hits, $RelayAddr);
# If you find the SA report useful, add it, I guess...
action_add_part($entity, "text/plain", "-suggest",
"$report\n",
"SpamAssassinReport.txt", "inline",0);
action_quarantine_entire_message();
action_discard();
yet there is no part added to any of the files in the relevant 
qdir-d-a-t-e-ti.me.-001/

Presumably by design, but how can I include the SA report there?
thanks
rofl.
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] timeout before data read / smfi_chgheader returned MI_FAILURE

2004-11-22 Thread Jurgen Botz
Aleksandar Milivojevic wrote:
There was discussion about this last week.  You probably set Milter 
timeouts in sendmail.mc (INPUT_MAIL_FILTER line) too low. 
Sorry, I should have mentioned that I saw that discussion, but my
problem seems to be different.  I didn't see the same symptoms of
the defang process being restarted quickly, for example, and there
definitely seems to be a connection to this error:
  Nov 22 09:33:54 kahuna mimedefang[5656]: iAMHXhdD005903: 
smfi_addheader returned MI_FAILURE

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


Re: [Mimedefang] timeout before data read / smfi_chgheader returned MI_FAILURE

2004-11-22 Thread Aleksandar Milivojevic
Jurgen Botz wrote:
MIMEDefang suddenly stopped working on one of my servers this
morning.  I get the following errors... anyone have any idea
what might be causing this?
There was discussion about this last week.  You probably set Milter 
timeouts in sendmail.mc (INPUT_MAIL_FILTER line) too low.  You got large 
email, MIMEDefang wasn't able to process it in less than timeout time, 
sendmail rejected mail with tempfail (as you instructed it to do when it 
timeouts in the very same INPUT_MAIL_FILTER line).

Try raising timeouts to at least 15 minutes.  If you are accepting huge 
emails (definition of huge 10MB or larger), half an hour or even an hour 
(if you don't have any limits on the size of emails you accept) might be 
good idea too.  More than one hour doesn't make any sense (remote side 
will usually timeout after one hour of waiting for response from your 
sendmail).

--
Aleksandar Milivojevic <[EMAIL PROTECTED]>Pollard Banknote Limited
Systems Administrator   1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB  R3T 1L7
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] timeout before data read / smfi_chgheader returned MI_FAILURE

2004-11-22 Thread Jurgen Botz
MIMEDefang suddenly stopped working on one of my servers this
morning.  I get the following errors... anyone have any idea
what might be causing this?
Nov 22 09:33:53 kahuna sendmail[5903]: iAMHXhdD005903: Milter 
(mimedefang): timeout before data read
Nov 22 09:33:53 kahuna sendmail[5903]: iAMHXhdD005903: Milter 
(mimedefang): to error state
Nov 22 09:33:53 kahuna sendmail[5903]: iAMHXhdD005903: Milter: data, 
reject=451 4.7.1 Please try again later
Nov 22 09:33:53 kahuna sendmail[5903]: iAMHXhdD005903: 
to=<[EMAIL PROTECTED]>, delay=00:00:10, pri=60358, stat=Please try 
again later
Nov 22 09:33:53 kahuna sendmail[5903]: iAMHXhdD005903: 
to=<[EMAIL PROTECTED]>, delay=00:00:10, pri=60358, stat=Please try again later
Nov 22 09:33:54 kahuna mimedefang[5656]: iAMHXhdD005903: smfi_chgheader 
returned MI_FAILURE
Nov 22 09:33:54 kahuna mimedefang[5656]: iAMHXhdD005903: smfi_chgheader 
returned MI_FAILURE
Nov 22 09:33:54 kahuna mimedefang[5656]: iAMHXhdD005903: smfi_addheader 
returned MI_FAILURE

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


[Mimedefang] MIMEDEFANG to check ONLY INCOMING MAILS ?

2004-11-22 Thread hitete
 How to force mimedefang to check mails only on incoming mails ?.
 I just realized that both incoming and outgoing mails are checked and I'd
 like
 only incoming  mails to be checked.


 /Hitete


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


Re: [Mimedefang] MIMEDEFANG to check ONLY INCOMING MAILS ?

2004-11-22 Thread Marco Supino
put this in your mime-filter :
***
use Socket;
sub filter_relay ($$) {
my ($hostip, $hostname) = @_;
md_syslog('debug', "RELAY: <$hostip> <$hostname>");
my $addr = '';
my $network_string = '';
my $mask_string = '';
# List networks that should be exempt from all filtering by
# putting their network/mask pairs into the exempt_subnets
# associative array.  (Follow the example for the loopback.)
my %exempt_subnets = (
'127.0.0.0','255.0.0.0', # loopback
'192.168.0.0',  '255.255.0.0'   # my internal net
);
# If the address of the connecting client falls within one of
# the subnets defined by %exempt_subnets, then bypass all
# further filtering.
$addr = inet_aton $hostip;
while (($network_string, $mask_string) = each %exempt_subnets) {
my $network = inet_aton $network_string;
my $mask = inet_aton $mask_string;
if (($addr & $mask) eq $network) {
# action_delete_all_headers("Received");
return ('ACCEPT_AND_NO_MORE_FILTERING', 'ok');
}
}
# The client isn't in an exempt subnet; filtering should
# continue.
return ('CONTINUE', 'ok');
}
***
and run the miltiplexor with -r (so filter_relay is used), and , add 
your outgoing relay to the list of %exempt_subnets.

Marco.

[EMAIL PROTECTED] wrote:
How to force mimedefang to check mails only on incoming mails ?.
I just realized that both incoming and outgoing mails are checked and I'd like
only incoming  mails to be checked.
/Hitet
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


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


[Mimedefang] MIMEDEFANG to check ONLY INCOMING MAILS ?

2004-11-22 Thread hitete
How to force mimedefang to check mails only on incoming mails ?.
I just realized that both incoming and outgoing mails are checked and I'd like
only incoming  mails to be checked.


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