Re: Expanded Spam Report

2023-08-08 Thread David Bürgin
Hello, perhaps try setting report_safe 0 Then, according to the documentation at ‘man Mail::SpamAssassin::Conf’, a header ‘X-Spam-Report’ will be added that might just be what you need.

Re: Best practice for adding headers?

2023-07-09 Thread David Bürgin
Hello Robert, > Now, I am a bit uncertain about what would be the best practice for a > milter to place its headers. > > I've patched spamass milter to let any previously added "X-Spam" > headers untouched, and just add its own headers on top of the header > list as required by spamassassin's res

Re: authres missing when ran from spamass-milter

2023-05-31 Thread David Bürgin
Matus UHLAR - fantomas: > > Matus UHLAR - fantomas: > > > that will need spamass-milter change. > > On 31.05.23 13:52, David Bürgin wrote: > > Have you tried setting: > > > > authres_trusted_authserv fantomas.fantomas.sk > > I did. that's why

Re: authres missing when ran from spamass-milter

2023-05-31 Thread David Bürgin
Matus UHLAR - fantomas: > that will need spamass-milter change. Have you tried setting: authres_trusted_authserv fantomas.fantomas.sk I think this should work without changing anything in the milter …

Re: authres missing when ran from spamass-milter

2023-05-30 Thread David Bürgin
Matus UHLAR - fantomas: > I happily use spamass-milter to filter spam at SMTP time. > Prior to spamass-milter, I use pyspf-milter/opendkim/opendmarc milters to > mark if mail passes coresponding checks. > > I also use authres plugin to use these results. However, it does not work > when receivin

Re: spamassassin milter auto ip address update

2023-03-06 Thread David Bürgin
Marc: > > > I recently had an issue where mail was temporarily rejected because > clamav-milter/spamass-milter could not connect to clamd/spamd. Clamd/Spamd > are a tasks that can automatically change hosts and thus their ips. A simple > restart of the milter fixes this (resolves the new ip).

Re: The rewrite_header Subject [SPAM] directive has stopped working?!

2023-02-28 Thread David Bürgin
Bill Cole: > If your mailstore uses mbox or Maildir, the unmaintained antique software > named "procmail" could be used for delivery. As an antique myself, I use it, > but I cannot in good conscience recommend anyone else adopt it de novo. It looks like procmail is maintained again, by the origina

Auto-learning ‘considered harmful’: not so much when rejecting spam?

2023-01-17 Thread David Bürgin
I have heard it said many times on this list that auto-learning is discouraged, so I decided to finally look into disabling it. But then I realised that I do have a use for auto-learning: In my setup, I use a milter to reject certain spam (score > 10.0). Now, if I turn off auto-learning I lose som

Re: Espoofer - An Email Spoofing Testing Tool That Aims To Bypass SPF/DKIM/DMARC And Forge DKIM Signatures

2022-12-28 Thread David Bürgin
Brent Clark: > Something to see and keep an eye on (Read: Why build this tool) > > https://www.kitploit.com/2022/01/espoofer-email-spoofing-testing-tool.html This is old news. The espoofer tool and research were presented I think in 2020 and were widely discussed then. And bug fixes for, say, Ope

Re: subscribe to blacklist for domains

2022-08-14 Thread David Bürgin
Martin Gregorie: > On Sun, 2022-08-14 at 11:39 +1000, Noel Butler wrote: > > On 14/08/2022 02:38, Martin Gregorie wrote: > > > > > 3) It would be rather trivial to return spam to sender with a > > > suitable > > > > WTF, that has been a terrible idea since the 90s, given most spam is > > spoofed

Re: manual set of name

2022-07-03 Thread David Bürgin
sebast...@debianfan.de: > there is a line in the mail-header - for example: > > X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.server.org > > Can i set the "name" manually - for example > > X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on > manual.set.server.name

Re: Log reporting spamd[11912]: dns: [...] messages

2022-05-29 Thread David Bürgin
DL Neil: > SpamAssassin x86_64 3.4.0 CentOS 6.el7 release > Postfix 2.10.1 > unbound 1.6.6 This does not answer your question, but I noticed that the versions you gave are all ~5–8 years old. Often enough such problems disappear after upgrading to a current version.

Re: How to deal with bounce messages

2022-04-24 Thread David Bürgin
se can't guarantee that. > > > > > > This also means that SPF can't be used, thus either those messages have > > > DKIM > > > signatures, or they CAN NOT pass DMARC. > > On 22.04.22 16:22, David Bürgin wrote: > > In SPF, when the reverse-pa

Re: How to deal with bounce messages

2022-04-22 Thread David Bürgin
Matus UHLAR - fantomas: > > > and spf is unapplicable since the envelope from is null. > > > > Isn't that the case with all bounce messages? > > usually yes, it should be. But we of course can't guarantee that. > > This also means that SPF can't be used, thus either those messages have DKIM > si

Re: What does this header mean?... X-Spam_score_int: -38

2022-03-31 Thread David Bürgin
Don Saklad: > What does this header mean?... > X-Spam_score_int: -38 Doesn’t look like anything from SpamAssassin.

