Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: spamassassin + dcc
PostPosted: Fri Nov 09, 2007 8:47 am 
Offline
Junior Member

Joined: Thu Nov 08, 2007 12:40 am
Posts: 34
I have configured spamassassin with dcc, razor, and pyzor on
my linode.

I have used all on other dedicated and vps's however using
when compiling dcc on my linode it hangs with the make install.
I found a work around but I am not sure what causes it.
The problem happens when the /var/dcc/map file is generated
(or not generated). The map file is not generated. /dev/random problem?

Here is the code:

if test -s .updatedcc_pfile; then\
../autoconf/install-sh -c -c -o root -g bin -m 600 .updatedcc_pfile /var/dcc/.updatedcc_pfile;\
set +e; chown root /var/dcc/.updatedcc_pfile; fi
if test ! -f /var/dcc/ids -a ! -f /var/dcc/map -a ! -f /var/dcc/map.txt; then\
umask 077; PASSWD1=`(ps; dd if=/dev/random count=1 2>&1) | cksum | tr ' ' xy`; PASSWD2=`(ps; dd if=/dev/random count=1 2>&1) | cksum | tr ' ' xy`;\
sed -e "s/secret1/$PASSWD1/" map.txt >/var/dcc/map.txt;\
sed -e "s/secret1/$PASSWD1/" -e "s/secret2/$PASSWD2/" ids\
>/var/dcc/ids;\
../cdcc/cdcc -qh /var/dcc 'new map; load /var/dcc/map.txt';\
sh -e fix-map -c ../cdcc/cdcc -h /var/dcc;\
../cdcc/cdcc -qh /var/dcc info >/var/dcc/map.txt;\
set +e; chown root /var/dcc/map.txt /var/dcc/map /var/dcc/ids;\
else\
sh -e fix-map -c ../cdcc/cdcc -h /var/dcc;\
fi
Anyone got a clue?


Top
   
 Post subject:
PostPosted: Fri Nov 09, 2007 9:18 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Try:
Code:
cat /proc/sys/kernel/random/entropy_avail

to see if you have random data available.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Nov 09, 2007 5:09 pm 
Offline
Junior Member

Joined: Thu Nov 08, 2007 12:40 am
Posts: 34
pclissold wrote:
Try:
Code:
cat /proc/sys/kernel/random/entropy_avail

to see if you have random data available.


There is data there. If you create an emply map file, it compiles.
I have compiled dcc on probably 1/2 dozen other systems and
this hasn't happened. It must relate to uml.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group