|
From: Ratan N. <nal...@ya...> - 2006-04-21 22:47:27
|
Hi all:
I am still struggling a bit with the configuration. As
suggested, I am going to describe what I am trying to achieve
and then explain what I have done so far.
- I want to download mail from the mailserver to my laptop,
leaving an empty mailbox on the server.
- The mailserver currently has IMAP and POP3 ports open,
though POP3 may be closed in the future. There is no server
on the POP3S port as we speak though.
- Ideally, I don't want to enter the password to fetchmail,
but have it use my ssh-agent if available and fail if not.
- I sometimes read the mail directly on the mail server
using squirrelmail and elm. In these cases, the messages
are being marked as Read on the server ("Status: RO").
However,
when I get them using fetchmail on IMAP protocol, the Status
line disappears in the fetched e-mail.
- When I fetch the same mail using fetchmail on POP3 protocol,
the "Status" fields are retained but it leads to a different
problem: insufficient integration with ssh/ssh-agent.
I tried the following configuration with IMAP protocol with the
result that all fetched mails were appearing as brand new:
=== IMAP config ===
set postmaster "ratan"
set bouncemail
set no spambounce
set properties ""
defaults mda "/usr/bin/procmail -d %T"
poll bitter
plugin "env -u DISPLAY /home/ratan/bin/%h exec
/usr/local/bin/imapd" auth ssh;
user 'ratan' there is 'ratan' here
expunge 10
options fetchall
mda "cat >> /home/ratan/TEST"
=================
I tried the following configuration with POP3 at the suggestion
of Matthias. This almost worked except that it is not using SSH.
=== pop3, attempt#1 ===
poll bitter with pop3
uidl
options fetchall
=========
After some research, I tried the following to force it to use
ssh; but the results were still not good: this configuration
still asks for password; if I enter a bad password, the
authentication fails: i.e., apparently, unlike imap server, the
pop3 server has no preauthorized state.
==== pop3, attempt#2 ===
poll bitter with pop3 via localhost port 8005
uidl
preconnect "ssh -n -2 -a -C -f ratan@bitter -L
8005:bitter:110 sleep 5"
======
Any suggestions on how I can get the mail while retaining the
"Seen" flags exclusively using the ssh-agent for connection
would be great.
BTW, I tried fetchmail version 6.3.4 and 6.2.5.2 both with the
same results.
Thanks!
Ratan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|