spamassassin + dcc
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 .updatedccpfile /var/dcc/.updatedccpfile;\
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?
2 Replies
cat /proc/sys/kernel/random/entropy_avail
to see if you have random data available.