Re: getting spamass-milter to work with remote spamd (on CentOS8)

2022-02-06 Thread David Bürgin
Marc: > I have problems configuring the spamass-milter to connect to the remote > spamd. I am constantly getting > > getaddrinfo(192.168.10.243:34219) failed: Name or service not known > could not resolve any hosts (192.168.10.243:34219): no such host > > Nothing of these seem to work > -D 192.1

Re: spf fails at apache.org forwards ipv6

2022-01-19 Thread David Bürgin
Benny Pedersen: > : host > mx1-he-de.apache.org[2a01:4f8:c2c:2bf7::1] said: 550 5.7.23 > : Recipient address rejected: ASF gnomes > rejected your message: SPF fail - not authorized. See > https://infra.apache.org/mail-rejection.html (in reply to RCPT TO > command) > > > is it solv

Re: Rawheader or Rawsubject? Or how to match UTF-8 Emoji in Header.

2021-12-14 Thread David Bürgin
Look into ‘normalize_charset 1’. For background maybe this: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7656

Re: Spamassassin detects spam but don't add X-Spam headers

2021-11-26 Thread David Bürgin
Cyrille Bollu: > spamass+   673     1  0 13:06 ?        00:00:00 /usr/sbin/spamass-milter -P > /var/run/spamass/spamass.pid -f -p /var/spool/postfix/spamass/spamass.sock -u > spamass-milter -d func,misc,net,poll,rcpt,spamc,str,uori -i 127.0.0.1 -- -s > 10485760 -r 10 -r 10 is in the wrong place

Re: Spamassassin detects spam but don't add X-Spam headers

2021-11-26 Thread David Bürgin
> What should happen technically is that Postfix connects to the milter, > the milter uses spamc to communicate with SpamAssassin/spamd, and > finally the milter will add the new headers it receives from > SpamAssassin. To expand a little bit on this, the crucial thing is that all components can c

Re: Spamassassin detects spam but don't add X-Spam headers

2021-11-26 Thread David Bürgin
And does Postfix connect via the milter and spamc, or does it call spamassassin directly? For example, I have this in /etc/postfix/main.cf: smtpd_milters = ... unix:spamassassin/spamassassin-milter.sock Another thing to try is enable more logging in spamass-milter to see what it’s doing. Wha

Re: Spamassassin detects spam but don't add X-Spam headers

2021-11-25 Thread David Bürgin
First we would need to see the spamd config, SpamAssassin config, spamass-milter config to see how it is all wired up.

Re: handle_user and connect to spamd failed

2021-10-18 Thread David Bürgin
One thing that needs clarification is how you want to integrate spam filtering with SpamAssassin with Postfix: Apparently, you are trying to do this with two different methods at once? Once with spamass-milter, which is a milter that uses spamc to integrate SpamAssassin with Postfix. And once with

Re: problems updating when using a cron job on debian 11

2021-09-02 Thread David Bürgin
Hello Jeff, > spamassassin got a user named 'spamd' and is run under it. Are you sure? Note the user and group: $ ls -ald /var/lib/spamassassin drwxr-xr-x 6 debian-spamd debian-spamd 81 Apr 3 06:15 /var/lib/spamassassin Ciao, David

Score for certain spam

2021-08-17 Thread David Bürgin
In your experience, what is a good ‘certain spam’ threshold? By that I mean the score above which messages are virtually always spam, no false positives. The default threshold for spam is 5.0, which works well for me. Only very rarely a ham message scores above that and lands in my Junk folder. Wo

Re: Customise hostname shown in X-Spam-Checker-Version?

2021-07-31 Thread David Bürgin
David Bürgin: I should have just tried before asking! Thank you. This works: add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on mail.mydomain.ch And voilà: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.mydomain.ch A final remark: This solution has a

Re: Customise hostname shown in X-Spam-Checker-Version?

2021-07-30 Thread David Bürgin
David Bürgin: Resolved. Perhaps the documentation should be updated. There are notes for options ‘remove_header’ and ‘clear_headers’ that ‘X-Spam-Checker-Version is not removable’, so a straightforward fix to the documentation would be replacing sentence note that Checker-Version can not be

Re: Customise hostname shown in X-Spam-Checker-Version?

2021-07-30 Thread David Bürgin
Antony Stone: > On Friday 30 July 2021 at 21:13:43, David Bürgin wrote: > > > Is there a way to customise the hostname shown in the line: > > > > X-Spam-Checker-Version: > > No. > > https://spamassassin.apache.org/full/3.4.x/doc/Mail_SpamAssassin_Conf.h

Customise hostname shown in X-Spam-Checker-Version?

2021-07-30 Thread David Bürgin
Is there a way to customise the hostname shown in the line: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on somehost.someprovider.com So that it reads: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mail.mydomain.ch I understand that I could change the hostname of the ho

Re: sa daemon loads config different to shell ?

