On Thu, 16 Sep 2004 15:29:54 -0500
Graham Wilson <bob(_at_)decoy(_dot_)wox(_dot_)org> wrote:
Hi Graham,
thanks for your answer!
#####
poll localhost port 10110 protocol pop3 username max is max
password "wont-tell-you" keep preconnect "/usr/bin/ssh -f -C -x -L
10110:pop3-A:110 max(_at_)ssh-A /bin/sleep 10"
poll localhost port 10111 protocol pop3 username mamers is max
password "wont-tell-you" keep preconnect "/usr/bin/ssh -f -C -x -L
10111:pop3-B:110 mamers(_at_)ssh-B /bin/sleep 10"
#####
Do you run this after the first fetch is complete?
The error also occurs if the second account is the only one in
~/.fetchmailrc, with fetchmail never having been run before since the
last reboot.
bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 10111
Could not request local forwarding.
This error message seems to come from the SSH client. What happens
when you try to run each preconnect command in succession on the
command line?
Nothing. Both commands exit normally (but after about 2 seconds only
instead of 10?), no error message shows up.
While as you say the message definitely comes from SSH, it seems that
fetchmail for some reason runs a second SSH client for this account: If
I run "netstat -anp|grep 1011" in a second shell while having fetchmail
fetch the mail, I see that only one tunnel is (correctly) set up for the
first account. But for the second account, a few seconds after the first
tunnel, a second SSH-client for a tunnel is started - which then of
course results in the error above.
Any idea why fetchmail does this?
Cheers,
Max
PS:
I'm sorry, but I posted this mail using a wrong sender-email-address the
first time, so if this mail reaches the list twice, please simply ignore
one. My apologies to the list-admin who has to process the first
version manually!
--
The first time any man's freedom is trodden on, we're all damaged.
<Cpt. Picard, "The Drumhead", StarTrek TNG>
http://homex.subnet.at/~max/