Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread ml ml
Hi, On Tue, Feb 2, 2010 at 1:12 AM, - kd6...@yahoo.com wrote: --- On Mon, 2/1/10, ml ml mliebher...@googlemail.com wrote: has anyone got some hints for me how to write a  auto  reply / vacation script? Or is there already such a project out ... Yes:  DON'T.  There are enough problems with

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread Michiel Brandenburg
On 2-2-2010 8:39, ml ml wrote: Yes: DON'T. There are enough problems with existing autoresponders out there. idd do not try to reinvent the wheel, there are plenty of autoresponders out there, some better than others, but nearly all of them have their quirks. well, there is the feature

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread Tilman Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 2010-02-02 08:39 schrieb ml ml: Hi, On Tue, Feb 2, 2010 at 1:12 AM, - kd6...@yahoo.com wrote: --- On Mon, 2/1/10, ml ml mliebher...@googlemail.com wrote: has anyone got some hints for me how to write a auto reply / vacation script? Or is

[Mimedefang] How to catch large binary spam efficiently ?

2010-02-02 Thread Juergen Georgi
Hello, I have noticed an increase of spam messages with rather large binary attachments (pdf, images) lately. They slip through undetected, because our size limit for SpamAssassin checks is at 100K. I'd rather avout to bump up this threshold to say 5M in order to catch those spams too. Is there

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread Bernd Petrovitsch
Hi! On Mon, 2010-02-01 at 21:26 +0100, Michiel Brandenburg wrote: [...] I recently noticed the relay_is_* functions within mimdefang.pl do not playing nice with ipv6 addresses. This patch fixes it. Not that a lot of mail is running ipv6 over here but there is always hope :) # taken from

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

2010-02-02 Thread Tony
- Original Message - From: - kd6...@yahoo.com To: mimedefang@lists.roaringpenguin.com Sent: Tuesday, February 02, 2010 12:11 AM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? Your problem is that SA is being called more than once. ok thanks, do you mean

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread Michiel Brandenburg
On 2-2-2010 11:34, Bernd Petrovitsch wrote: # taken from Net::IP, and converted to use no external, and handle no padding Hmm, any special reason for not using Net::IP directly? Or did I miss something? That could be done without a problem but I did not want to bloat mimedefang.pl anymore

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

2010-02-02 Thread Renaud Pascal
On Tue, 2 Feb 2010 11:50:52 - Tony t...@freeuk.com wrote: - Original Message - From: - kd6...@yahoo.com To: mimedefang@lists.roaringpenguin.com Sent: Tuesday, February 02, 2010 12:11 AM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? Your problem is

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

2010-02-02 Thread Aniruddha Barua
- Original Message From: Tony t...@freeuk.com To: mimedefang@lists.roaringpenguin.com Sent: Tue, February 2, 2010 5:50:52 PM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? - Original Message - From: - To: Sent: Tuesday, February 02, 2010 12:11

Re: [Mimedefang] FW: Mimedefang and Anti-virus

