[Mimedefang] Delaying "use" of MIME modules

2006-10-31 Thread Jonas Eckerman

Hi

The new scheduler makes it possible to save memory by delaying the compilation of modules 
until they are actually needed and I'm experimenting with this. I've done that with the 
modules used by my filter and those mimedefang.pl handles in "%Features".

The MIMEDefang children have gone from over 60MB each (with the old scheduler) 
to about 15MB for those children that never sees a MIME entity.

The only "big" modules that are still loaded for every child are the MIME tools 
modules.
Would it be feasible to move those modules into %Features as well? Or are they 
used in too many places in the code for this to be a quick simple change?
It might be worth it for some systems.

Of course, with my huge filter it might actually make a bigger difference to split the 
filter into parts that are "required" when needed. :-)

Regards
/Jonas

--
Jonas Eckerman, FSDB & Fruktträdet
http://whatever.frukt.org/
http://www.fsdb.org/
http://www.frukt.org/


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] mimedefang.sock unsafe

2006-10-31 Thread nickr


Turned off auto-white list using:

v310.pre:# AWL - do auto-whitelist checks
v310.pre:# AutoLearnThreshold - threshold-based discriminator for Bayes 
auto-learning


Now I have :
Oct 31 13:27:13 mail sendmail[7922]: k9VIRDB2007922: Milter (mimedefang): 
local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe
Oct 31 13:27:13 mail sendmail[7922]: k9VIRDB2007922: Milter (mimedefang): to 
error state

ord to you.

[EMAIL PROTECTED] spamassassin]# cd /var/spool/MIMEDefang/
[EMAIL PROTECTED] MIMEDefang]# ls -la
total 20
drwx--  2 defang root   4096 Oct 31 13:15 .
drwxr-xr-x 13 root   root   4096 Oct 26 16:08 ..
-rw-r-  1 defang defang5 Oct 31 13:15 mimedefang-multiplexor.pid
srw---  1 defang defang0 Oct 31 13:15 mimedefang-multiplexor.sock
-rw-r-  1 defang defang5 Oct 31 13:15 mimedefang.pid


___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Re: mimedefang.sock unsafe

2006-10-31 Thread nickr


- Original Message - 
From: "nickr" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, October 31, 2006 1:32 PM
Subject: mimedefang.sock unsafe




Turned off auto-white list using:

v310.pre:# AWL - do auto-whitelist checks
v310.pre:# AutoLearnThreshold - threshold-based discriminator for Bayes 
auto-learning


Now I have :
Oct 31 13:27:13 mail sendmail[7922]: k9VIRDB2007922: Milter (mimedefang): 
local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe
Oct 31 13:27:13 mail sendmail[7922]: k9VIRDB2007922: Milter (mimedefang): 
to error state

ord to you.

[EMAIL PROTECTED] spamassassin]# cd /var/spool/MIMEDefang/
[EMAIL PROTECTED] MIMEDefang]# ls -la
total 20
drwx--  2 defang root   4096 Oct 31 13:15 .
drwxr-xr-x 13 root   root   4096 Oct 26 16:08 ..
-rw-r-  1 defang defang5 Oct 31 13:15 mimedefang-multiplexor.pid
srw---  1 defang defang0 Oct 31 13:15 mimedefang-multiplexor.sock
-rw-r-  1 defang defang5 Oct 31 13:15 mimedefang.pid




___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] info cuestions

2006-10-31 Thread juanlopezz
In this order i have the next info:

filter_sender (From) - ($sender, $ip, $hostname, $helo)

filter_recipient (To) - ($recipient, $sender, $ip, $hostname, $first,
$helo, $rcpt_mailer, $rcpt_host, $rcpt_addr)

Filger_begin - subject and other ($recipient, $sender)

I need to know subject, sender, recipient in filter_sender ¿I can obtain
this data?

Also i need know the size of a message (i use sendmail/milter) Sendmail
have this data but i do not know how i can get this data. I try with
read_commands_file();  $SendmailMacros{} but no have the size and no have
info about recipient and sender than i can use in filter_sender.
$SendmailMacros in this point (filter_sender) i use authen for authid.

Thanks.




Nueva Barra de Herramientas de OZÚ. Navega Más facilmente por Internet.
¡Descargatela gratis! http://barra.ozu.es/

