[Spambayes] pop3proxy - a couple issues

Skip Montanaro skip at pobox.com
Tue Jan 14 17:08:28 EST 2003

    Tony> Skip wrote:
    >> * When I click the "review" button in my web browser I get a max
    >> recursion depth exception from pop3proxy and a blank page in my
    >> browser.  Here are the start and end of the asyncore traceback:

    Tony> I ran into this too; the stack size is too small. Run one of these 
    Tony> commands first:

    Tony> tcsh: ulimit stacksize 2048

    Tony> sh: ulimit -s 2048

    Tony> Mac OS X's default is 512, I picked 2048 at random.

That's not it, or at least a stacksize of 2048 won't be sufficient.  I
already have my stack size set to 8192 by default:

    % ulimit -a
    core file size        (blocks, -c) 0
    data seg size         (kbytes, -d) 6144
    file size             (blocks, -f) unlimited
    max locked memory     (kbytes, -l) unlimited
    max memory size       (kbytes, -m) unlimited
    open files                    (-n) 256
    pipe size          (512 bytes, -p) 1
    stack size            (kbytes, -s) 8192
    cpu time             (seconds, -t) unlimited
    max user processes            (-u) 100
    virtual memory        (kbytes, -v) 14336

Looking at the traceback it seems to me that a __getattr__ or __getitem__
method has a bug.

    >> The proxy is started like so:
    >> pop3proxy.py -p ~/hammie.db -d -l 11111 \
    >> -e 'ssh -q -C -f mail.mojam.com -L 11110:localhost:110 bash -c \
    >> "while true ; do sleep 60 ; done"' \
    >> localhost 11110

    Tony> ssh has an -N flag that will replace that while loop.

I tried it.  It doesn't work as I'd like.  When you use -N, ssh exits after
one proxy session.  That is, pop3proxy connects through the tunnel as a
result of a local connection request, then once that session is complete,
ssh exits.  The next time the local mail user agent (fetchmail in my case at
the moment), pop3proxy gets a connection refused message because ssh is

    >> (remove the backslashes before trying this at home).  All the -e flag
    >> does is get the associated command started up before doing anything
    >> else:

    Tony> I have found, in my one day of using ssh tunnels + pop3proxy ,that
    Tony> my ssh tunnels will go down (due to the computer going to sleep or
    Tony> my internet connection being flakey) more often than pop3proxy.py
    Tony> does (due to me closing it). So, perhaps the command is better
    Tony> spawned when the proxy can't connect to the server. Just a
    Tony> thought...

Maybe, but that's going to be a fair amount more work.


More information about the Spambayes mailing list