Re: [Mimedefang] Relayed emails can't be filter!

2014-06-12 Thread Bill Cole
On 12 Jun 2014, at 12:26, Cương Bùi wrote: Hi everyone, I'm really stuck here. I configure my sendmail server using smarttable (http://jmaimon.com/sendmail/anfi.homeunix.net/sendmail/smarttab.html) and smart_host feature for routing to different smtp servers, users. All local emails (sm-mta

Re: [Mimedefang] learner indicated ham

2014-08-09 Thread Bill Cole
On 8 Aug 2014, at 12:05, Justin Edmands wrote: Aug 8 12:00:53.067 [19948] dbg: learn: auto-learn: message score: 13.934, computed score for autolearn: 17.583 Aug 8 12:00:53.067 [19948] dbg: learn: auto-learn? ham=0, spam=7, body-points=7.448, head-points=5.511, learned-points=-1.9 Aug 8

Re: [Mimedefang] learner indicated ham

2014-08-12 Thread Bill Cole
On 9 Aug 2014, at 13:41, G.W. Haywood wrote: Hi there, On Sat, 9 Aug 2014, Bill Cole wrote: ... you probably could get a better answer from the broader SA community, but I'll offer a vague rambling one :) It wasn't all that vague. :) You guys do REJECT your spam, don't you? Generally

Re: [Mimedefang] learner indicated ham

2014-08-12 Thread Bill Cole
On 11 Aug 2014, at 10:22, Justin Edmands wrote: Bill, Thank you very much for the response. The detail is much appreciated. As Ged mentioned, not vague, helpful to say the least. The part about highly trusted rules caught my attention: Another way to increase autolearning without going all the

Re: [Mimedefang] Any way to get MD to accept a Postfix queue ID at RCPT time?

2015-04-28 Thread Bill Cole
On 28 Apr 2015, at 15:53, Dianne Skoll wrote: Hi, Actually, this is a more thought-through patch. I don't use Postfix, but if any Postfix users would care to give this a try, I'd appreciate it. Built and installed 2.78 plus that patch, ~4 hours ago on my personal system, works as

Re: [Mimedefang] Any way to get MD to accept a Postfix queue ID at RCPT time?

2015-04-29 Thread Bill Cole
On 29 Apr 2015, at 7:44, Dianne Skoll wrote: On Wed, 29 Apr 2015 00:36:26 -0400 Bill Cole mdlist-20140...@billmail.scconsult.com wrote: Built and installed 2.78 plus that patch, ~4 hours ago on my personal system, works as intended without any sign of trouble on 219 messages, all single-rcpt

[Mimedefang] TIP: 2 ways NOT to get MD to report autolearning info and 1 way that works.

2015-06-23 Thread Bill Cole
I'm dropping this here in the hope that some future MD user who wants Sa learning stats will be saved hours of fumbling and mystification. Long story short: If you want to understand how to do something with MD, don't be afraid to read the code. Diane writes well-formatted well-commented Perl

Re: [Mimedefang] Parser: can't flush: No space left on device and big files in /tmp

2015-10-28 Thread Bill Cole
On 28 Oct 2015, at 16:48, Tom Knutson wrote: Lately we are seeing this error in the maillog several times a day: Oct 28 15:10:03 mail mimedefang-multiplexor[37348]: Slave 1 stderr: MIME::Parser: can't flush: No space left on device at /usr/local/lib/perl5/site_perl/5.8.9/MIME/Parser.pm line

Re: [Mimedefang] Embedded Perl

2015-09-21 Thread Bill Cole
On 21 Sep 2015, at 17:04, Amit Gupta wrote: Hi, I'm using Centos7.1 and mimedefang 2.75 (still need to upgrade to latest). The documentation indicates that if you start mimedefang with the -E parameter, it uses embedded perl which is supposedly faster. I was wondering if someone could give me

Re: [Mimedefang] WARNING/ALERT .html attachments

2016-06-05 Thread Bill Cole
On 3 Jun 2016, at 1:05, Kees Theunissen wrote: .html and .htm are not listed as "bad extensions" in the "suggested-minimum-filter-for-windows-clients" script in the MIMEDefang download. But obviously .html and .htm _ARE_ dangerous. Well, yes. Some of us have been trying to convince the

Re: [Mimedefang] mimedefang send a copy of all mails to a directory

2016-06-27 Thread Bill Cole
On 27 Jun 2016, at 9:01, Shaun Megaw wrote: Hi I have the following entry sub filter_begin { system('cp', 'INPUTMSG', '/home/shaun'); } This created a file called /home/shaun/INPUTMSG which is over written by each new mail Is there a way to send a copy of all mails in individual files to

