🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
4 messages
4 total messages Started by Red John Thu, 15 Dec 2016 04:05
Redjohn SpamAssassin Update
#287803
Author: Red John
Date: Thu, 15 Dec 2016 04:05
34 lines
1720 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I continued to get over 20 spam emails per day after modify my
sender_access file and restarting postfix. I searched around and
found these two tutorials on installing SpamAssassin and gave it a
try.

<https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-spamassassin-on-ubuntu-12-04>

<https://syslint.com/blog/tutorial/how-to-install-and-configure-spamassassin-with-postfix-in-debian-8/>

I will keep the group updated as to my experience with Spamassassin
and a remailer. I hope I didn't bite off more than I can digest
here.

Zax I added your suggestion:

all_spam_to remailer@redjohn.net

to the bottom of my /etc/spamassassin/local.cf file

It's not clear how will I know what has been captured by
Spamassassin? I use MUTT as my email client. Is there a Spam folder
that I can access in MUTT or will I have to monitor a log file to
see what is being filtered from my Inbox?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (MingW32)

iEYEARECAAYFAlhSB9QACgkQSrCPi4AVv5n7rwCgy1HyGrOu5L/r70RMhuIAOi9K
qV4AoNx8isODWmMW1Dt5lL908UNvvxaw
=TMgH
-----END PGP SIGNATURE-----
Re: Redjohn SpamAssassin Update
#287805
Author: Zax
Date: Thu, 15 Dec 2016 09:11
57 lines
3021 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Thu, 15 Dec 2016 04:05:11 +0000 (GMT), Red John wrote in
Message-Id: <20161215040511.C71F51200A6@fleegle.mixmin.net>:

> It's not clear how will I know what has been captured by
> Spamassassin? I use MUTT as my email client. Is there a Spam folder
> that I can access in MUTT or will I have to monitor a log file to
> see what is being filtered from my Inbox?

There are various different ways to process a message through
Spamassassin.  The best is probably to integrate it with Postfix so that
every message is passed through a content filter.  Spamassassin doesn't
actually filter out the spam, it just adds headers that identify it.
It's then up to you to choose what to do with it.

I use Procmail to sort messages into appropriate folders, depending on
their spamminess.  For example:

:0
* ^X-Spam-Flag: YES
spam/

This recipe will move all messages into the Maildir called spam.
If you wanted, you could preceed this with something like:

:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null

This will discard any messages that Spamassassin scores 10 or more.
This is only an example and I wouldn't suggest doing it until your
filter is well tuned.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJYUl46AAoJECanyOTFuuOBWY0QAKjIEE+jvhtN4um2tl7g5nDX
sGJ1wtqqLLjEFFXKZZ3gPJVT/0KfkVTSfp8W9kPGQktT9L7DttxvxAWxKPvs9Txs
cZfrfBgJiCFaW/NiSXowESewzOjpYDhv8tvugGGs3fZEZ69J1GZ17+4+9LOTZZHl
F6zMdLGyxYB7B/7FnLvQlVy8nwXMF6HtgYKNSJzW3EsGoidMiv9xy6vZtMUBtplm
H1ehZwtN60S45fOSWqq/yTbr+S3dKxTDcvVT7mygxmT63iztrkEy4erEm3UjD9cJ
C7TMiODq1veZM5kOKs6erIxPLmzlV/wzN+B62CdJD6Qs5cWgMEOmN6du/EIaPRuD
8FIRiDHLTEHPmahFkGIGxRnso6ayV9gUV8e4Zw03vI5aXeCglwj9iVeqOZAlKeY5
X8AnpdHvTS1gerrP5XBTMoeZqy0Q8/+2Uim4+JxqZMDHsa7PRbuLQTYHS7rUpF9c
kfYszTajmCck3DGJx/J/AAFF0ZKLiy0n8OyjqRn+p/83Dde8twsIIyEM2SgK98/W
+MhQQlg4x5jA4pAC8UBLDZ3285tnQgm+VDmHG95YOOXWS+dUah/VkBQFkFjpRbEQ
e6UwF86SyJMSsGjz9k/zD6fa5SPljjufkXt23DNZ5/X1OqPqeHKcncqGJ8BVe4Kj
3eeTZytehImRNcM6/2n9
=Kibu
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Re: Redjohn SpamAssassin Update
#287821
Author: Red John
Date: Thu, 15 Dec 2016 17:51
66 lines
3006 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 15 Dec 2016 04:05:11 +0000 (GMT), you wrote:
>
> I continued to get over 20 spam emails per day after modify my
> sender_access file and restarting postfix. I searched around and
> found these two tutorials on installing SpamAssassin and gave it a
> try.
>
> <https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-spamassassin-on-ubuntu-12-04>
>
> <https://syslint.com/blog/tutorial/how-to-install-and-configure-spamassassin-with-postfix-in-debian-8/>
>
> I will keep the group updated as to my experience with Spamassassin
> and a remailer. I hope I didn't bite off more than I can digest
> here.
>
> Zax I added your suggestion:
>
> all_spam_to remailer@redjohn.net
>
> to the bottom of my /etc/spamassassin/local.cf file
>
> It's not clear how will I know what has been captured by
> Spamassassin? I use MUTT as my email client. Is there a Spam folder
> that I can access in MUTT or will I have to monitor a log file to
> see what is being filtered from my Inbox?
>

