Re: Difference between spamc -L and sa-learn

2024-05-21 Thread Matus UHLAR - fantomas
On 2024-05-18 at 10:26:54 UTC-0400 (Sat, 18 May 2024 16:26:54 +0200) Francis Augusto Medeiros-Logeay is rumored to have said: Is there any difference between using spamc -L and sa-learn ? On 18.05.24 11:41, Bill Cole wrote: Yes. The compiled-C spamc binary loads no Perl, it just talks over a

Re: Difference between spamc -L and sa-learn

2024-05-18 Thread Bill Cole
On 2024-05-18 at 10:26:54 UTC-0400 (Sat, 18 May 2024 16:26:54 +0200) Francis Augusto Medeiros-Logeay is rumored to have said: Hi, Is there any difference between using spamc -L and sa-learn ? Yes. The compiled-C spamc binary loads no Perl, it just talks over a socket to spamd, which is

Difference between spamc -L and sa-learn

2024-05-18 Thread Francis Augusto Medeiros-Logeay
Hi, Is there any difference between using spamc -L and sa-learn ? I noticed that the later is way slower. I don’t use a journal for local updating, so both write directly to the database. Best, Francis

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Sidney Markowitz
Bill Cole wrote on 22/03/24 8:36 am: It seems to me that it would require extension of the spamc/spamd protocol and cargo-culting some code from spamassassin to spamd. Doesn't look like much cargo-culting to do. The spamassassin script just calls a function in Mail::SpamAssassin.pm for

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Kris Deugau
nalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhere that I don't? Does anyone have any rationale for this missing functionality? I don't expect that it would be difficult to add. (Something I've believed every ti

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Bill Cole
me]list functionalities of the >> spamassassin script when using the spamc/spamd interface. >> >> Does anyone see it hiding somewhere that I don't? >> >> Does anyone have any rationale for this missing functionality? >> >> I don't expect that it would b

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Bill Cole
ck,welcome]list functionalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhere that I don't? Does anyone have any rationale for this missing functionality? I don't expect that it would be difficult to add. (Something I've believed eve

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Bill Cole
he spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhere that I don't? Does anyone have any rationale for this missing functionality? I don't expect that it would be difficult to add. (Something I've believed every time I've taken on

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread giovanni
On 3/20/24 21:58, Bill Cole wrote: I'm not sure how I've not noticed before, but unless I'm missing something, there is no way to replicate the [block,welcome]list functionalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhe

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Matus UHLAR - fantomas
On 20.03.24 16:58, Bill Cole wrote: I'm not sure how I've not noticed before, but unless I'm missing something, there is no way to replicate the [block,welcome]list functionalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding s

Re: Doesn't spamc/spamd need block/welcomeliist support???

2024-03-21 Thread Kris Deugau
Bill Cole wrote: I'm not sure how I've not noticed before, but unless I'm missing something, there is no way to replicate the [block,welcome]list functionalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhere that I don&

Doesn't spamc/spamd need block/welcomeliist support???

2024-03-20 Thread Bill Cole
I'm not sure how I've not noticed before, but unless I'm missing something, there is no way to replicate the [block,welcome]list functionalities of the spamassassin script when using the spamc/spamd interface. Does anyone see it hiding somewhere that I don't? Does anyon

Re: milter vs spamc

2024-01-15 Thread Mike Bostock via users
In your message regarding Re: milter vs spamc dated 15/01/2024, Mike Bostock said ... > In your message regarding Re: milter vs spamc dated 15/01/2024, Benoit > Panizzon said ... > > Hi > > > What are the pros and cons? > > In my opinion, an email should eith

Re: milter vs spamc

2024-01-15 Thread Mike Bostock via users
In your message regarding Re: milter vs spamc dated 15/01/2024, Benoit Panizzon said ... > Hi > > What are the pros and cons? > In my opinion, an email should either be received by a MTA and > delivered to the recipient, or rejected during the SMTP phase. Thanks everyone for

Re: milter vs spamc

2024-01-15 Thread Benoit Panizzon
Hi > The only con is that milter can't apply multiple SA settings when single > mail has multiple destination users - it only has to use single setting for > them. We found a way around this, we use MIMEDefang as Milter and have built database lookups in the config. Usually, per user SA settin

Re: milter vs spamc

2024-01-15 Thread Matus UHLAR - fantomas
On 14.01.24 22:22, Mike Bostock via users wrote: I currently have users set up with spamc called in .procmailrc However, I have quite a few aliases/redirects in sendmail virtusertable who are not being protected by Spamassassin. spamass-milter has setting for default user (-U username) that

Re: milter vs spamc

2024-01-15 Thread Benoit Panizzon
Hi > What are the pros and cons? In my opinion, an email should either be received by a MTA and delivered to the recipient, or rejected during the SMTP phase. This eliminates: * Emails 'disappearing' (false positives as example) * Sending late bounces to fake sender when rejected by the LDA So

Re: milter vs spamc

2024-01-14 Thread Benny Pedersen
Mike Bostock via users skrev den 2024-01-14 23:22: I currently have users set up with spamc called in .procmailrc virtual users is hard to support then However, I have quite a few aliases/redirects in sendmail virtusertable who are not being protected by Spamassassin. good, move all system

milter vs spamc

2024-01-14 Thread Mike Bostock via users
I currently have users set up with spamc called in .procmailrc However, I have quite a few aliases/redirects in sendmail virtusertable who are not being protected by Spamassassin. Would I be better using the milter? What are the pros and cons? How do I redirect spam to a mailbox if I use the

Re: spamc -L does not return 5, or 6

2023-11-08 Thread Cecil Westerhof
ys: >>>>>> -L learn type >>>>>> Send message to spamd for learning. The learn type can be >>>>>> either spam, ham or forget. The exitcode for spamc will be set >>>>>> to 5 if the message was learned,

Re: spamc -L does not return 5, or 6

2023-11-08 Thread Bill Cole
On 2023-11-07 at 18:23:19 UTC-0500 (Wed, 8 Nov 2023 00:23:19 +0100) is rumored to have said: > On 11/7/23 18:38, Cecil Westerhof wrote: >> Matus UHLAR - fantomas writes: [...] >> >> They are imaps -> imap over ssh. >> But that is not the problem. Spamc does what

Re: spamc -L does not return 5, or 6

2023-11-07 Thread giovanni
either spam, ham or forget. The exitcode for spamc will be set to 5 if the message was learned, or 6 if it was already learned. Note that the spamd must run with the --allow-tell option for this to work. "George A. Theall via users" writes: How are y

Re: spamc -L does not return 5, or 6

2023-11-07 Thread Cecil Westerhof
n type can be >>>> either spam, ham or forget. The exitcode for spamc will be set >>>>to 5 if the message was learned, or 6 if it was already >>>>learned. >>>> >>>>Note that the spamd must run with the --allow-te

Re: spamc -L does not return 5, or 6

2023-11-07 Thread Matus UHLAR - fantomas
On Tue, Nov 07, 2023 at 02:28:38AM +0100, Cecil Westerhof wrote: https://spamassassin.apache.org/full/3.1.x/doc/spamc.html says: -L learn type Send message to spamd for learning. The learn type can be either spam, ham or forget. The exitcode for spamc will be set to 5 if

Re: spamc -L does not return 5, or 6

2023-11-07 Thread Cecil Westerhof
gt;either spam, ham or forget. The exitcode for spamc will be set >>to 5 if the message was learned, or 6 if it was already >>learned. >> >>Note that the spamd must run with the --allow-tell option for >>this to work. >

Re: spamc -L does not return 5, or 6

2023-11-06 Thread George A. Theall via users
On Tue, Nov 07, 2023 at 02:28:38AM +0100, Cecil Westerhof wrote: https://spamassassin.apache.org/full/3.1.x/doc/spamc.html says: -L learn type Send message to spamd for learning. The learn type can be either spam, ham or forget. The exitcode for spamc will be set to 5 if

spamc -L does not return 5, or 6

2023-11-06 Thread Cecil Westerhof
https://spamassassin.apache.org/full/3.1.x/doc/spamc.html says: -L learn type Send message to spamd for learning. The learn type can be either spam, ham or forget. The exitcode for spamc will be set to 5 if the message was learned, or 6 if it was already learned

Re: Spamc - connection refused

2021-09-28 Thread Martin Gregorie
On Tue, 2021-09-28 at 15:30 +0200, mau...@gmx.ch wrote: > Hello > > never found the solutions for this.. > The error messages aren't a lot of use without also knowing: - what arguments are you using on the spamc command line? - where is the spamd instance you're trying to

Re: Spamc - connection refused

2021-09-28 Thread Bowie Bailey
On 9/28/2021 9:30 AM, mau...@gmx.ch wrote: Hello never found the solutions for this…. Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused* *Sep 28 15:11:23 nmail spamc

Re: Spamc - connection refused

2021-09-28 Thread Jared Hall
On 9/28/2021 9:30 AM, mau...@gmx.ch wrote: Hello never found the solutions for this…. Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II *Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused* *Sep 28 15:11:23 nmail spamc

Spamc - connection refused

2021-09-28 Thread mauric
Hello never found the solutions for this.. Sep 28 15:11:22 nmail spamd[3826]: prefork: child states: II Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed, retrying (#1 of 3): Connection refused Sep 28 15:11:23 nmail spamc[4525]: connect to spamd on 127.0.0.1 failed

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
s. Let me spell this out and help clear up those who may be as confused as I was: 1) sa-learn *will* "unwrap" the original encapsulated spam emails when they are encapsulated by SA: https://cwiki.apache.org/confluence/display/SPAMASSASSIN/LearningMarkedUpMessages 2) However, the spama

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Bill Cole
On 6 Apr 2021, at 16:19, Steve Dondley wrote: [...] It can only do so if report_safe is set to 0. With non-zero report_safe settings, the original mail is encapsulated as an attachment inside a wrapper message also including the report. That wrapper message containing the SA report is "safe" beca

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
On 2021-04-06 04:19 PM, Steve Dondley wrote: It seems to have done so. Thank you. Some MUAs have a "Reply to List" function that uses the List-Post header (and sometimes heuristics when that header is missing) to send replies only to a list itself. I've recently switched to Roundcube from gmai

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
Some MUAs have a "Reply to List" function that uses the List-Post header (and sometimes heuristics when that header is missing) to send replies only to a list itself. Ah! I see that option now under the little down arrow next to "Reply all". My day is made. Thanks!

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
It seems to have done so. Thank you. Some MUAs have a "Reply to List" function that uses the List-Post header (and sometimes heuristics when that header is missing) to send replies only to a list itself. I've recently switched to Roundcube from gmail. I didn't see that option but I think I'

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Bill Cole
On 6 Apr 2021, at 14:55, Steve Dondley wrote: On 2021-04-06 02:32 PM, Bill Cole wrote: PLEASE NOTE: I read the mailing list obsessively and DO NOT NEED (or want) the extra copies sent when you send both to me and to the list. Sorry, I still haven't figured out how to properly respond. When I

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
On 2021-04-06 02:55 PM, Steve Dondley wrote: On 2021-04-06 02:32 PM, Bill Cole wrote: PLEASE NOTE: I read the mailing list obsessively and DO NOT NEED (or want) the extra copies sent when you send both to me and to the list. Sorry, I still haven't figured out how to properly respond. When I h

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
On 2021-04-06 02:32 PM, Bill Cole wrote: PLEASE NOTE: I read the mailing list obsessively and DO NOT NEED (or want) the extra copies sent when you send both to me and to the list. Sorry, I still haven't figured out how to properly respond. When I hi "reply all" it cc's the list and sends to y

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Bill Cole
finally dawned on me that the SA scores that appeared above the message body and below the headers when spamc was run without the -R option were SA scores embedded in the message by the postfix software and were not getting generated by spamc. But that doesn't change the fact tha

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
Can you provide a working example message AND the operative user prefs? OK, I was being very stupid. It finally dawned on me that the SA scores that appeared above the message body and below the headers when spamc was run without the -R option were SA scores embedded in the message by the

Re: Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Bill Cole
On 6 Apr 2021, at 12:54, Steve Dondley wrote: When I run spamc without -R option like this: spamc -u some_user < some_email I get the following output: [...] However, when I run this command on the same email with the -R command to get the SA scores only like this: spamc -R

Getting different SA scores when using -R argument with spamc

2021-04-06 Thread Steve Dondley
When I run spamc without -R option like this: spamc -u some_user < some_email I get the following output: This is a multi-part message in MIME format. Content analysis details: (5.2 points, 5.0 requi

Re: sa 3.4.4 'spamassassin' scores test message using local.cf; 'spamd' finds/reads local.cg, but 'spamc' of test msg fails to hit/score?

2020-06-10 Thread RW
On Tue, 9 Jun 2020 19:55:24 -0700 PGNet Dev wrote: > sorry, that's unclear > > spamc --help | egrep "config|socket|fallback|size|username|log-to" > -U, --socket path Connect to spamd via UNIX domain sockets. > -F, --config path Use this configuration fil

Re: sa 3.4.4 'spamassassin' scores test message using local.cf; 'spamd' finds/reads local.cg, but 'spamc' of test msg fails to hit/score?

2020-06-09 Thread PGNet Dev
grep "\-u|\-g" -u username, --username=username Run as username -g groupname, --groupname=groupname Run as groupname > >> but, with this 'spamc' config, > >> > >>cat /usr/local/etc/spamassassin/spamc.conf > >&

Re: sa 3.4.4 'spamassassin' scores test message using local.cf; 'spamd' finds/reads local.cg, but 'spamc' of test msg fails to hit/score?

2020-06-09 Thread RW
n. There's not much there anymore, but the config location used to be where the rules went when they were updated by package rather than sa-update - it's for installed files. Also, the last time I checked, you still need to pass '-u spamd' even if you start spamd as that

sa 3.4.4 'spamassassin' scores test message using local.cf; 'spamd' finds/reads local.cg, but 'spamc' of test msg fails to hit/score?

2020-06-09 Thread PGNet Dev
rsion 26, subversion 1 (v5.26.1) built for x86_64-linux-thread-multi I've built/installed ls -al `which spamassassin` `which spamd` `which spamc` -r-xr-xr-x 1 root root 30K Jun 9 10:05 /usr/bin/spamassassin* -r-xr-xr-x 1 root root 60K Jun 9 10:0

Re: spamc learning/reporting

2020-05-18 Thread micah anderson
RW writes: >> 2. I cannot pass -C report and -L spam at the same time. If I do, I >> get this message: >> >> spamc: Learning excludes reporting to collaborative filtering >> databases >> >> and an exit code 64, which is: >> >> EX_USAGE

Re: spamc learning/reporting

2020-05-17 Thread @lbutlr
;> multiple domains? > > It's been about 15 years, but I'd swear that I had full email address working > like that. Though I was pulling the entries from an SQL database. It does work, but you have to tell spamc/spamd about the database, otherwise -u/--username is looking

Re: spamc learning/reporting

2020-05-17 Thread Grant Taylor
On 5/16/20 8:16 AM, micah anderson wrote: 1. I cannot pass a full email address to -u, if I pass 'user' it works, but if I pass 'u...@example.com' it fails. How do people handle this with multiple domains? It's been about 15 years, but I'd swear that I had full email address working like that

Re: spamc learning/reporting

2020-05-16 Thread RW
On Sat, 16 May 2020 10:16:50 -0400 micah anderson wrote: > Hi, > > I noticed a few oddities with 'spamc': > > 1. I cannot pass a full email address to -u, if I pass 'user' it > works, but if I pass 'u...@example.com' it fails. How do people > h

Re: spamc learning/reporting

2020-05-16 Thread Matus UHLAR - fantomas
On 16.05.20 10:16, micah anderson wrote: I noticed a few oddities with 'spamc': 1. I cannot pass a full email address to -u, if I pass 'user' it works, but if I pass 'u...@example.com' it fails. How do people handle this with multiple domains? i guess this need

spamc learning/reporting

2020-05-16 Thread micah anderson
Hi, I noticed a few oddities with 'spamc': 1. I cannot pass a full email address to -u, if I pass 'user' it works, but if I pass 'u...@example.com' it fails. How do people handle this with multiple domains? 2. I cannot pass -C report and -L spam at the same tim

Re: How to make spamc learning with txrep use actual received date ?

2019-11-03 Thread RW
On Sat, 02 Nov 2019 13:23:09 -0400 Dean C wrote: > noticed was that the txrep last_hit field gets > populated with the current date/time that the email is pushed through > spamc. ... > The last_hit field is when it was run through. I think this will > mess up the expiratio

Re: How to make spamc learning with txrep use actual received date ?

2019-11-02 Thread Kevin A. McGrail
I am not sure I would call that script simple but thanks for sharing it. :-) On Sat, Nov 2, 2019, 16:27 Reindl Harald wrote: > > > Am 02.11.19 um 20:39 schrieb Kevin A. McGrail: > > Yes, I think this will cause problems. I recommend you pick only about > > 90 days worth of your corpora and use

Re: How to make spamc learning with txrep use actual received date ?

2019-11-02 Thread Kevin A. McGrail
Yes, I think this will cause problems.  I recommend you pick only about 90 days worth of your corpora and use that. I don't think either sa-learn or txrep handling was ever considered for relearning from the corpora so it's a feature request.  On 11/2/2019 1:23 PM, Dean C wrote: > I'm wondering if

How to make spamc learning with txrep use actual received date ?

2019-11-02 Thread Dean C
am in various folders, with email going back a long time. Once everything is moved to the new systems, I'll train SA by running each email through : cat /var/mail//Maildir/INBOX/cur/154....:2,S | spamc -4 -d localhost -L ham I can't just use sa-learn as the mailstore is encrypt

Re: Error 74 with spamc

2018-10-23 Thread Cecil Westerhof
Bowie Bailey writes: >> What I find a bit strange is that I see in the environment file: >> PIDFILE="/var/run/spamd.pid" >> >> I see in the service file: >> PIDFile=/var/run/spamd.pid >> >> And with the spamd call the pidfile is again set. Two could be removed >> in my opinion, but that i

Re: Error 74 with spamc

2018-10-23 Thread Bowie Bailey
On 10/22/2018 5:39 PM, Cecil Westerhof wrote: > Bowie Bailey writes: > >> >> The OPTIONS variable in the service file usually comes from reading a file in >> /etc/sysconfig.  Normally, you would edit that file to adjust the options >> used in the >> service file. > That is not on my system. That

Re: Error 74 with spamc

2018-10-23 Thread Matus UHLAR - fantomas
"Bill Cole" writes: When I run it again I see in the logging: Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: connection from localhost [::1]:58764 to port 783, fd 5 Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: setuid to imaps succeeded Oct 22 16:47:15 munus.decebal.n

Re: Error 74 with spamc

2018-10-22 Thread Cecil Westerhof
"Bill Cole" writes: >> When I run it again I see in the logging: >> Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: connection >> from localhost [::1]:58764 to port 783, fd 5 >> Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: setuid to >> imaps succeeded >> Oct 22 16:47:15

Re: Error 74 with spamc

2018-10-22 Thread Bill Cole
On 22 Oct 2018, at 11:08, Cecil Westerhof wrote: "Bill Cole" writes: On 21 Oct 2018, at 21:14, Cecil Westerhof wrote: When executing spamc I do not get output and the exit status is 74 (EX_IOERR: IO error). This would be the result of spamc not being able to communicate with

Re: Error 74 with spamc

2018-10-22 Thread Cecil Westerhof
Bowie Bailey writes: > On 10/22/2018 11:08 AM, Cecil Westerhof wrote: >> >> I should have looked into the logs. :'-( >> >> When I run it again I see in the logging: >> Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: connection from >> localhost [::1]:58764 to port 783, fd 5 >> Oct

Re: Error 74 with spamc

2018-10-22 Thread Bowie Bailey
On 10/22/2018 11:08 AM, Cecil Westerhof wrote: > > I should have looked into the logs. :'-( > > When I run it again I see in the logging: > Oct 22 16:47:15 munus.decebal.nl spamd[17102]: spamd: connection from > localhost [::1]:58764 to port 783, fd 5 > Oct 22 16:47:15 munus.decebal.nl spa

Re: Error 74 with spamc

2018-10-22 Thread Cecil Westerhof
"Bill Cole" writes: > On 21 Oct 2018, at 21:14, Cecil Westerhof wrote: > >> When executing spamc I do not get output and the exit status is 74 >> (EX_IOERR: IO error). > > This would be the result of spamc not being able to communicate with > spamd. > &g

Re: Error 74 with spamc

2018-10-22 Thread Bill Cole
On 21 Oct 2018, at 21:14, Cecil Westerhof wrote: When executing spamc I do not get output and the exit status is 74 (EX_IOERR: IO error). This would be the result of spamc not being able to communicate with spamd. Is spamd running? Is spamd listening on the socket that spamc is trying to

Error 74 with spamc

2018-10-21 Thread Cecil Westerhof
When executing spamc I do not get output and the exit status is 74 (EX_IOERR: IO error). For example: $ spamc -L spam 1844399, parsed as 1844399 Oct 22 03:08:20.505 [21322] dbg: channel: current version is 1844399, new version is 1844399, skipping channel Oct 22 03:08:20.505 [21322

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Paul R. Ganci
On 04/25/2018 01:19 PM, Amir Caspi wrote: On Apr 25, 2018, at 11:08 AM, Matus UHLAR - fantomas wrote: actually, no. it changes to users as needed. This way multiple users can use spamd with per-user config files. Sorry, let me be more clear: if spamc is invoked by root, such that spamd would

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Amir Caspi
On Apr 25, 2018, at 11:08 AM, Matus UHLAR - fantomas wrote: > > actually, no. it changes to users as needed. This way multiple users can use > spamd with per-user config files. Sorry, let me be more clear: if spamc is invoked by root, such that spamd would try to setuid root, then s

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread RW
; can use spamd with per-user config files. But if spamc is run as root, which it presumably was here, then spamd drops to nobody which doesn't have a home directory.

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Matus UHLAR - fantomas
On Apr 25, 2018, at 8:57 AM, Paul R. Ganci wrote: Sorry I should have mentioned that. I was aware of that issue. As you can see spamd is running as root in this case and the spamassassin tests were also done as root. do you hace any per-user rules in ~root/.spamassassin/ ? spamassassin will ho

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Amir Caspi
On Apr 25, 2018, at 8:57 AM, Paul R. Ganci wrote: > > Sorry I should have mentioned that. I was aware of that issue. As you can see > spamd is running as root in this case and the spamassassin tests were also > done as root. spamd running as root doesn't run as root; it downgrades itself to "n

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Paul R. Ganci
On 04/25/2018 04:24 AM, Matus UHLAR - fantomas wrote: spamc connects to spamd, which may run under different user than spamassassin. That way, different users' settings are used. check how does your spamd run (which user, if any) Sorry I should have mentioned that. I was aware of that

Re: Spamassassin and spamc do not use same rules

2018-04-25 Thread Matus UHLAR - fantomas
ion -- --  5.2 TXREP  TXREP: Score normalizing based on sender's reputation spamc -R Content analysis details:   (4.3 points, 5.0 required)  pts rule name  des

Spamassassin and spamc do not use same rules

2018-04-24 Thread Paul R. Ganci
REP  TXREP: Score normalizing based on sender's reputation > spamc -R Content analysis details:   (4.3 points, 5.0 required)  pts rule name  description -- --  1.9 URIBL_ABUSE_SURBL  Contains an URL li

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread John Hardin
t; http://p.pm> Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Plugin/RabinK arpBody.pm At first I tried removing all in MANIFEST.SKIP, but that seemed to be too much for it. :) Also there are a couple of warnings when building: make -f spamc/Makefile spamc/spamc make[1]

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Kevin A. McGrail
t; >Requires: perl(RabinKarpAccel) >> > Error: Package: spamassassin-3.4.2-0.el7.centos.x86_64 >> (/spamassassin-3.4.2-0.el7.centos.x86_64) >> >Requires: perl(Devel::Size) >> > >> > To get around those I had

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Reio Remma
://p.pm> > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Plugin/RabinKarpBody.pm > > At first I tried removing all in MANIFEST.SKIP, but that seemed to be too much for it. :) > > Also there are a couple of warnings when building: >

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Kevin A. McGrail
hese (as I undersand they're > experimental anyway): > > > > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Plugin/NetCache.pm < > http://e.pm> > > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Util/MemoryDump.pm < > http://p.pm> > > Mail-Spa

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Giovanni Bechis
sand they're > experimental anyway): > > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Plugin/NetCache.pm > <http://e.pm> > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Util/MemoryDump.pm > <http://p.pm> > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassi

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Reio Remma
removing all in MANIFEST.SKIP, but that seemed to be too much for it. :) Also there are a couple of warnings when building: make -f spamc/Makefile spamc/spamc make[1]: Entering directory `/home/reio/rpmbuild/BUILD/Mail-SpamAssassin-3.4.2' make[1]: warning: jobs

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Kevin A. McGrail
x86_64) >Requires: perl(Devel::Size) > > To get around those I had to remove these (as I undersand they're > experimental anyway): > > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Plugin/NetCache.pm > Mail-SpamAssassin-3.4.2/lib/Mail/SpamAssassin/Util/MemoryDump

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Reio Remma
gs when building: make -f spamc/Makefile spamc/spamc make[1]: Entering directory `/home/reio/rpmbuild/BUILD/Mail-SpamAssassin-3.4.2' make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule. gcc -DSPAMC_SSL -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions

Re: spamc --reporttype= not working and curious log message.

2018-04-20 Thread Reio Remma
On 20.04.18 9:50, Giovanni Bechis wrote: On 04/19/18 09:24, Reio Remma wrote: [...] *Update:* none of the --option= switches work. handle_user (userdir) unable to find user: '' is caused because I have the -username switch as --username=amavis instead of --username amavis It worked in 3.4.1.

Re: spamc --reporttype= not working and curious log message.

2018-04-19 Thread Giovanni Bechis
On 04/19/18 09:24, Reio Remma wrote: [...] > *Update:* none of the --option= switches work. > > handle_user (userdir) unable to find user: '' is caused because I have the > -username switch as --username=amavis instead of --username amavis > > It worked in 3.4.1. > > Is it at all possible that

Re: spamc --reporttype= not working and curious log message.

2018-04-19 Thread Giovanni Bechis
tually working nicely on our production system (after I removed > the = from spamc options). > > This is all on CentOS 7. > Some tests fails on 3.4 because rulesrc directory has moved only to trunk, restoring rulesrc dir fixes the broken test. $ make test TEST_FILES=t/basic_lint_without_s

Re: spamc --reporttype= not working and curious log message.

2018-04-19 Thread Reio Remma
I ran make test now - not exactly a pass. There were lots of complaints about: "Maybe you need to kill a running spamd process?" There was no spamd running. The RPM is actually working nicely on our production system (after I removed the = from spamc options). This is all o

Re: spamc --reporttype= not working and curious log message.

2018-04-19 Thread Kevin A. McGrail
rote: > On 19.04.18 9:45, Reio Remma wrote: > > Hello! > > I'm trying to use this to report spam: > > spamc --reporttype=report --username=amavis < mail > > However all I get is: > > spamc[9632]: Please specify a legal report type > > It works if I o

Re: spamc --reporttype= not working and curious log message.

2018-04-19 Thread Reio Remma
On 19.04.18 9:45, Reio Remma wrote: Hello! I'm trying to use this to report spam: spamc --reporttype=report --username=amavis < mail However all I get is: spamc[9632]: Please specify a legal report type It works if I omit the = after --reporttype. This is with SA 3.4.2 from SVN,

spamc --reporttype= not working and curious log message.

2018-04-18 Thread Reio Remma
Hello! I'm trying to use this to report spam: spamc --reporttype=report --username=amavis < mail However all I get is: spamc[9632]: Please specify a legal report type It works if I omit the = after --reporttype. This is with SA 3.4.2 from SVN, iirc it worked the other day with --re

Re: spamc report different for the same message (same user)

2017-03-10 Thread John Hardin
On Fri, 10 Mar 2017, Rejaine Monteiro wrote: I'm using spamassassin-3.4.0 in a spam gateway with qmail+simscan and using always same account (qscand) to scan all msgs. I performed a simple scan in a spam msg, like this: # spamc -u qscand -R < /tmp/spammsg.eml and... score are:

spamc report different for the same message (same user)

2017-03-10 Thread Rejaine Monteiro
I'm using spamassassin-3.4.0 in a spam gateway with qmail+simscan and using always same account (qscand) to scan all msgs. I performed a simple scan in a spam msg, like this: # spamc -u qscand -R < /tmp/spammsg.eml and... score are: Content analysis details: (2.8 points, 5.0

Re: Does spamc unwrap spam reports?

2017-01-05 Thread @lbutlr
On Dec 28, 2016, at 3:01 AM, Lukas Erlacher wrote: > I'm calling "spamc --learntype=spam/ham" from a script, passing in emails > fetched from imap (I'm using ISBG with --learnspambox / --learnhambox and > --spamc actually). Why are you calling spamc instead

Re: Does spamc unwrap spam reports?

2017-01-03 Thread RW
ike to convince myself of that... I ran `sudo -u debian-spamd > spamc -c < spamspam.eml` on a mail that has spamlevel 14.4 and is > encapsulated in a spam report. It gave 2.7/7.0... which I suppose is > ok because it's an assessment of the spamminess of the whole mail. > But that does

Re: Does spamc unwrap spam reports?

2017-01-03 Thread Lukas Erlacher
On 12/28/2016 03:12 PM, RW wrote: It's done in spamd. Don't attempt to remove X-Spam-* headers yourself or it wont attempt to remove the mime encapsulation. I'd like to convince myself of that... I ran `sudo -u debian-spamd spamc -c < spamspam.eml` on a mail that has spa

Re: Does spamc unwrap spam reports?

2016-12-28 Thread RW
assin headers, > > and if the original email has been encapsulated into an attachment > > it will decapsulate the email. In other words sa-learn will undo > > any changes which Spamassassin has done before learning the > > spam/ham character of the email. > > I haven&#x

Re: Does spamc unwrap spam reports?

2016-12-28 Thread Martin Gregorie
On Wed, 2016-12-28 at 11:01 +0100, Lukas Erlacher wrote: > I haven't found any documentation that specifies this for > spamc/spamd. > I don't think that passing an email to SA via spamc  makes any attempt to strip pre-existing SA headers, but there's an easy way to check

Does spamc unwrap spam reports?

2016-12-28 Thread Lukas Erlacher
ulate the email. In other words sa-learn will undo any changes which Spamassassin has done before learning the spam/ham character of the email. I haven't found any documentation that specifies this for spamc/spamd. I'm calling "spamc --learntype=spam/ham" from a script, passin

Re: localhost spamc[5898]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused

2016-10-17 Thread Benny Pedersen
glibc have default ipv6 before ipv4, so your error is just that spamd binds to 127.0.0.1 and spamc use localhost with is ipv6 first, got it ? to solve it is naerly a faq On October 18, 2016 5:04:12 AM Chris wrote: It goes on in my syslog to say Oct 17 12:45:18 localhost spamc[5898

localhost spamc[5898]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused

2016-10-17 Thread Chris
It goes on in my syslog to say Oct 17 12:45:18 localhost spamc[5898]: connect to spamd on ::1 failed, retrying (#1 of 3): Connection refused Oct 17 12:45:18 localhost spamd[3255]: spamd: connection from localhost [127.0.0.1]:36312 to port 783, fd 5 This just started this afternoon at 12:45. It

  1   2   3   4   5   6   7   8   9   >