Re: [Mimedefang] long dns timeouts when first dns in /etc/resolv.conf is down

2016-03-19 Thread Bill Cole
On 14 Mar 2016, at 12:08, G.W. Haywood wrote: Hi there, On Mon, 14 Mar 2016, Marcus Schopen wrote: ... It shouldn't make a difference to mimedefang if one of the dns server is down. Any ideas? Run a nameserver of your own? This is ALWAYS the right approach for a mail system that traffic

Re: [Mimedefang] long dns timeouts when first dns in /etc/resolv.conf is down

2016-03-20 Thread Bill Cole
On 14 Mar 2016, at 10:06, Dianne Skoll wrote: On Mon, 14 Mar 2016 14:11:38 +0100 Marcus Schopen wrote: It shouldn't make a difference to mimedefang if one of the dns server is down. Any ideas? I think this is an artifact of the Net::DNS Perl module, which doesn't seem

Re: [Mimedefang] documentation bug/omission for newbies

2016-04-20 Thread Bill Cole
On 20 Apr 2016, at 11:46, starlight.201...@binnacle.cx wrote: On Tue, Apr 19 2016 20:58 -0400 Dianne Skoll dfs at roaringpenguin.com wrote: Here it has taken me a couple of days to get up to speed, but just looking at that Microsoft picture would have taken me to the same place in 15 minutes.

Re: [Mimedefang] add_recipient and delete_recipient

2016-07-15 Thread Bill Cole
On 14 Jul 2016, at 16:21, Javier Kohan wrote: Hello, Im trying to use those functions in filter_recipient and they seem not to work, at least in the way I use them. I've run into exactly that problem *twice* and both times it had the same root cause: I had not provided the "-t" option to MD

Re: [Mimedefang] [MIMEDefang] Postfix add headers to outgoing mails

2017-02-03 Thread Bill Cole
On 2 Feb 2017, at 12:21, m.roess...@t-systems.com wrote: Hi folks, sorry for my very basic questions about this milter and the necessary configuration to bind to the MTA. I'm very new in this field, but i searched the whole week for a solution and look at so much howtos, threads and other

Re: [Mimedefang] $QueueId not allways defined

2016-09-23 Thread Bill Cole
On 23 Sep 2016, at 17:58, Thomas Kristensen wrote: Hallo I just installed postfix and mimedefang, and i works pretty nice. But in some cases that $QueueId is not defined, only as NOQUEUE. I cant see why this is only happing to some of the mails and not all. I tend to be some a certin host,

Re: [Mimedefang] MIMEDefang 2.79 is released

2016-09-28 Thread Bill Cole
On 26 Sep 2016, at 10:14, Dianne Skoll wrote: Hello, MIMEDefang 2.79 is available at http://mimedefang.org/download Indeed, and of course updating to a new release is when bugs are discovered. The shebang line in script/mimedefang-util is hardcoded with /usr/bin/perl rather than having a

Re: [Mimedefang] Sender Address Verification

2016-11-23 Thread Bill Cole
On 19 Nov 2016, at 7:01, Simon Standley wrote: Guys, In conversations on this list in days gone by, I seem to recall sender address verification via the likes of smf-sav milter, or through mimedefang, was considered evil heresy, likely to get you blacklisted. Yes. For good reason. If you

Re: [Mimedefang] newbie prerequisite install questions

2016-11-22 Thread Bill Cole
On 21 Nov 2016, at 13:04, Michael Fox wrote: Thanks Mickey. That doesn't appear to be a "module", but rather an archive of multiple modules, right? (I'm new to CPAN, too). MailTools is a Distribution: a collection of related modules maintained as one project because they are

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Bill Cole
On 2 Dec 2016, at 12:28, Marcus Schopen wrote: Hi Benoît, Am Freitag, den 02.12.2016, 16:57 +0100 schrieb Benoit Panizzon: Hi all Does anyone know, if it's possible to use ClamdSock = "host:port"; in MIMEDefang? I found very old posts stating, that clamd can only scan local files, thus

Re: [Mimedefang] Connecting Clamd via inet socket?

2016-12-02 Thread Bill Cole
On 2 Dec 2016, at 12:01, Dianne Skoll wrote: On Fri, 2 Dec 2016 16:57:32 +0100 Benoit Panizzon wrote: Does anyone know, if it's possible to use ClamdSock = "host:port"; in MIMEDefang? No; the built-in code uses IO::Socket::UNIX and can only scan local files. You