I woke up this morning to this message from my crontab.

/etc/cron.daily/spamassassin:
http: GET http://www.sa-update.pccc.com/1774142.tar.gz request
failed: 500 Can't
+connect to www.sa-update.pccc.com:80 (timeout): Can't connect to
+www.sa-update.pccc.com:80 (timeout) LWP::Protocol::http::Socket:
connect:
+timeout at /usr/share/perl5/LWP/Protocol/http.pm line 51.
http: GET http://sa-update.secnap.net/1774142.tar.gz request
failed: 500 Can't
+connect to sa-update.secnap.net:80 (No route to host): Can't
connect to
+sa-update.secnap.net:80 (No route to host)
LWP::Protocol::http::Socket:
+connect: No route to host at /usr/share/perl5/LWP/Protocol/http.pm
line 51.

It appears that I could not update spamassassin last night via my
crontab. Are there that need to be set in order for the commands
above to work?

I also see how SpamAssassin works as it tags any email it deems as
Spam with "****SPAM**** Subject". I then would just tag the
messages to be deleted in MUTT. I also added several blacklist
entries in my /etc/spamassassin/local.cf file using:

"blacklist_from *@example.com"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (MingW32)

iEYEARECAAYFAlhSzZ0ACgkQSrCPi4AVv5mP3gCg5J9sVz7Rn7xVb+eSEJFVVe4X
lMgAoKZOTvpa/mZaICjHdK9mYkcXHPou
=yEHl
-----END PGP SIGNATURE-----
Re: Redjohn SpamAssassin Update
#287822
Author: Red John
Date: Thu, 15 Dec 2016 18:32
59 lines
2694 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 15 Dec 2016 04:05:11 +0000 (GMT), you wrote:
>
> I continued to get over 20 spam emails per day after modify my
> sender_access file and restarting postfix. I searched around and
> found these two tutorials on installing SpamAssassin and gave it a
> try.
>
> <https://www.digitalocean.com/community/tutorials/how-to-install-and-setup-spamassassin-on-ubuntu-12-04>
>
> <https://syslint.com/blog/tutorial/how-to-install-and-configure-spamassassin-with-postfix-in-debian-8/>
>
> I will keep the group updated as to my experience with Spamassassin
> and a remailer. I hope I didn't bite off more than I can digest
> here.
>
> Zax I added your suggestion:
>
> all_spam_to remailer@redjohn.net
>
> to the bottom of my /etc/spamassassin/local.cf file
>
> It's not clear how will I know what has been captured by
> Spamassassin? I use MUTT as my email client. Is there a Spam folder
> that I can access in MUTT or will I have to monitor a log file to
> see what is being filtered from my Inbox?
>
I also notice that there have been no log files created in the 24
hours that SpamAssassin has been running. I have a directory called
/var/log/spamassassin and here are the contents:

drwxr-xr-x  3 spamd spamd 4096 Dec 14 18:40 .
drwxr-xr-x 11 root  root  4096 Dec 15 05:00 ..
drwx------  2 spamd spamd 4096 Dec 15 09:05 .spamassassin

Here's what's in .spamassassin:

drwx------ 2 spamd spamd    4096 Dec 15 09:10 .
drwxr-xr-x 3 spamd spamd    4096 Dec 14 18:40 ..
- -rw------- 1 spamd spamd   45056 Dec 15 09:10 bayes_seen
- -rw------- 1 spamd spamd 2633728 Dec 15 09:10 bayes_toks
- -rw-r--r-- 1 spamd spamd    1869 Dec 14 18:40 user_prefs

I followed these steps below as part of my installation for
spamassassin:

mkdir /var/log/spamassassin

chown spamd:spamd /var/log/spamassassin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (MingW32)

iEYEARECAAYFAlhSz3MACgkQSrCPi4AVv5l5gwCfUj7Fe32y/UYTxLl6wPO0vj/x
lnMAnjbN0okDEmxCso7x+MyWgsKqu/3i
=6L4Y
-----END PGP SIGNATURE-----
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads