Koozali.org: home of the SME Server

Problem installing spamassassin from script

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Problem installing spamassassin from script
« on: October 24, 2006, 01:49:02 PM »
I am trying to install Jesper's spamassassin from  the script on a version 6 server.  The installation stalls halfway.  Any assistance would be very appreciated. Thanks.

Downloading RPMs from http://sme.swerts-knudsen.com/downloads/SpamFilter
Checking for existing installations.... Please wait!
Installing SpamFilter on SME 6.0.....
--20:47:46--  http://sme.swerts-knudsen.com/downloads/SpamFilter/3.1.6/perl-Mail-SpamAssassin-3.1.6-1.i386.rpm
           => `perl-Mail-SpamAssassin-3.1.6-1.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.92.212.202]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 742,511 [application/octet-stream]

100%[====================================>] 742,511       70.13K/s    ETA 00:00

20:47:58 (70.13 KB/s) - `perl-Mail-SpamAssassin-3.1.6-1.i386.rpm' saved [742511/742511]

--20:47:58--  http://sme.swerts-knudsen.com/downloads/SpamFilter/3.1.6/spamassassin-3.1.6-1.i386.rpm
           => `spamassassin-3.1.6-1.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.92.212.202]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 173,452 [application/octet-stream]

100%[====================================>] 173,452       53.60K/s    ETA 00:00

20:48:02 (53.60 KB/s) - `spamassassin-3.1.6-1.i386.rpm' saved [173452/173452]

Preparing...                ########################################### [100%]
package perl-Mail-SpamAssassin-3.1.6-1 is already installed
package spamassassin-3.1.6-1 is already installed
Retrieving http://sme.swerts-knudsen.com/downloads/SpamFilter/sme-spamfilter-1.3.0-1.noarch.rpm
error: failed dependencies:
        e-smith-mailfront >= 1.3.0-11 is needed by sme-spamfilter-1.3.0-1

spamfilter_install.sh: line 284:  3264 Broken pipe             /sbin/e-smith/signal-event user-modify
Installation of SpamFilter complete.


##Note:
[root@linuxserver root]# rpm -qa | grep e-smith-mailfront
e-smith-mailfront-1.2.0-01
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

pejman

Installing Spamassassin 3 on Sme server 6.1beta
« Reply #1 on: November 02, 2006, 10:02:49 AM »
I have the same problem that you have gotten. Have you find any solution yet?

My error message is as follows:

Downloading RPMs from http://sme.swerts-knudsen.com/downloads/SpamFilter
Checking for existing installations.... Please wait!
Installing SpamFilter on SME 6.0.....
--12:46:53--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-DateManip-5.40-15.i386.rpm
           => `perl-DateManip-5.40-15.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 129,366 [application/octet-stream]

100%[====================================>] 129,366       38.38K/s    ETA 00:00

12:46:57 (38.38 KB/s) - `perl-DateManip-5.40-15.i386.rpm' saved [129366/129366]

--12:46:57--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-Parse-Syslog-1.03-8.noarch.rpm
           => `perl-Parse-Syslog-1.03-8.noarch.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11,602 [application/octet-stream]

100%[====================================>] 11,602        12.72K/s    ETA 00:00

12:46:59 (12.72 KB/s) - `perl-Parse-Syslog-1.03-8.noarch.rpm' saved [11602/11602]

--12:46:59--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-Storable-2.11-1.0.rh7.dag.i386.rpm
           => `perl-Storable-2.11-1.0.rh7.dag.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52,220 [application/octet-stream]

100%[====================================>] 52,220        27.18K/s    ETA 00:00

12:47:01 (27.18 KB/s) - `perl-Storable-2.11-1.0.rh7.dag.i386.rpm' saved [52220/52220]

Preparing...                ########################################### [100%]
   1:perl-DateManip         ########################################### [ 33%]
   2:perl-Parse-Syslog      ########################################### [ 66%]
   3:perl-Storable          ########################################### [100%]