Re: [Mimedefang] OT: Help Wanted at Virtru for a Programmer w/Java, Perl, Javascript, etc. and SMTP/MTA experience

2017-03-02 Thread Bill Cole
On 28 Feb 2017, at 19:46, Kevin A. McGrail wrote: Off-topic Help-Wanted posting but this is one of those lists where someone might know Java and can argue RFC5822 as it it was chapter and verse. Relevant tweet: https://twitter.com/obra/status/156597976255574016 (But Jesse's definitely more

[Mimedefang] BUG: filter_begin always gets a multipart MIME::Entity

2017-07-11 Thread Bill Cole
I recently tried to revive an old idea that I had never previously implemented fully (much less tested) to catch an idiosyncratic spam pattern: messages labeled as multipart/mixed at the top level which in fact only contain a single text/plain part. Imagine my surprise on seeing that whenever

Re: [Mimedefang] BUG: filter_begin always gets a multipart MIME::Entity

2017-07-12 Thread Bill Cole
On 12 Jul 2017, at 7:14, Dianne Skoll wrote: > There's an escape hatch: You can check the (undocumented, alas) global > variable $WasMultiPart to determine if the original message was multipart. Excellent! Please keep that global. Thank you for the quick reply and for MD.

Re: [Mimedefang] REVISED: postfix/mimedefang socket

2017-09-23 Thread Bill Cole
On 22 Sep 2017, at 13:47, Michael Fox wrote: Sorry if this has been asked/answered before. I've searched and searched and found no consistent, complete answers. What are the steps to configure MIMEDefang and Postix to share a socket? The workable solutions depend on your OS (and with

[Mimedefang] At least I can be a negative example... (was Re: Reload doesnt work)

2017-10-04 Thread Bill Cole
to the list for the noise. "Bill Cole" <mdlist-20140...@billmail.scconsult.com> wrote: OR if you are not using the mimedefang-multiplexor (which I think everyone should...) MIMEDefang hasn't supported *not* using the multiplexor for ages, since at least version 2.51 released

Re: [Mimedefang] best practices for handling filename extensions

2017-10-05 Thread Bill Cole
On 5 Oct 2017, at 8:04, Mark Coetser wrote: Pretty sure the filetype matching is done by checking the actual mime type of the file not just what the file extension is, so just renaming the file will still not allow the file through. The file

Re: [Mimedefang] base64 to text

2017-09-26 Thread Bill Cole
On 25 Sep 2017, at 20:49, Kees Theunissen wrote: On Mon, 25 Sep 2017, Dianne Skoll wrote: On Mon, 25 Sep 2017 10:46:01 -0700 "Michael Fox" wrote: I'd like to be able to deliver HTML and Base64 messages to those clients. You can do it by throwing away non-text/plain parts

Re: [Mimedefang] REVISED: postfix/mimedefang socket

2017-09-26 Thread Bill Cole
On 26 Sep 2017, at 11:53, Dianne Skoll wrote: On Tue, 26 Sep 2017 09:38:18 -0400 "Bill Cole" <mdlist-20140...@billmail.scconsult.com> wrote: bigsky:mimedefang-2.82 bill$ grep -A3 'stop)' The stop_it function in init-script.in and the stop function in redhat/mimedefang-i

Re: [Mimedefang] REVISED: postfix/mimedefang socket

2017-09-24 Thread Bill Cole
On 23 Sep 2017, at 20:37, Michael Fox wrote: Thanks Bill, After some more research I found the bug and I think I've "fixed" it. See below. Option 1: Use inet socket /etc/default/mimedefang: SOCKET=inet:8899@localhost

Re: [Mimedefang] REVISED: postfix/mimedefang socket

2017-09-26 Thread Bill Cole
On 26 Sep 2017, at 9:24, Dianne Skoll wrote: On Mon, 25 Sep 2017 16:08:46 -0500 Richard Laager wrote: There are a couple ways to address this. As discussed, the init script can be changed to always wait on stop. Then the automatic mapping in systemd should Just Work.

Re: [Mimedefang] Reload doesnt work

2017-10-03 Thread Bill Cole
On 2 Oct 2017, at 4:03, Thomas Kristensen wrote: Hey I got this problem that the reload function doesnt reload my rules. Nothings happens when i use the reload, i have to stop mimedefang and start it again to use the changes made in mimedefang-filter. This is platform-specific. If your

Re: [Mimedefang] head->get('Subject') adds "#012"

2017-10-09 Thread Bill Cole
On 9 Oct 2017, at 22:26, Michael Fox wrote: I'm using the following to retrieve the message subject header: $subj = $entity->head->get('Subject'); First is there a better way? In your mimedefang-filter script? Yes. $Subject. See the 'GLOBAL VARIABLES SET BY MIMEDEFANG.PL' section of

