SpamAssassin On CentOS Misconfigured

Jan 3, 2008

The problem I currently have is that all e-mails tagged by SpamAssassin as spam are deleted even though they are supposed to be moved to a different "probably-spam" file. In addition, I'd like to use the spamc + spamd configuration and I'm not using it now.

I tested that procmail is installed on my CentOS 5 server that's also using sendmail.

yum remove spamassassin // In case it is pre-installed. It was the last time I did this.

// Download it at spamassassin.apache.org:
wget [url]

tar xvfz Mail-SpamAssassin-3.2.3.tar.gz

cd /Mail-SpamAssassin-3.2.3

perl build/check_dependencies // Checks which perl module dependencies are missing that need to be installed before proceeding. Then install them

perl Makefile.PL

make

make install

Upload your own spamassassin/local.conf to /etc/mail/spamassassin

Code:
# This is the right place to customize your installation of SpamAssassin.
#
# See 'perldoc Mail::SpamAssassin::Conf' for details of what can be
# tweaked.
#
# Only a small subset of options are listed below
#
###########################################################################

# Add *****SPAM***** to the Subject header of spam e-mails
#
# rewrite_header Subject **SPAM**

# Save spam messages as a message/rfc822 MIME attachment instead of
# modifying the original message (0: off, 2: use text/plain instead)
#
# report_safe 1

# Set which networks or hosts are considered 'trusted' by your mail
# server (i.e. not spammers)
#
# trusted_networks 212.17.35.

# Set file-locking method (flock is not safe over NFS, but is faster)
#
# lock_method flock

# Set the threshold at which a message is considered spam (default: 5.0)
required_score 3.9

# Use Bayesian classifier (default: 1)
#
# use_bayes 1

# Bayesian classifier auto-learning (default: 1)
#
bayes_auto_learn 0

# Set headers which may provide inappropriate cues to the Bayesian
# classifier
#
# bayes_ignore_header X-Bogosity
# bayes_ignore_header X-Spam-Flag
# bayes_ignore_header X-Spam-Status
Make /home/tero world executable (chmod 751)

Upload.procmail to /home/tero // My e-mail user's name.

Code:
:0fw: spamassassin.lock
* < 256000
| spamassassin

# Mails with a score of 13 or higher are almost certainly spam. Let's delete them.
:0:
* ^X-Spam-Level: *************
/dev/null

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to "probably-spam".
:0:
* ^X-Spam-Status: Yes
/home/tero/mail/probably-spam

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
:0 fhw
| sed -e '1s/^/F/'
}

I figured that this might be a permissions problem but what I can do without risking security?

View 0 Replies


ADVERTISEMENT

Coyote Point 350 Misconfigured - Single Remote IP In All Logs

Mar 25, 2009

Don't you know it, we've had a Coyote Point 350 on standby that had already run out of support and was EOL before we had a chance to use it. It was running one low traffic website that never received scrutiny of it's web logs.

Well, earlier this month we threw it in to production, when it's predecessor's hard drive failed. Thought everything was groovy until we looked at the log files.

CP350 is 192.168.1.100. Packets that make their way to the servers (IIS 5 and IIS 6) are having the IP address listed as the load balancer, rather than the client IP address.

Logs look similar to the following, showing two different remote users accessing the site.

2009-03-25 18:40:32 W3SVC1947845781 192.168.1.100 GET a.gif
2009-03-25 18:40:34 W3SVC1947845781 192.168.1.100 GET b.gif
2009-03-25 18:40:34 W3SVC1947845781 192.168.1.100 GET c.gif
2009-03-25 18:40:35 W3SVC1947845781 192.168.1.100 GET d.gif
2009-03-25 18:40:37 W3SVC1947845781 192.168.1.100 GET e.gif
2009-03-25 18:40:37 W3SVC1947845781 192.168.1.100 GET a.gif
2009-03-25 18:40:38 W3SVC1947845781 192.168.1.100 GET b.gif
2009-03-25 18:40:38 W3SVC1947845781 192.168.1.100 GET c.gif
2009-03-25 18:40:40 W3SVC1947845781 192.168.1.100 GET d.gif
2009-03-25 18:40:40 W3SVC1947845781 192.168.1.100 GET e.gif
2009-03-25 18:40:41 W3SVC1947845781 192.168.1.100 GET f.gif

I've gone through the docs and the user interface a number of times, and I'm missing the setting that would fix this. Probably a terminology phrase that I'm missing. Even checked the <eqadmin> at the root, just in case.

View 1 Replies View Related

Plesk 11.x / Linux :: Cannot Connect To Ssh Server Owing To Misconfigured Firewall