--12:47:18--  http://sme.swerts-knudsen.com/downloads/SpamFilter/3.1.6/perl-Mail-SpamAssassin-3.1.6-1.i386.rpm
           => `perl-Mail-SpamAssassin-3.1.6-1.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 742,511 [application/octet-stream]

100%[====================================>] 742,511       49.79K/s    ETA 00:00

12:47:33 (49.79 KB/s) - `perl-Mail-SpamAssassin-3.1.6-1.i386.rpm' saved [742511/742511]

--12:47:33--  http://sme.swerts-knudsen.com/downloads/SpamFilter/3.1.6/spamassassin-3.1.6-1.i386.rpm
           => `spamassassin-3.1.6-1.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 173,452 [application/octet-stream]

100%[====================================>] 173,452       41.18K/s    ETA 00:00

12:47:38 (41.18 KB/s) - `spamassassin-3.1.6-1.i386.rpm' saved [173452/173452]

Preparing...                ########################################### [100%]
   1:perl-Mail-SpamAssassin ########################################### [ 50%]
   2:spamassassin           ########################################### [100%]

--12:47:57--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-Net-DNS-0.45-3.i386.rpm
           => `perl-Net-DNS-0.45-3.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 193,807 [application/octet-stream]

100%[====================================>] 193,807       42.29K/s    ETA 00:00

12:48:02 (42.29 KB/s) - `perl-Net-DNS-0.45-3.i386.rpm' saved [193807/193807]

--12:48:02--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-libnet-1.0901-17.i386.rpm
           => `perl-libnet-1.0901-17.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 91,739 [application/octet-stream]

100%[====================================>] 91,739        34.42K/s    ETA 00:00

12:48:06 (34.42 KB/s) - `perl-libnet-1.0901-17.i386.rpm' saved [91739/91739]

--12:48:06--  http://sme.swerts-knudsen.com/downloads/SpamFilter/dcc-dccproc-1.2.50-1.i386.rpm
           => `dcc-dccproc-1.2.50-1.i386.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 513,743 [application/octet-stream]

100%[====================================>] 513,743       48.51K/s    ETA 00:00

12:48:17 (48.51 KB/s) - `dcc-dccproc-1.2.50-1.i386.rpm' saved [513743/513743]

--12:48:17--  http://sme.swerts-knudsen.com/downloads/SpamFilter/perl-razor-agents-2.61-1.noarch.rpm
           => `perl-razor-agents-2.61-1.noarch.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 141,068 [application/octet-stream]

100%[====================================>] 141,068       39.28K/s    ETA 00:00

12:48:21 (39.28 KB/s) - `perl-razor-agents-2.61-1.noarch.rpm' saved [141068/141068]

--12:48:21--  http://sme.swerts-knudsen.com/downloads/SpamFilter/e-smith-USA-0.4.6-1.noarch.rpm
           => `e-smith-USA-0.4.6-1.noarch.rpm'
Resolving sme.swerts-knudsen.com... done.
Connecting to sme.swerts-knudsen.com[83.73.66.29]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,344 [application/octet-stream]

100%[====================================>] 13,344        14.09K/s    ETA 00:00

12:48:23 (14.09 KB/s) - `e-smith-USA-0.4.6-1.noarch.rpm' saved [13344/13344]

Preparing...                ########################################### [100%]
   1:dcc-dccproc            ########################################### [ 20%]

   2:e-smith-USA            ########################################### [ 40%]
Stopping crond: [   OK   ]
Starting crond: [   OK   ]


   3:perl-libnet            ########################################### [ 60%]
   4:perl-Net-DNS           ########################################### [ 80%]
   5:perl-razor-agents      ########################################### [100%]
Creating symlink razor-client <== /usr/bin/razor-check
Creating symlink razor-client <== /usr/bin/razor-report
Creating symlink razor-client <== /usr/bin/razor-revoke
Creating symlink razor-client <== /usr/bin/razor-admin
Discovering Razor2 servers please wait...
NOTE: If it takes more than 1 minute then read the SpamAssassin FAQ on sme.swerts-knudsen.dk

