[Spambayes] sb_server.py on linux - web interface not working

Morgan Collett morgan at mcode.co.za
Wed Nov 26 02:14:59 EST 2003


Kenny Pitt wrote:

>Morgan Collett wrote:
>  
>
>>The problem is that the web interface is not working. If I use Mozilla
>>to go to the URL (from a different box on my network) I get "Document
>>contains no data".
>>    
>>
>First, "localhost" is a standard name used to refer to the system that
>you are running on, so you can't use that name to connect from "a
>different box on the network".  You'll need to use the actual hostname
>of the box (e.g. "mygateway") or its IP address.
>  
>
Yes, I do use the IP address of the box. When I start sb_server.py on 
the linux box it reports its URL as localhost though.

>Second, SpamBayes by default prevents you from connecting to the Web
>interface from a remote system for security reasons.  You need to change
>a configuration setting to allow other systems to connect.  This is
>normally done from the Advanced Configuration page in the UI, but it
>sounds like you aren't able to get there even on the gateway box so
>you'll have to edit the config file manually.  Sorry I can't tell you
>precisely where to find it on Linux, but it will likely be in the same
>directory as your database ("/var/spambayes"?) and will probably have
>"bayescustomize" somewhere in the name.  You'll need to add the
>following lines in this file:
>
>[html_ui]
>allow_remote_connections:1.2.3.4
>  
>
Aah. This fixed it! I missed the config file somehow - options are 
"bayescustomize.ini" or ".spambayesrc" in the user's home directory or 
the current directory. I had to create one since I couldn't find a 
default one.

Thanks
Morgan




More information about the Spambayes mailing list