[Spambayes] Using Spambayes w/ Eudora

Tony Lownds tony-bayes at lownds.com
Mon Jan 13 22:49:04 EST 2003


At 1:22 PM +1100 1/14/03, Anthony Baxter wrote:
>What about using multiple virtual loopback interfaces? 127.0.0.1,
>127.0.0.2, &c, and making pop3proxy use getpeername() to look up
>what address it is you've called?

This approach is working great, and no getpeername() call is needed. 
I have a startup script that sets everything up, I even have the 
actual POP traffic tunneled over ssh.

Here is my startup script:

------- SpamBayes.command ---------
#!/bin/sh
clear
ulimit -s 2048
cd ~/spambayes
sudo ifconfig lo0 inet 127.0.0.2 add
ssh -N -L 1110:127.0.0.1:110 tony at server1.com &
ssh -N -L 1111:127.0.0.1:110 tony at server2.com &
sudo python pop3proxy.py

And the relevant lines from bayescustomize.ini:

pop3proxy_ports = 127.0.0.1:110, 127.0.0.2:110
pop3proxy_servers = localhost:1110, localhost:1111

The diff to pop3proxy.py is attached.

-Tony-------------- next part --------------
A non-text attachment was scrubbed...
Name: bind_address.patch
Type: application/mac-binhex40
Size: 7188 bytes
Desc: not available
Url : http://mail.python.org/pipermail/spambayes/attachments/20030113/b1ea0340/bind_address.bin


More information about the Spambayes mailing list