Retrieving http://sme.swerts-knudsen.com/downloads/SpamFilter/sme-spamfilter-1.3.0-1.noarch.rpm
error: failed dependencies:
        e-smith-mailfront >= 1.3.0-11 is needed by sme-spamfilter-1.3.0-1
Installation of SpamFilter complete.
[root@mail root]#

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Problem installing spamassassin from script
« Reply #2 on: November 02, 2006, 11:16:56 AM »
Pejman, No, unfortunately, no joy.  The server is 800km away from me, used heavely most of the time.  And so I am hesitant hacking into it to try to fix this problem.  If you find something, please let us know, I will do the same.  Best. chris
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

Offline raem

  • *
  • 3,972
  • +4/-0
Problem installing spamassassin from script
« Reply #3 on: November 02, 2006, 12:37:56 PM »
burnat & Pejman

What's the big problem ?
You have identified the issue !

> error: failed dependencies:
> e-smith-mailfront >= 1.3.0-11 is needed by sme-spamfilter-1.3.0-1

> [root@linuxserver root]# rpm -qa | grep e-smith-mailfront
> e-smith-mailfront-1.2.0-01

Just install the most recent e-smith-mailfront rpm
I have this installed
e-smith-mailfront-1.5.0-13gr07

and then run the install script again

Have you run
yum update
plus the other commands needed
on the server
...

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Problem installing spamassassin from script
« Reply #4 on: November 02, 2006, 12:47:18 PM »
Many thanks Ray.  I will pass this to the support people in MLB, it will make their day. You are a Gentlemen. Rgds. chris.

Quote
PS: Have you run
yum update
plus the other commands needed
on the server


No. Yum not configured, and this is not my box.  So I was hesitant making major changes...
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

pejman

How can I install e-smith mailfront?
« Reply #5 on: November 02, 2006, 02:44:19 PM »
Thanks a million Ray & Chris for your response and help. Where can I find e-smith-mailfront-1.5.0-13gr07 ? and How can I install it?

Offline chris burnat

  • ****
  • 1,135
  • +2/-0
    • http://www.burnat.com
Problem installing spamassassin from script
« Reply #6 on: November 02, 2006, 04:57:40 PM »
You will find  e-smith-mailfront-1.3.0-11 here: http://mirror.contribs.org/smeserver/releases/6.0/os/e-smith/RPMS/
Look around, there are more updated versions in the 6.1 and 6.5RC1 folders.

Download and move to an ibay, or move to root using wget.   If all is well, the following command from the CL should do the trick:  
Code: [Select]

rpm -Uvh e-smith-mailfront-1.3.0-11.noarch.rpm