2010-02-02 Thread Tilman Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, sorry for the late reply. Been out of the office for most of the last two weeks. Am 2010-01-20 23:22 schrieb Cliff Hayes: The list rejected my reply too ... so sending directly to you. I'll try CCing the list again. Perhaps it'll change it's

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread David F. Skoll
ml ml wrote: has anyone got some hints for me how to write a auto reply / vacation script? Or is there already such a project out there which does that kind of stuff? I agree with the sentiment that MIMEDefang is the wrong place to do this; it should be done by the final delivery agent. I

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread David F. Skoll
Michiel Brandenburg wrote: +if( $ip[$_] =~ /\./ ) { +# ipv4 mapped as ipv6 +my @extraOcts = unpack('H4H4', pack('C4C4C4C4', split(/\./, Actually, the Perl code will never see an IPv6-mapped IPv4 address, because the mimedefang.c code converts such an address to

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread Les Mikesell
Tilman Schmidt wrote: --- On Mon, 2/1/10, ml ml mliebher...@googlemail.com wrote: has anyone got some hints for me how to write a auto reply / vacation script? Or is there already such a project out ... Yes: DON'T. There are enough problems with existing autoresponders out there. well,

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread Kevin A. McGrail
But I don't need that. If you are going to write your own, I'd encourage you to study the vacation(1) source code; it contains measures that eliminate most of the worst auto-responder behaviour. Actually, I found the vacation program to be woefully problematic in replying to spam, lists, etc.

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread David F. Skoll
Kevin A. McGrail wrote: Actually, I found the vacation program to be woefully problematic in replying to spam, lists, etc. Ah. Well, we stop our spam at the server, so vacation(1) never sees it. I can see it would be a big problem if you run a tagging-only spam filter. AFAIK, vacation(1)

Re: [Mimedefang] auto reply / vacation

2010-02-02 Thread Kevin A. McGrail
Ah. Well, we stop our spam at the server, so vacation(1) never sees it. I can see it would be a big problem if you run a tagging-only spam filter. Having yet to see a 100% accurate spam filter, you are correct. I run a tagging-only spam filter and strongly recommend the use of tagging-only

[Mimedefang] Delivery agents (was Re: auto reply / vacation)

2010-02-02 Thread David F. Skoll
Kevin A. McGrail wrote: Having yet to see a 100% accurate spam filter, you are correct. I run a tagging-only spam filter and strongly recommend the use of tagging-only spam filters. Philosophical debate and I'm sure we both have strong and valid opinions not worthy arguing here ;-) Well,

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

2010-02-02 Thread ml ml
Hello List, i am currently playing around the mimedefang-filter example script which is included in almost all distributions. 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

Re: [Mimedefang] Delivery agents (was Re: auto reply / vacation)

2010-02-02 Thread Dave O'Neill
On Tue, Feb 02, 2010 at 11:15:35AM -0500, David F. Skoll wrote: Somewhat OT... has anyone had experience with Mail::Audit to replace procmail? http://search.cpan.org/~rjbs/Mail-Audit-2.225/lib/Mail/Audit.pm I *detest* the procmail syntax, and keep meaning One Of These Days to poke around with

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

2010-02-02 Thread -
--- On Tue, 2/2/10, Tony t...@freeuk.com wrote: - Original Message - From: - kd6...@yahoo.com Your problem is that SA is being called more than once. ok thanks, do you mean every email is being scanned twice? how do you know that? There are SA-generated headers inserted into your

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread Michiel Brandenburg
On 2-2-2010 19:01, David F. Skoll wrote: In other words, what is the difference between an SMTP client coming from :::192.168.10.1 or 192.168.10.1 ? or :::c0a8:a01. Well not a lot I would guess except that one is ipv6 the other ipv4. Guess it all depends on semantics .. probably

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread David F. Skoll
Michiel Brandenburg wrote: Well database and code could only assume that they get ipv6 addresses. Ah, true. Well... the database I use (PostgreSQL) has a network type that accepts both IPv4 and IPv6 addresses. I'm not sure what the database I don't use (MySQL) does (or if it even has a

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

2010-02-02 Thread Tony
- Original Message - From: - kd6...@yahoo.com To: mimedefang@lists.roaringpenguin.com Sent: Tuesday, February 02, 2010 7:43 PM Subject: Re: [Mimedefang] mimedefang letting some spams through...why? --- On Tue, 2/2/10, Tony t...@freeuk.com wrote: - Original Message - From: -

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread -
--- On Tue, 2/2/10, David F. Skoll d...@roaringpenguin.com wrote: ... Actually, the Perl code will never see an IPv6-mapped IPv4 address, because the mimedefang.c code converts such an address to pure IPv4: /* Convert IPv6-mapped IPv4 address to pure IPv4.  That is:    

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread David F. Skoll
- wrote: I really don't like that code, even if it happens to work. Patches accepted. Get your patch in while 2.68 is still in beta... :) Regards, David. ___ NOTE: If there is a disclaimer or other legal boilerplate in the above message, it is NULL

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly [offtopic]

2010-02-02 Thread Michiel Brandenburg
On 2-2-2010 20:49, David F. Skoll wrote: Ah, true. Well... the database I use (PostgreSQL) has a network type that accepts both IPv4 and IPv6 addresses. I'm not sure what the database I don't use (MySQL) does (or if it even has a network type.) Yea I noticed that too MySQL can store ipv4 (as a

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly

2010-02-02 Thread Bernd Petrovitsch
On Die, 2010-02-02 at 13:09 +0100, Michiel Brandenburg wrote: On 2-2-2010 11:34, Bernd Petrovitsch wrote: # taken from Net::IP, and converted to use no external, and handle no padding Hmm, any special reason for not using Net::IP directly? Or did I miss something? That could be done

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly [offtopic]

2010-02-02 Thread Dave O'Neill
On Tue, Feb 02, 2010 at 09:22:40PM +0100, Michiel Brandenburg wrote: Btw .. (this might hurt) any word on integrating File-VirusScan into mimedefang :) ? As I remember there was some talk about it way back. Heh... not for the next release. Or, depending on your point of view, it's already

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

2010-02-02 Thread -
You missed the point. You're scanning every message with SA more than once (at least twice if not more). As the answer doesn't change, you're doing unnecessary work. ___ NOTE: If there is a disclaimer or other legal boilerplate in the above message,

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

2010-02-02 Thread -
Try this regex for detecting an IPv4-compatible IPv6 address: ... =~ qr/^:::(\d{1,3}(\.\d{1,3}){3})$/i ... That should be more precise than strchr(...,'.'); $1 should be the IPv4 address that was extracted. ___ NOTE: If there is a

Re: [Mimedefang] [Patch] relay_is_* not ipv6 friendly [offtopic]

2010-02-02 Thread -
--- On Tue, 2/2/10, Michiel Brandenburg a...@xepa.nl wrote: ... Oh no .. don't tell me there is another conversion coming up .. damn there goes my holiday. If you're calling it a holiday instead of a vacation, you've already converted (or have been converted). ;-)

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

2010-02-02 Thread Jeff Makey
SpamAssassin only considers the text parts of a message when deciding whether it is too big to process, so the presence of large non-text MIME attachments (e.g., images) should not prevent SA from doing its thing when the total amount of text is less than 100K. However, if you are like me and

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

2010-02-02 Thread Henrik K
On Tue, Feb 02, 2010 at 08:06:45PM -0800, Jeff Makey wrote: SpamAssassin only considers the text parts of a message when deciding whether it is too big to process, so the presence of large non-text MIME attachments (e.g., images) should not prevent SA from doing its thing when the total amount