spamassassin suse 10.0

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

kackstelze
Posts: 10
Joined: Tue May 23, 2006 10:11 am

spamassassin suse 10.0

Postby kackstelze » Tue May 23, 2006 10:31 am

Hi there,

I successfully installed Scalix on SuSE 10.0. Now I want to add Spamassassin to block Spam and used the How-To 'Configuring SpamAssassin on SuSE Systems (165119)' out of the knowledgebase.

There is required ti install a spamass-milter.rpm, but I didn't found one. I compile the plugin myself by using this souce: http://savannah.nongnu.org/projects/spamass-milt/

On last page it is explained to restart the milter

Code: Select all

/etc/init.d/spamass-milter restart

but it doesn't work. Error tells me that the file is missing :?:

by restarting sendmail i get thi error:

Code: Select all

zentrale:/ # rcsendmail restart
Shutting down SMTP port                                               done
Initializing SMTP port (sendmail)WARNING: Xspamassassin: local socket name /var/run/spamass.sock missing
                                                                      done


I searched the whole system for spamass.sock, but didn't found anything....

I don't know whats wrong.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 23, 2006 10:49 pm

The second error is because you don't have the milter running because your startup script is missing. Did you to a "./configure; make; make install" or just a "./configure; make"? Did you successfully make the milter?

Thanks,
Rachel

kackstelze
Posts: 10
Joined: Tue May 23, 2006 10:11 am

Postby kackstelze » Wed May 24, 2006 7:35 am

I run

./confugre
make
make install


the run of configure brings no errors. Here comes the output:

Code: Select all

zentrale:/usr/src/spamass-milter-0.3.0 # ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... none
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... none
checking for C compiler warning flags... -Wall
checking whether the compiler supports exceptions... yes
checking whether the compiler implements namespaces... yes
checking whether the compiler has __gnu_cxx::__verbose_terminate_handler... yes
checking for -fno-default-inline... yes
checking for -fno-inline... yes
checking for spamc... /usr/bin/spamc
checking for sendmail... /usr/sbin/sendmail
checking for nroff... nroff
checking for mdoc nroff macros... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
checking how to run the C++ preprocessor... g++ -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking sys/cdefs.h usability... yes
checking sys/cdefs.h presence... yes
checking for sys/cdefs.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for an ANSI C-conforming const... yes
checking for pid_t... yes
checking for size_t... yes
checking if we must define _GNU_SOURCE... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking if malloc debugging is wanted... no
checking for vsyslog... yes
checking for vasprintf... yes
checking for vsnprintf... yes
checking for asprintf... yes
checking for snprintf... yes
checking for library containing gethostbyname... none required
checking for library containing connect... none required
checking for library containing inet_aton... none required
checking for strsep... yes
checking for daemon... yes
checking whether strsep is declared... yes
checking whether daemon is declared... yes
checking for mi_stop in -lmilter... yes
checking libmilter/mfapi.h usability... yes
checking libmilter/mfapi.h presence... yes
checking for libmilter/mfapi.h... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating contrib/spamass-milter.spec
config.status: creating spamass-milter.1
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands


here the output of the last two steps:

Code: Select all

entrale:/usr/src/spamass-milter-0.3.0 # make
make  all-am
make[1]: Entering directory `/usr/src/spamass-milter-0.3.0'
make[1]: Leaving directory `/usr/src/spamass-milter-0.3.0'
zentrale:/usr/src/spamass-milter-0.3.0 # make install
make[1]: Entering directory `/usr/src/spamass-milter-0.3.0'
test -z "/usr/local/sbin" || mkdir -p -- "/usr/local/sbin"
  /usr/bin/install -c 'spamass-milter' '/usr/local/sbin/spamass-milter'
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
 /usr/bin/install -c -m 644 './spamass-milter.1' '/usr/local/man/man1/spamass-milter.1'
make[1]: Leaving directory `/usr/src/spamass-milter-0.3.0'
zentrale:/usr/src/spamass-milter-0.3.0 #



All seems good to me, but doesn't work.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed May 24, 2006 8:22 am

kackstelze,

you need a better forum name. The one you are using makes me want to delete this post.

Congrats on building the milter. As you see:

Code: Select all

 /usr/bin/install -c 'spamass-milter' '/usr/local/sbin/spamass-milter'


the milter was installed into /usr/local/sbin.

Hence, you cannot start it out if /etc/init.d

You need to start it out of the directory you installed into.

Cheers,

Sascha.

[/code]

kackstelze
Posts: 10
Joined: Tue May 23, 2006 10:11 am

Postby kackstelze » Wed May 24, 2006 8:50 am

Hehe, it seem's you speak German.....

I will change my nick after this post.

There are some questions:

In the scalix knowlegdebase doc is written to start the plugin with this command:

Code: Select all

spamass-milter restart

but doesn't work. I read the output and tried to start it this way:

Code: Select all

/usr/local/sbin/spamass-milter -p /var/run/spamass.sock -D localhost -x

ok, no errors ... it is running!

What to to now ?? Where can I configure spamassassin ???
/etc/mail/spamassassin/local.cf ??

Last question: Where can I see, when Spam is filtered ??

Thank's alot for your help!

shadowfayre

Postby shadowfayre » Tue Jun 06, 2006 2:28 pm

I as well experienced the same problem with Suse 10 and installing spamass-milter. However, I tried to execute spamass-milter as noted by the previous posted, I simply get a black cursor.

Can advice would be appreciated.

jeremy

Postby jeremy » Wed Jun 07, 2006 3:48 pm

Scalix knowledgebase indicates that the spamass-milter RPM for SuSE can be downloaded from the Scalix Site -- Is this not true? I cannot find it here, and this thread indicates it must be built manually from source. Please advise.

See page 1:

http://portal.knowledgebase.net/display ... aid=165119

Thanks.

kackstelze
Posts: 10
Joined: Tue May 23, 2006 10:11 am

Postby kackstelze » Thu Jun 08, 2006 3:41 am

To install the milter:

download the source at http://savannah.nongnu.org/projects/spamass-milt/
tar xzf ***.gz
change to the extracted dir
./configure
make
make install

when I start the milter, no black cursor appears. You can test if it's running by typing
ps -A | grep milter
here are the processes listed with milter in in its name.

--------------------

Ok, but I had also a Problem:
milter is running, clamd is running, I configured local.cf,
give 150 spam mails as spam to la-learn

but nothing is filtered ?!
I read there must be an entry by SA in the heads of the mails, but nothing in there.

I think SA isn't checkin the mails. What is wrong ????

kackstelze
Posts: 10
Joined: Tue May 23, 2006 10:11 am

Postby kackstelze » Mon Jun 12, 2006 9:56 am

Ok, once again:

If I fetch email with fetchmail from a pop-account on another server, spamassassin doesn't work. There are no entries in the mail, nothing filtered.

But when I connect via telnet to the server and send a mail, SA is controlling it and adds entries in the header of the mail! What is wrong?!

Please help me, thx!

klarsen
Posts: 15
Joined: Thu Jul 27, 2006 5:37 pm

Postby klarsen » Tue Oct 31, 2006 3:17 pm

I'm still having problems getting this to work. Can someone please shed some light on installing this in suse 10.1? I've searched around for an RPM and can't seem to find one that works. I installed from source, but can't seem to get it to start. When I enter the command above, it just sits there. This is getting very frustrating.


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 9 guests

cron