Hope it helps. chris.
- chris
If it does not work out of the box, please fill in a Bug Report @ Bugzilla (http://bugs.contribs.org)  - check: http://wiki.contribs.org/Bugzilla_Help .  Thanks.

pejman

Problem installing spamassassin from script
« Reply #7 on: November 03, 2006, 02:53:04 AM »
Thank you very much Chris, it works now.

pejman

Problem installing spamassassin from script
« Reply #8 on: November 03, 2006, 08:16:47 AM »
Spam Assassin software is working now, but it can get all the spam, how can I set to get most of them?

Offline raem

  • *
  • 3,972
  • +4/-0
Problem installing spamassassin from script
« Reply #9 on: November 03, 2006, 08:45:20 AM »
pejman

> Spam Assassin....how can I set to get most of them?

In the spam filter panel, set a sensitivity of 4 points.
Also add these RBL lists as a minimum
dnsbl.njabl.org
relays.ordb.org
sbl-xbl.spamhaus.org
whois.rfc-ignorant.org

I would also suggest you do install
e-smith-mailfront-1.5.0-13gr07
as I recall it has a few extra features that may assist with rejecting undesirable messages.
You also need
mailfront-0.91-8es.i386.rpm

From Gordon Rowell, see link below
mailfront now has the ability to reject SMTP
connections from sites which say HELO/EHLO <somestring>. I've added
templates for /var/qmail/control/badhelo to reject the following which
should never come your way: yahoo.com, aol.com, $ExternalIP
The mail gets rejected with "553 Sorry, I don't believe that is who
you are."

e-smith-mailfront-1.15.0-13gr07 and mailfront-0.91-8es can be
found here:
http://www.gormand.com.au/smeserver/contrib/GordonRowell/


You would help reduce spam and virus infected emails with this howto.

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Virus%20and%20file%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm

This may be a good read for background info, but the setup has been incorporated into the spam filter panel, so no need to follow the steps, for info only re RBL lists.

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Spam%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm

This will also be useful

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/double%20bounce%20message%20deletion%20HOWTO%20for%20sme%20server.htm

and so will the tweaks outlined in this howto

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Mail%20system%20tweaks%20HOWTO%20for%20sme%20server.htm


PS Why are you still setting up a sme6 server, sme7 is better and has all the above howto features as standard, plus a lot more good things too, including spam & virus filtering ?
...

pejman

RBL Removal Problem
« Reply #10 on: November 06, 2006, 03:21:38 AM »
When I set the RBL I couldn' t send any email and receving as well. I couldn't remove RBL site from spam menu in Server-manager, how can I remove site manually? because the server-manager menu is not working.
 
This is my RBL Entry list which I couldn't remove any entry from the list. I think maybe because of [whois.rfc-ignorant.org, sbl-xbl.spamhaus.org] this list. because I put two list in one entry. So how can I fix it manually becase I try remove this item and save/restart but still all items are in the RBL List.

RBL Entry dnsbl.njabl.org Remove relays.ordb.org Remove sbl-xbl.spamhaus.org Remove whois.rfc-ignorant.org Remove whois.rfc-ignorant.org, sbl-xbl.spamhaus.org Remove

Thanks for your help.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: RBL Removal Problem
« Reply #11 on: November 06, 2006, 05:34:04 AM »
pejman

Looks like sme6 with spam filter panel.

You will need to edit the database entry directly if the panel is not working properly at present, and then restart the spam filter.

look in /home/e-smith/configuration

/sbin/e-smith/db configuration show smtpfront-qmail

smtpfront-qmail=service
    ExternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    Instances=40
    InternalInterfacesFilter=/usr/bin/qmail-queue.amavis
    MaxMessageSize=25000000
    Patterns=enabled
    PatternsFile=/var/qmail/control/patterns.default
    Proxy=enabled
    RBLList=whois.rfc-ignorant.org:dnsbl.njabl.org:relays.ordb.org:sbl-xbl.spamhaus.org
    access=public
    authentication=disabled
    status=enabled

/sbin/e-smith/db configuration setprop smtpfront-qmail RBLList xxx:yyy:zzz
(all on one line)
where xxx yyy & zzz are the list names you want

/sbin/e-smith/signal-event email-update

Check the spam filter panel is correct & save/restart it to play safe
...

pejman

Removing RBL site
« Reply #12 on: November 06, 2006, 07:54:47 AM »
Thanks Ray for quick response and sorry for posting twice.

My SME server is 6.0beta and the problem is I couldn't remove just only these five RBL as follows:

Current RBL entires:

RBL Entry  dnsbl.njabl.org Remove relays.ordb.org Remove sbl-xbl.spamhaus.org Remove whois.rfc-ignorant.org Remove whois.rfc-ignorant.org, sbl-xbl.spamhaus.org Remove

I can add and remove with another name but I couldn't remove these five site from the list.

At the moment I already turn off the Spam Filter because as long as I trun it on nobody can send and receive any e-mail.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Removing RBL site
« Reply #13 on: November 06, 2006, 08:04:57 AM »
pejman

Did you try what I advised ?

Do this (to remove all RBLs)

/sbin/e-smith/db configuration setprop smtpfront-qmail RBLList
/sbin/e-smith/signal-event email-update

and report the result of this
/sbin/e-smith/db configuration show smtpfront-qmail
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Removing RBL site
« Reply #14 on: November 06, 2006, 08:14:25 AM »
pejman

> SME server is 6.0beta

Could you please explain why you would still want to use a beta release of a version that has been superceded anyway. sme7 is now freely available and has RBL & a lot of other things built in by default.

Having asked that your server version IS a problem.
See this howto
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/Spam%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm

where it clearly says that 6.0beta does not support RBL functionality:

Checking your installed version of e-smith-mailfront rpm
The RBLList feature only works if the correct version of e-smith-mailfront is installed.
It should be installed by default in a properly installed or upgraded system running sme server v6.0 or v6.0.1.
Note that v6beta has an older version of the rpm & needs to be upgraded.

You MUST have this rpm installed (or a more recent version)

e-smith-mailfront-1.3.0-11.noarch.rpm

Note that if you have updated your system to support Pattern Matching (see seperate HOWTO) you may already have a more recent version

ie
e-smith-mailfront-1.5.0-12

To check if the correct version is installed do

rpm -qi e-smith-mailfront

It should show (or similar)

Name : e-smith-mailfront
Version : 1.3.0 Release : 11
Build Date: Thu 11 Sep 2003 06:06:30 AM WST
Install date: Sat 10 Jan 2004 07:51:05 AM WST
Build Host: sme60build.nssg.mitel.com

If you have an older version of rpm listed

eg
e-smith-mailfront-1.2.0-01.noarch.rpm
you should upgrade your system to the latest version of the sme operating system.

WARNING: Only proceed to the next step if you have the correct rpm installed, otherwise update your operating system first.
...

pejman

Problem installing spamassassin from script
« Reply #15 on: November 06, 2006, 08:38:33 AM »
I couldn't upgrade the server to sme 7.0 it is long story, anyway.

[root@mail e-smith]# rpm -qi e-smith-mailfront
Name        : e-smith-mailfront            Relocations: (not relocateable)
Version     : 1.3.0                             Vendor: Mitel Networks Corporation
Release     : 11                            Build Date: Thu 11 Sep 2003 06:06:30 AM WST
Install date: Fri 03 Nov 2006 09:56:16 AM WST      Build Host: sme60build.nssg.mitel.com
Group       : Networking/Daemons            Source RPM: e-smith-mailfront-1.3.0-11.src.rpm
Size        : 10633                            License: GPL
Packager    : e-smith developers <bugs@e-smith.com>
Summary     : e-smith server and gateway - mailfront smtpd module
Description :
e-smith server and gateway software - mailfront smtpd module
[root@mail e-smith]# /sbin/e-smith/db configuration show smtpfront-qmail
smtpfront-qmail=service
    access=public
    status=enabled
[root@mail e-smith]# /sbin/e-smith/db configuration setprop smtpfront-qmail RBLList
/sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...


When I run that command it is comes with this message "/sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...".

I am completely confusing.

Offline raem

  • *
  • 3,972
  • +4/-0
Problem installing spamassassin from script
« Reply #16 on: November 06, 2006, 08:51:54 AM »
pejman

Unless you are willing to take advice there is no point helping you.

You need to upgrade to at least sme 6.0 or sme 6.0.1 in order to get the RBLList functionality, as it was not supported in the base code of the beta release.
Even if you upgrade to sme 6.x (not a beta) you still need to check you have a minimum version for that rpm mentioned.


> I am completely confusing.

Start listening and the confusion will go away.
...

pejman

Problem installing spamassassin from script
« Reply #17 on: November 06, 2006, 04:16:38 PM »
Ray,  everything was working perfect until I add some RBL and I think my wrong was adding two site with comma in once, and after that I couldn't send and receive e-mail till I disable spam filter and also I couldn’t remove those five site. I agree with you if I upgrade this bloody server everything will go well.

pejman

How to remove RBL list manually in sme 6.0 beta
« Reply #18 on: November 06, 2006, 05:30:55 PM »
Hi Ray, Finally I have found the solution. I removed all RBL list from this file /home/e-smith/spamassassin_V3 in “rbl.global=”.

It is very funny if you accidentally put wrong syntax name in RBL list in server manager like as “sbl-;bl.spamhaus.org” instead of “sbl-xbl.spamhaus.org” after that you couldn’t remove the wrong site name and you have to edit that file as I told you.

So everything is working fine, I will upgrade the server to SME 7.0.

Thank you very much for you quick help.