[Mimedefang] Reap: slave 37 (pid 15371) exited due to signal 14 (SLAVE DIED UNEXPECTEDLY)

2010-02-03 Thread Casper Kristiansson
Why do the multiplexor give the above error within this code ?? eval{ $SIG{INT}=sub{$grey_insert-cancel}; alarm 10;

Re: [Mimedefang] how can i change the required score in spamassassin in a mimedefang script?

2010-02-03 Thread Tilman Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2010-02-02 18:21 schrieb ml ml: What i am trying to do now is to get the required spamassassin score per domain. Here is my code: http://pastebin.com/m690faaa2 (ok, this is a terrible proof-of-concept code, but it does its job so far for

Re: [Mimedefang] Reap: slave 37 (pid 15371) exited due to signal 14 (SLAVE DIED UNEXPECTEDLY)

2010-02-03 Thread Tilman Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2010-02-03 09:17 schrieb Casper Kristiansson: Why do the multiplexor give the above error within this code ?? eval{ $SIG{INT}=sub{$grey_insert-cancel}; alarm 10; Looks like you are

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Tony
- Original Message - From: - kd6...@yahoo.com To: mimedefang@lists.roaringpenguin.com Sent: Wednesday, February 03, 2010 1:43 AM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? You missed the point. You're scanning every message with SA more than once (at

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread David F. Skoll
- wrote: Try this regex for detecting an IPv4-compatible IPv6 address: ... =~ qr/^:::(\d{1,3}(\.\d{1,3}){3})$/i ... How about some C code rather than perl? -- David. ___ NOTE: If there is a disclaimer or other legal boilerplate in the above

Re: [Mimedefang] Reap: slave 37 (pid 15371) exited due to signal 14 (SLAVE DIED UNEXPECTEDLY)

2010-02-03 Thread David F. Skoll
Casper Kristiansson wrote: alarm 10; $grey_insert-execute($ip3,$sender,$recipient,$t,$t_g,$t_e,$ip,$check_mx,$check_rbl,$key,$result,$day,0,0); return('CONTINUE', ok); alarm 0; Oops!!! You're returning

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread David F. Skoll
Bernd Petrovitsch wrote: Perhaps reason enough to simply use Net::IP. What, from C? :) As I said... patches (in C) accepted happily. Regards, David. ___ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Aniruddha Barua
I see your point but I'm struggling to understand why every message is being scanned more than once and what can I do to correct it... Many of us told you to check your MDA configuration which we all believe to be procmail. MTAs like sendmail normally do not save messages directly to user

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Tony
- Original Message - From: Aniruddha Barua zm...@yahoo.com To: mimedefang@lists.roaringpenguin.com Sent: Wednesday, February 03, 2010 1:12 PM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? Many of us told you to check your MDA configuration which we all

[Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Brian Shallenberger
I have sendmail 8.13.8 with mimedefang running. I have successfully created a simple filter to add a recipient to outbound email for a specific sender. I am new to mimedefang and not a wiz at perl, but can pick it up quick with some direction. Is there a way to parse the part of the Sender's

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread Bernd Petrovitsch
On Mit, 2010-02-03 at 07:01 -0500, David F. Skoll wrote: Bernd Petrovitsch wrote: Perhaps reason enough to simply use Net::IP. What, from C? :) Oops, sorry, I had the impression it´s in the perl part. Bernd -- Bernd Petrovitsch Email : be...@petrovitsch.priv.at

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Brian Shallenberger
I've updated sendmail to latest source 8.14 version. Compiled with latest available mimedefang Brian ___ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL AND VOID. You may ignore it. Visit

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Joseph Brennan
Brian Shallenberger bri...@cleareagle.com wrote: Is there a way to parse the part of the Sender's email address that precedes the '@' character so I can build a recipient's email address? For example: Sender email address: j...@abc.com There is of course more than one way to do it, but

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread David F. Skoll
Joseph Brennan wrote: There is of course more than one way to do it, but here's one: my ($localpart,$domainpart) = split('@',$Sender); /me waits for D. Stussy to point out the 100+ ways that can go wrong... But seriously, that's going to work fine in practice. I'd tweak it just a tiny bit:

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Paul Murphy
:0fw * 50 | /usr/bin/spamc Smoking gun... spamc is the spamassassin command line client Best Wishes, Paul. --- Paul Murphy Head of I.T. Argenta Discovery 2009 Ltd Tel. 01279 645 554 Fax. 01279 645 646

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Steffen Kaiser
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 3 Feb 2010, Brian Shallenberger wrote: Sender email address: j...@abc.com Need to get 'Joe' and make the recipient's email address: j...@abc.local The abc.com and abc.local will not change. The purpose is to archive email for each user

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Joseph Brennan
David F. Skoll d...@roaringpenguin.com wrote: Joseph Brennan wrote: There is of course more than one way to do it, but here's one: my ($localpart,$domainpart) = split('@',$Sender); /me waits for D. Stussy to point out the 100+ ways that can go wrong... I learned on Usenet in 1989 that

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Tony
- Original Message - From: Paul Murphy paul.mur...@argentadiscovery.com To: mimedefang@lists.roaringpenguin.com Sent: Wednesday, February 03, 2010 1:46 PM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? :0fw * 50 | /usr/bin/spamc Smoking gun... spamc

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread David F. Skoll
Joseph Brennan wrote: I learned on Usenet in 1989 that the way to get discussion going is to post something that other people can correct! The more quickly written the better. Wow... in 1989, I learned that the way to get discussion [sic] going is to mention guns, abortion and the Middle

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread David F. Skoll
Tony wrote: I'm going around in circles here, as a beginner it's hard to understand cryptic replies. Are you saying I should restore the above commands and look for the 'double-scan' problem elsewhere? No. Here's how the mail flow works: 1) During the DATA phase of the SMTP conversation,

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Paul Murphy
Sender email address: j...@abc.com Need to get 'Joe' and make the recipient's email address: j...@abc.local use the VIRTUSERTABLE feature within Sendmail, with an entry like this: @abc.com%...@abc.com,%...@abc.local Then all users at abc.com will have their mail

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Tony
- Original Message - From: David F. Skoll d...@roaringpenguin.com To: mimedefang@lists.roaringpenguin.com Sent: Wednesday, February 03, 2010 2:52 PM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? Tony wrote: I'm going around in circles here, as a beginner

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread David F. Skoll
Hi, Here's my compromise on the IPv4-mapped IPv6 address question: if (tmp) { if (IN6_IS_ADDR_V4MAPPED(in6sa-sin6_addr) || IN6_IS_ADDR_V4COMPAT(in6sa-sin6_addr)) { if (strchr(data-hostip, '.')) { char

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Kevin A. McGrail
It sounds like you are trying to get the local user and that you are assuming the first half of the email address is the username. Instead, might be worth a caching system that uses sendmail -bv to verify it's a local user: For example, sendmail -bv kmcgrail-t...@pccc.com

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Brian Shallenberger
Looks like any one of the proposed solutions would suit my needs. In this particular scenario, the filtering sendmail server is internal to our organization. It is the server our email clients see as the SMTP server. I'm relaying the outbound email to our domain's 'real' SMTP server. From this

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Kees Theunissen
On Wed, 3 Feb 2010, Paul Murphy wrote: Sender email address: j...@abc.com Need to get 'Joe' and make the recipient's email address: j...@abc.local use the VIRTUSERTABLE feature within Sendmail, with an entry like this: @abc.com %...@abc.com,%...@abc.local I'm not sure about

[Mimedefang] MIMEDefang 2.68-BETA-4 is released

2010-02-03 Thread David F. Skoll
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I've released MIMEDefang 2.68-BETA-4. Please try it out; if all goes well, it will become 2.68-FINAL. Changes since 2.67 follow. Regards, David. 2010-02-03 David F. Skoll d...@roaringpenguin.com * MIMEDefang 2.68-BETA-4. * Bug fix:

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread Paul Murphy
--- Paul Murphy Head of I.T. Argenta Discovery 2009 Ltd Tel. 01279 645 554 Fax. 01279 645 646 Kees Theunissen theun...@rijnh.nl 03/02/2010 18:45 I'm not sure about this use of multiple addresses on the RHS of the VIRTUSERTABLE. The 'bat

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread -
--- On Wed, 2/3/10, Tony t...@freeuk.com wrote: ... ok thanks for this info David, I appreciate it and it makes things clearer. Based on what you say I will leave things as they are ... NO! By leaving it, you're scanning TWICE (or more). You're not fixing the problem.

Re: [Mimedefang] MIMEDefang 2.68-BETA-4 is released

2010-02-03 Thread Ben Kamen
On 2/3/2010 1:25 PM, David F. Skoll wrote: * Try hard not to lose any STDERR messages before reaping a slave. I remember working for a company 10yrs ago where the Chief Software Scientist (my boss) was asked by the CEO (his boss) to change the wording in the logs that stated ...killing off

Re: [Mimedefang] Enumerate Email Address parts

2010-02-03 Thread -
--- On Wed, 2/3/10, Paul Murphy paul.mur...@argentadiscovery.com wrote: From: Paul Murphy paul.mur...@argentadiscovery.com Subject: Re: [Mimedefang] Enumerate Email Address parts To: mimedefang@lists.roaringpenguin.com Date: Wednesday, February 3, 2010, 6:10 AM Sender email address: 

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread -
--- On Wed, 2/3/10, Bernd Petrovitsch be...@petrovitsch.priv.at wrote: On Die, 2010-02-02 at 17:49 -0800, - wrote: Try this regex for detecting an IPv4-compatible IPv6 address:   ... =~  qr/^:::(\d{1,3}(\.\d{1,3}){3})$/i   ... To get even more anal: No one forbids to avoid the

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread -
--- On Wed, 2/3/10, David F. Skoll d...@roaringpenguin.com wrote: Here's my compromise on the IPv4-mapped IPv6 address question:         if (tmp) {         if (IN6_IS_ADDR_V4MAPPED(in6sa-sin6_addr) ||             IN6_IS_ADDR_V4COMPAT(in6sa-sin6_addr)) {             if (strchr(data-hostip,

Re: [Mimedefang] How to catch large binary spam efficiently ?

2010-02-03 Thread Jeff Makey
Henrik K asked: where exactly does SpamAssassin core decide anything? This is drifting off-topic, but in the _run_file subroutine in ArchiveIterator.pm, SA refuses to scan messages whose total size is greater than 256 kilobytes (not 100K as I implied previously). This is to limit the memory used

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread David F. Skoll
- wrote: Comments: if (strchr(data-hostip, '.')) { This conditional is redundant. No, it is not. inet_ntop does not *have* to use the form :::a.b.c.d for IPv4-compatible addresses. It's allowed to do that, but not mandated to. It could use :::aabb:ccdd If an

Re: [Mimedefang] mimedefang letting some spams through...why?

2010-02-03 Thread Les Mikesell
On 2/3/2010 2:19 PM, - wrote: --- On Wed, 2/3/10, Tonyt...@freeuk.com wrote: ... ok thanks for this info David, I appreciate it and it makes things clearer. Based on what you say I will leave things as they are ... NO! By leaving it, you're scanning TWICE (or more). You're not fixing the

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly (IPv4 Compatible patch)

2010-02-03 Thread -
--- On Wed, 2/3/10, David F. Skoll d...@roaringpenguin.com wrote: Date: Wednesday, February 3, 2010, 12:56 PM - wrote: Comments:          if (strchr(data-hostip, '.')) { This conditional is redundant. No, it is not.  inet_ntop does not *have* to use the form :::a.b.c.d for