Jul 21, 2014

I am having trouble connecting to my ssh server. It responds with a lengthy error message about no network etc. but it is the last message that concerns me:

Sometimes, such troubles can be caused by a misconfigured firewall.

How can I check the firewall if I cannot connect to ssh? I am running plesk 11.5 control panel and CentOS 6. Is this something I can do from plesk?

I can see that the firewall in plesk is set to allow all for ssh, but I cannot see way to disable the firewall to test ssh connection. Can this be done from plesk?

View 3 Replies View Related

SpamAssassin - Deleting Files From /home/user/.spamassassin

Jun 25, 2009

I need to clean up the .spamassassin directory for all the accounts on the server. The Bayes files are getting too big and causing mail handling issues.

How would I do that?

I assume this won't work - and don't want to try it until I hear a little feedback:

rm -f /home/*/.spamassassin/*bayes*

Basically, I need a command that will do what the above command looks like it would do - I just don't think the wildcards will work in that manner, and don't want to try it for fear of deleting items outside of the .spamassassin directory.

I'm running CentOS 5.3.x with cPanel/WHM - if it matters...

And feel free to suggest other spam blocking software - but we've gotten rather good at tweaking SA to get the job done. Just this annoyance of the bayes files growing continuously is a pain sometimes...

View 7 Replies View Related

Spamassassin

May 19, 2007

I'm running the latest port version on FreeBSD of Postfix, Spamassassin (Razor & Pryzor), ClamAV, and Amavisd-new. I haven't gotten any spam for a while. The 2-3 days including today i've been getting 10+ spams per day. This seemed to happen after the update of spamassasin recently.

Anyone else experiencing this? My rules are pretty quick, at spam-score "5" I reject the mail.

View 8 Replies View Related

SpamAssassin

Jun 23, 2007

I installed SpamAssasin and set it up in DA, I also use Spam Filter option in DirectAdmin (DA).

The problem is that if someone send me an email which contains any adult word in the body and a regular subject then it will not go to the Spam box, but if that email contains any adult word in the subject and no matter the body has adult word or not it will go to Spam box.

How do i send all the emails contain adult word in body to Spam box?

i have Dovecot installed.

View 4 Replies View Related

Difference Between CentOs 5.0 And Centos 4.5? Both With Plesk

Oct 1, 2007

What is the difference between CentOs 5.0 and Centos 4.5? (Both contains Plesk)

Would CentOS 5 contain more updates and fixes? CentOS 4.5 be more stable?

View 0 Replies View Related

Qmail And Spamassassin

Sep 29, 2006

Hi i'm trying to use spamassassin from each user using .qmail from each mail user but i can't it dosen't works. Also i wish to know if i have any rule on spamassassin to check some words like sex viagra ,etc and if it's found it will delete it.

View 0 Replies View Related

Install Spamassassin ..?

Jul 4, 2009

here to install spamassassin but however have a few questions as im new to doing technical things in ssh.

[url]

On step 3 of the tutorial, we are asked to change things in the /etc/exim.conf file, what is the proper command to navigate to this file and how to replace those text?

Quote:

The global spamassassin config file is in /etc/mail/spamassassin/local.cf

You'll want to make sure that you have the correct call to spamc in the spamcheck transport in your exim.conf:
transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}

For the lines i quoted, im not sure what i have to do here and how to do it.

Lastly how do i know if im installing latest version of spamas and how to test weather it is working against spam?

View 3 Replies View Related

Hosts With More Than SpamAssassin

Jan 26, 2009

some good hosts that use more than just SpamAssassin (SA) for their spam filtering?

For instance, MediaTemple uses the Cloudmark plug-in, which greatly improves the stopping of spam. SA out of the box is horrible; and yes, I realize that with some tweaking it "can" be good.

View 10 Replies View Related

SpamAssassin Setup

Jul 23, 2008

I am setting up spam assassin white list and it says I can put *@domain.com so does that mean it will white list everything from domain.com ?

Quote:

Originally Posted by SpamAssassin/cPanel

Used to specify addresses which send mail that is often tagged (incorrectly) as spam; it also helps if they are addresses of big companies with lots of lawyers. This way, if spammers impersonate them, they'll get into big trouble, so it doesn't provide a shortcut around SpamAssassin. Whitelist and blacklist addresses are now file-glob-style patterns, so friend@somewhere.com, *@isp.com, or *.domain.net will all work. Specifically, * and ? are allowed, but all other metacharacters are not. Regular expressions are not used for security reasons.

View 1 Replies View Related

How To Work With SpamAssassin?

Oct 7, 2007

I have a server, SpamAssassin is installed but i disabled it, because i don't work with this, i'm getting a day about 1000 spam messages.

what to do to stop this?

View 5 Replies View Related

MailScanner/Spamassassin

Jan 17, 2007

Is there any way to define black lists for a specific domain?

Like, a file for each user: user1.cf, user2.cf.

And when that user receives email, Mailscanner will check server-wide filter AND domain specific filter.

Any advanced MS/SA users?

View 3 Replies View Related

How To Disable Spamassassin.

Aug 1, 2007

I am using cPanel 11 one of my Linux server with O.S. as Fedora core 4. For one of my websites I had enabled spam assassin a few days before. But now I want to disable it but not getting any option to do so.

View 11 Replies View Related

SpamAssassin + Plesk

Feb 23, 2007

can i have your feedback on spamAssassin with plesk.

Is this a good combinations/solution?

It is difficult to manage?

It is difficult to update?

View 0 Replies View Related

Unable To Uninstall Spamassassin

Jul 1, 2009

i have a problem uninstalling spamassassin

I use the command rpm -e spamassassin

I get error msg saying error: package spamassassin is not installed

View 5 Replies View Related

Configure Exim And Spamassassin

May 20, 2009

I need to configure Spamassassin to not check outgoing mails

So I need to check only mails that are hosts on my mail server, but mails which relay not to be checked.

configuration of Spamassassin in exim:

warn spam = nobody
warn message = X-Spam_score: $spam_score

X-Spam_score_int: $spam_score_int

X-Spam_bar: $spam_bar

X-Spam_report: $spam_report
condition = ${if eq {$acl_m1}{local_to_check_spam} {yes}{no}}
!condition = ${if eq {$acl_m0}{local_to_check} {yes}{no}}

Maybe it's need just one line in Spamassassing local.cf?

View 0 Replies View Related

Spamassassin Directoy Using Much Space

Jun 7, 2008

there is a quota problem , i have checked my server

home/username/.spamassassing

.Spamassassing directoy using much Space .

would you please let me know , what is that dirctory doing ?
and what will happen if i will delete all the files in the directory
(Specially : auto_whitelist)

View 2 Replies View Related

Manually Enabling SpamAssassin

Mar 2, 2008

I have a dedicated server. It is a Fedora Core 6. It came with "Plesk 30 domain license". However, this license of Plesk doesn't have SpamAssassin enabled. In order to get the license with SpamAssassin, it costs an extra $30 a month.

I believe SpamAssassin by default is in fact installed on the sever, but some of my users are reporting that they are getting Spam. How can I check is SpamAssassin is running? How do I configure SpamAssassin to filter spam on all the e-mail addresses that are created in Plesk?

I have SSH access to the server.

View 3 Replies View Related

Remote Spamassassin For Smartermail

Dec 8, 2008

I want to setup Remote Spamassassin for Smartermail server. I want to the setup the spamassassin on a linux box. Can anybody help me with this as I am not getting any definitive guide for the same?

View 3 Replies View Related

How To Spamassassin With Exim On Rhel5

Apr 7, 2008

How to Spamassassin with exim on rhel5

View 5 Replies View Related

Spamassassin Clamv Mailscanner

Jan 6, 2007

which one of these three spam scanners is the best one Spamassassin, dspam or mailscanner?

Currently i ahve spamassassin installed and it doesnt perform so well,i get 10+ mspam messages per each normal message.

View 0 Replies View Related

Comments About Cloudmark Authority For Spamassassin?

Dec 21, 2007

Is someone using Cloudmark Authority for Spamassassin?

http://www.cloudmark.com/serviceprov.../spamassassin/

If yes, what are your comments and what do you pay for this service?

View 11 Replies View Related

Make Spamassassin To Whitelist All Sent Email

Jun 29, 2009

It seems that SA is not so good at learning because I have seen email from people to whom I have emailed tens of times considered as SPAM by SA.

Is it possible to make SA to whitelist every email address I send an email to?

View 5 Replies View Related

Transfer Spamassassin Settings To New Setup

May 11, 2009

My new server is set up and running fine but on the test account email I am getting a lot of spam again. I know spamassissin needs to "learn" but I don't want to go through that again.

Assuming I just need to copy my "experienced" spamassassin files over to the new server, what files need to be copied to give my new set up the same spam protection as the old?

Where does spamassassin store what its "learned"?

I am running CentOS and Cpanel

View 2 Replies View Related

VPS With Cpanel And Preinstalled ASSP Instead Of SpamAssassin

Sep 10, 2008

I am looking for a VPS provider that can install ASSP instead

of SpamAssassin does anybody know of any?

View 0 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved