Spamassassin not installed when updating to Custombuild 2.0

ericovk

Verified User
Joined
Apr 17, 2012
Messages
219
Location
Rotterdam, Netherlands
Hi,
I have updated one of my servers yesterday to CB2.0 with setting "spamassassin: yes, no. Current value: yes. Default value: no." in options.conf.

After this upgrade spamd seems to run, but I can't find it in DA, nor (re)start spamd service.

Code:
ps ax |grep spamd
12336 pts/0    S+     0:00 grep spamd
Code:
service spamd status
spamd: unrecognized service
Code:
service spamd start
spamd: unrecognized service
Also no exim.spamassassin.conf found:

Code:
ll /etc/exim.spamassassin*
ls: cannot access /etc/exim.spamassassin*: No such file or directory
It seemd that spamassassin has been installed for only half. What should I do? Rebuild spamassassin?
 
Last edited:

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
Current value: yes.
Just to be sure, did you also do:
./build update
./build spamassassin
after changing the value to yes?
If yes, do it again and see if you encounter errors in the build process. If not, you have to issue these commands to install spamassassin.
Depending on which Custombuild you are using you might or might not need to change some linex in /etc/exim.conf.
 

ericovk

Verified User
Joined
Apr 17, 2012
Messages
219
Location
Rotterdam, Netherlands
Hi,

No, what I did was:

Code:
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build
> After that I changed: spamassassin from no to yes (and of course other options) in options.conf, and then:
Code:
./build all d
./build rewrite_confs
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
After that I changed: spamassassin from no to yes (and of course other options) in options.conf, and then:
./build all d
Oops, you forget to do the "./build update" so the config changes was not seen so it was not build.
After every change to options.conf you need to issue the ./build update command.

Anyway, in that case you should be fine when building Spamassassin like this.
Code:
./build update
./build spamassassin
Check for errors and issues during the build process.
 

ericovk

Verified User
Joined
Apr 17, 2012
Messages
219
Location
Rotterdam, Netherlands
Think I found the issue:
Code:
./build spamassassin
--2016-04-07 08:24:52--  http://files.directadmin.com/services/exim.spamassassin.conf
Resolving files.directadmin.com... 216.144.254.90, 69.162.69.58, 208.167.226.3
Connecting to files.directadmin.com|216.144.254.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 534 [text/plain]
Saving to: `/etc/exim.spamassassin.conf'


100%[======================================>] 534         --.-K/s   in 0s


2016-04-07 08:24:52 (128 MB/s) - `/etc/exim.spamassassin.conf' saved [534/534]


Installing spamassassin 3.4.1...
Found /usr/local/directadmin/custombuild/Mail-SpamAssassin-3.4.1.tar.gz
Extracting ...
Done.
Configuring SpamAssassin 3.4.1...
Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 8.
BEGIN failed--compilation aborted at Makefile.PL line 8.


*** There was an error while trying to configure SpamAssassin.
 

ericovk

Verified User
Joined
Apr 17, 2012
Messages
219
Location
Rotterdam, Netherlands
Code:
REQUIRED module missing: Net::DNS
REQUIRED module missing: NetAddr::IP
REQUIRED module missing: Time::HiRes
REQUIRED module missing: Archive::Tar
REQUIRED module missing: IO::Zlib
optional module missing: Digest::SHA1
optional module missing: Mail::SPF
optional module missing: Geo::IP
optional module missing: Net::CIDR::Lite
optional module missing: Razor2
optional module missing: IO::Socket::IP
optional module missing: IO::Socket::INET6
optional module missing: IO::Socket::SSL
optional module missing: Mail::DKIM
optional module missing: DBI
optional module missing: LWP::UserAgent
optional module missing: Encode::Detect::Detector
optional module missing: Net::Patricia
optional module missing: Net::DNS::Nameserver
optional binary missing or nonfunctional: fetch
It seemd that I am missing some kind of CPAN things... Did I miss some pre install commands?
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,854
Location
GMT +7.00
A little trick to get all required for SA modules installed from a repo of your OS:

Code:
yum install -y spamassassin && yum erase -y spamassassin
;)
 
Top