Re: [Mimedefang] base64 to quoted-printable

2017-10-11 Thread Bill Cole
On 10 Oct 2017, at 18:24, Michael Fox wrote: Then, I see an action_change_header(), but no action_change_body(). So, presume I need to build a new entity by copying headers from the old entity, replacing the Content-Transfer-Encoding header, and replacing the body. Then use

Re: [Mimedefang] REVISED: postfix/mimedefang socket

2017-09-27 Thread Bill Cole
On 26 Sep 2017, at 23:47, Michael Fox wrote: Bill, you and Dianne are both right, depending on the version. See my previous message. I provided a diff between v2.78 and v2.79. That's only in the Debian variant, not Dianne's original code. Everything in the top-level 'debian' directory of

Re: [Mimedefang] score USER_IN_WHITELIST_TO

2017-11-22 Thread Bill Cole
local SA rules and the local DNSBL (not queryable from outside although idiots do try) which lists space used by a whole lot of perfectly innocent people (literally billions) and more than a few part-time miscreants (e.g. SendGrid, MailChimp, etc.) -- Bill Cole b...@sccons

Re: [Mimedefang] Error with mimedefang + clamd

2017-11-22 Thread Bill Cole
tter this way. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Currently Seeking Steady Work: https://linkedin.com/in/billcole ___ NOTE: If there is a disclaimer or other legal boilerp

Re: [Mimedefang] utf-8 issue?

2017-12-14 Thread Bill Cole
On 14 Dec 2017, at 9:14 (-0500), Dianne Skoll wrote: On Wed, 13 Dec 2017 20:37:36 -0500 "Bill Cole" <mdlist-20140...@billmail.scconsult.com> wrote: -return IO::File->new(\ $self->{MBS_Data}, $mode); +return IO::Scalar->new(\ $self->{MBS_Data}, $mode); Th

Re: [Mimedefang] utf-8 issue?

2017-12-13 Thread Bill Cole
On 13 Dec 2017, at 16:39, Dianne Skoll wrote: On Wed, 13 Dec 2017 16:28:58 -0500 "Bill Cole" <mdlist-20140...@billmail.scconsult.com> wrote: Unfortunately, I tested a bit more and found that bug is still extant in 5.509, when tested with the one-liner in that bug rep

Re: [Mimedefang] utf-8 issue?

2017-12-13 Thread Bill Cole
On 13 Dec 2017, at 16:39, Dianne Skoll wrote: It doesn't make sense because MIME messages are alway 8-bit messages; you need to encode everything as UTF-8 first before passing to MIME::Entity->build(). Re-reading that, I disagree. It is entirely possible (as stated explicitly in RFC2045)

Re: [Mimedefang] utf-8 issue?

2017-12-12 Thread Bill Cole
. That error message would only be generated by line 1892 in the current version. My bet is that the typo fix cited in the Changelog for 5.507 also fixed this... -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Currently Seeking Steady

Re: [Mimedefang] delete part best practice

2017-12-12 Thread Bill Cole
the man page for mimedefang-filter, specifically the description of "action_drop" which you would call from your filter() implementation when you deem a part worthy of dropping. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com

Re: [Mimedefang] utf-8 issue?

2017-12-13 Thread Bill Cole
On 13 Dec 2017, at 2:31, Mark Coetser wrote: On 13/12/2017 00:09, Bill Cole wrote: [...] I'd bet this is the same as this bug: https://rt.cpan.org/Public/Bug/Display.html?id=105377 Which remains open but maybe not unfixed. and the filter is pretty much the stock microsoft mimedefang-filter

Re: [Mimedefang] score USER_IN_WHITELIST_TO

2017-11-21 Thread Bill Cole
into a special IMAP mailbox. This is far simpler than training users to manage a user_prefs file or database record. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Currently Seeking Steady Work: https://linkedin.com

Re: [Mimedefang] mimedefang blocked since this morning

2018-06-04 Thread Bill Cole
implementation of each MD-called subroutine checks for the existence of a particular file in ~defang/ and if that file exists, uses md_syslog() to log a message about the call. This lets me switch debugging on and off by touching and removing files. -- Bill Cole b...@scconsult.com or billc

Re: [Mimedefang] cpanel whm centos 6.9 flag on header keywords?

2018-01-10 Thread Bill Cole
On 10 Jan 2018, at 11:05, Dianne Skoll wrote: > Isn't procmail no longer maintained because of a vulneravblity? > > > I believe it's still maintained. Nope. See https://marc.info/?l=openbsd-ports=141634350915839=2 ___ NOTE: If there is a disclaimer or

Re: [Mimedefang] filter for dummys like me :)

2018-07-15 Thread Bill Cole
Mail::DMARC as ebuild to have it, the 2 others is default portage where to start make it work ? filter_end() -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Currently Seeking Steadier Work: https://linkedin.com/in/billcole

Re: [Mimedefang] Question about base install from FreeBSD pkg system

2018-10-11 Thread Bill Cole
il. The line below, with whitespace removed, should be seen by any spam filter as unequivocal spamsign: XJS*C4JDBQADN1 .NSBN3*2IDNEN* GTUBE-STANDARD-ANTI-UBE- TEST-EMAIL*C.34X -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) C

Re: [Mimedefang] local rule with wildcard checking subject

2018-10-16 Thread Bill Cole
On 16 Oct 2018, at 4:21, MAYER Hans wrote: Dear All, I am using mimedefang version 2.79 in combination with SpamAssassin. I have several rules defined in /etc/mail/sa-mimedefang.cf which all works fine. Now I tried to define a rule testing a subject with a wildcard. But all my tests failed.

[Mimedefang] Network connection for MD->ClamAV?

2019-02-21 Thread Bill Cole
this with MD? Can you share any hints? Ideally, a solution would work with simple round-robin DNS (as the Exim 'exiscan' feature does) to spread the load but if I have to write that code myself or specify a load balancer (ugh) I guess I can. -- Bill Cole b...@scconsult.com or billc

Re: [Mimedefang] Passing on added Header from SpamAssassin to MIMEDefang

2019-04-12 Thread Bill Cole
action_add_header("X-Spam-Score", "$hits ($score) $names"); action_add_header("X-Spam-Source", "$relayasncidr on $relayasn via $relaycountry in $languages"); action_add_header("X-Spam-Hops", "$relayhops"); ***

Re: [Mimedefang] A rose by any other name... Renaming MIMEDefang. What's your idea for a name?

2019-12-10 Thread Bill Cole
r winner and pun du jour encompassing > filtering/perl/oysters/mollusc's all in one horribly punny name. > > I recommend you think about a backronym for LUSC now :-) Library for User Specified Contraptions. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *

Re: [Mimedefang] KAM for MIMEDefang Leadership Role

2019-10-23 Thread Bill Cole
. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) ___ 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

Re: [Mimedefang] KAM for MIMEDefang Leadership Role

2019-10-21 Thread Bill Cole
en years, worked with him more closely since 2016 as a SpamAssassin committer and ASF member, and worked as an independent consultant for PCCC (and hence with Kevin) since 2018. I don't believe there could be a better caretaker for MIMEDefang as an OSS project in lieu of Dianne. -- Bil

Re: [Mimedefang] MS Office document macros

2020-01-25 Thread Bill Cole
good mail doesn't belong in SA but there's no real damage as long as such things are isolated to plug-ins. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not For Hire (currently) __

Re: [Mimedefang] utf-8 issue?

2020-01-29 Thread Bill Cole
enguin.com/pipermail/mimedefang/2018-June/038300.html) but it was not fixed in 2.84 and I'm not sure exactly what the fix might be. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not

Re: [Mimedefang] Help with header checking

2020-11-26 Thread Bill Cole
different things: but I see the latter is also failing and I thought that might give some hint. If there's a better way to see why spamassassin fails it would probably enough (although curiosity... :). Look for the call to "spam_assassin_check()" in mimedefang-filter and work backwards. -

Re: [Mimedefang] Mimedefang to strip HTML via sieve

2020-12-21 Thread Bill Cole
of the filter* subroutines a Mime::Entity object containing the relevant MIME object (whole message or sub-part) and metadata. You can modify it at will. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Currently Available

Re: [Mimedefang] Test

2020-11-19 Thread Bill Cole
On 18 Nov 2020, at 18:27, Dianne Skoll via MIMEDefang wrote: > Is this list still alive? It's not dead yet! -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Currently Available For H

Re: [Mimedefang] Future development

2020-11-22 Thread Bill Cole
may not) be the basis for future object structures. This could result in supporting existing configurations with a code base that is easier to maintain and understand. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Curren

Re: [Mimedefang] Is this list still alive?

2021-04-01 Thread Bill Cole
attempted to post a test on March 3 which never showed up on the list. -- Bill Cole b...@scconsult.com or billc...@apache.org (AKA @grumpybozo and many *@billmail.scconsult.com addresses) Not Currently Available For Hire ___ NOTE