Correo enviado desde http://www.ozu.es
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] info cuestions

2006-10-31 Thread juanlopezz
In this order i have the next info:

filter_sender (From) - ($sender, $ip, $hostname, $helo)

filter_recipient (To) - ($recipient, $sender, $ip, $hostname, $first,
$helo, $rcpt_mailer, $rcpt_host, $rcpt_addr)

Filger_begin - subject and other ($recipient, $sender)

I need to know subject, sender, recipient in filter_sender ¿I can obtain
this data?

Also i need know the size of a message (i use sendmail/milter) Sendmail
have this data but i do not know how i can get this data. I try with
read_commands_file();  $SendmailMacros{} but no have the size and no have
info about recipient and sender than i can use in filter_sender.
$SendmailMacros in this point (filter_sender) i use authen for authid.

Thanks.



Nueva Barra de Herramientas de OZÚ. Navega Más facilmente por Internet.
¡Descargatela gratis! http://barra.ozu.es/

Correo enviado desde http://www.ozu.es
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] info cuestions

2006-10-31 Thread David F. Skoll
[EMAIL PROTECTED] wrote:

> I need to know subject, sender, recipient in filter_sender I can obtain
> this data?

No, because that information hasn't been received yet.

> Also i need know the size of a message (i use sendmail/milter) Sendmail
> have this data but i do not know how i can get this data. I try with
> read_commands_file();  $SendmailMacros{} but no have the size and no have
> info about recipient and sender than i can use in filter_sender.
> $SendmailMacros in this point (filter_sender) i use authen for authid.

The only reliable way is to measure the size of the file ./INPUTMSG
from filter_begin

Regards,

David.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


RE: [Mimedefang] mimedefang.sock unsafe

2006-10-31 Thread Josh Graham
One thing I did was put a sleep 3 in my sendmail startup script to give
mimedefang 3 seconds before sendmail starts. That got rid of the sock
error.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Video
Game Junkie
Sent: Monday, October 30, 2006 1:02 PM
To: mimedefang@lists.roaringpenguin.com
Subject: [Mimedefang] mimedefang.sock unsafe

I looked on the mailing list archives for the past problems that have
this error and I was wondering if anybody had more details on how to fix
this problem without restarting the actual machine.

I have 2 servers running RH ES3, running Mimedefang 2.57 and
sendmail-8.12.11-4.RHEL3.4. Under normal circumstances, they share the
load pretty well. Today I noticed that my mail01 server was loaded
(35+) while my mail02 server had no load at all. I checked the logs for
mail02 and I saw the following:

Milter (mimedefang): local socket name
/var/spool/MIMEDefang/mimedefang.sock unsafe

Permissions are fine, as MD starts up normally after a reboot/restart
(unless I see this error). If I do a "service sendmail restart", the
mimedefang.sock file never gets created, and so the MD service fails as
well. Doing a restart on the server fixes the problem and mail processes
normally once again. What information would be needed to try and
determine how to go about fixing this problem without a restart?

Thanks.
Jeff W.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] mimedefang.sock unsafe

2006-10-31 Thread Video Game Junkie

Thanks Josh,  did you put sleep in any particular spot of the startup script?

On 10/31/06, Josh Graham <[EMAIL PROTECTED]> wrote:

One thing I did was put a sleep 3 in my sendmail startup script to give
mimedefang 3 seconds before sendmail starts. That got rid of the sock
error.

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] HTML validation

2006-10-31 Thread Kenneth Porter
I was revisiting the idea of validating HTML parts and ran across these 
interesting-looking pages:




___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] LZW, Gifs, and fingerprinting stock spams

2006-10-31 Thread Philip Prindeville
I'm trying to do some stochastic analysis of stock spams and
figure out if there's a common fingerprint that can be used to
identify them...

But first, I'm bumping up against some Perl issues.

Seems that there aren't many modules out there that help
deconstruct Gif formats.  I'm using Image::Info::GIF, but
need to decompress the compressed data portion.  I tried
to take the data and pass it to Compress::LZW directly,
but most GIF's (at least for stocks, which don't use many
colors) use 4, 6, or 8 bit codesizes.

Unfortunately, Compress::LZW only handles 12 or 16
bits...  Anyone familiar enough with either GIF formats
or how to decompress the data to offer a leg up?

Thanks,

-Philip

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang