Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


spamassassin + dcc

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Author Message
flb



Joined: 07 Nov 2007
Posts: 20

Posted: Fri Nov 09, 2007 7:47 am    Post subject: spamassassin + dcc  

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?
Back to top  
pclissold



Joined: 24 Oct 2003
Posts: 470
Location: Netherlands

Posted: Fri Nov 09, 2007 8:18 am    Post subject:  

Try: Code: cat /proc/sys/kernel/random/entropy_avail
to see if you have random data available.
Back to top  
flb



Joined: 07 Nov 2007
Posts: 20

Posted: Fri Nov 09, 2007 4:09 pm    Post subject:  

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.
Back to top  
 
       Linode.com Forum Forum Index -> Email/SMTP Related Forum
Page 1 of 1