2021-07-27 Thread David Bürgin
Dipl-Inform. Frank Gadegast: On 27.07.21 14:18, David Bürgin wrote: Dipl-Inform. Frank Gadegast: Seems to be, that spamass-milter simply strippes out any X-Spam* header lines, not caring, if the own call to spamd sets them, hm. Im really not getting, why spamass-milter should strip X-Spam

Re: sa daemon loads config different to shell ?

2021-07-27 Thread David Bürgin
Matus UHLAR - fantomas: On 27.07.21 14:18, David Bürgin wrote: There is an alternative milter (which I maintain) that adds all X-Spam-* headers received from spamd. the original milter does the same. Adds headers from spamd. However, it does NOT take into account ay X-Spam-* headers received

Re: sa daemon loads config different to shell ?

2021-07-27 Thread David Bürgin
Dipl-Inform. Frank Gadegast: Seems to be, that spamass-milter simply strippes out any X-Spam* header lines, not caring, if the own call to spamd sets them, hm. Im really not getting, why spamass-milter should strip X-Spam-lines of the header AFTER SA was running. If Im right, SA is stripping t

Re: SPF plugin ignores existing Authentication-Results

2021-06-27 Thread David Bürgin
sults: header(s) added by the former milter appear after Received: and SA doesn't trust it. ...nobody sees the synthetized Received: header later, they see Received: added by MTA, before Authentication-Results added by mentioned milter. On 18.05.21 14:12, David Bürgin wrote: Thank you, this

Re: SPF plugin ignores existing Authentication-Results

2021-05-23 Thread David Bürgin
David Bürgin: > David Bürgin: > > Bother. I think I will try to modify my SpamAssassin milter, so that it > > will add a synthetic ‘internal’ Received header right after the > > Authentication-Results headers … that should trick SpamAssassin into > > recognising them a

Re: SPF plugin ignores existing Authentication-Results

2021-05-18 Thread David Bürgin
Matus UHLAR - fantomas: this is more an issue of how milter itself operates. the milter is supposed to see e-mail as it was received from (smtp) client - even without Received: headers, just with other milters' modifications. If SpamAssassin (SA from now) has to see Authentication-Results: head

Re: SPF plugin ignores existing Authentication-Results

2021-05-18 Thread David Bürgin
Martin Gregorie: Have you set the 'internal_networks' configuration parameter (in local.cf)? If not, try that first. Thanks, but I don’t think this helps here. I don’t know what I could add to internal_networks that would somehow change the behaviour. The problem is with how milters for SpamAss

Re: SPF plugin ignores existing Authentication-Results

2021-05-18 Thread David Bürgin
David Bürgin: Bother. I think I will try to modify my SpamAssassin milter, so that it will add a synthetic ‘internal’ Received header right after the Authentication-Results headers … that should trick SpamAssassin into recognising them as internal. Here’s the plan to address this in

Re: SPF plugin ignores existing Authentication-Results

2021-05-17 Thread David Bürgin
David Bürgin: I remember asking here if SpamAssassin is able to use these instead of doing its own SPF queries. Now with debug logging on, I see that SpamAssassin isn’t actually using these results: ... Is this a bug in the SPF plugin? Do I need to set something in my config? I’m using

SPF plugin ignores existing Authentication-Results

2021-05-17 Thread David Bürgin
I use a separate SPF component (https://crates.io/crates/spf-milter). It conveys SPF results for both HELO and MAIL FROM identity, each in its own Authentication-Results header: Authentication-Results: mail.gluet.ch; spf=fail smtp.mailfrom=bounces.amazon.co.jp Authentication-Results: mail

Make SpamAssassin use SPF results in an Authentication-Results header?

2020-11-04 Thread David Bürgin
Hello, as far as I understand, SpamAssassin can recognise and consume incoming SPF results in an Authentication-Results or Received-SPF header, so that it doesn’t have to do its own SPF evaluation. I’m using SpamAssassin in a milter setup with Postfix, and have an SPF milter that runs before Spam

Re: SpamAssassin Milter – Milter for spam filtering with SpamAssassin

2020-03-11 Thread David Bürgin
Matus UHLAR - fantomas: > rewrite from scratch? It is, one of those infamous RIIR (rewrite it in Rust) projects … > what I miss in spamass-milter is: > - preserving more X-Spam-* headers The new milter adds all ‘X-Spam-’ headers received from spamd, if that’s what you had in mind. > - defining

Re: SpamAssassin Milter – Milter for spam filtering with SpamAssassin

2020-03-09 Thread David Bürgin
@lbutlr: > On 09 Mar 2020, at 10:43, David Bürgin wrote: >> I used to be a user of an alternative milter, spamass-milt, > > Do you mean spamass-milter or is this another filter for SA I don’t know? Oh yes, it’s named ‘spamass-milt’ on its homepage https://savannah.nongnu.org/p

SpamAssassin Milter – Milter for spam filtering with SpamAssassin

2020-03-09 Thread David Bürgin
Hello, I have created a new milter implementation for SpamAssassin, firstly for my own purposes but perhaps some of you might be interested, too. https://gitlab.com/glts/spamassassin-milter SpamAssassin Milter is a milter application that filters email through SpamAssassin server usi