Re: [Dovecot] ssh tunneling and maildir
On Fri, 2007-07-13 at 14:11 -0700, Joel Becker wrote: > > > Will I need any auth? I don't right > > > now? > > > > No, with --exec-mail imap it gives you a preauth imap session. > > Ok, with "/usr/sbin/dovecot -c /home/jlbec/.dovecotrc --exec-mail > imap" I now have it working successfully against my existing mbox setup. > Thank you! I can take it from here. Great, glad I could help. johannes signature.asc Description: This is a digitally signed message part
Re: [Dovecot] ssh tunneling and maildir
On Thu, Jul 12, 2007 at 11:49:14AM +0200, Johannes Berg wrote: > > /usr/sbin/dovecot -c /home/jlbec/.dovecotrc > > Sounds good. > > > Will I need any auth? I don't right > > now? > > No, with --exec-mail imap it gives you a preauth imap session. Ok, with "/usr/sbin/dovecot -c /home/jlbec/.dovecotrc --exec-mail imap" I now have it working successfully against my existing mbox setup. Thank you! I can take it from here. Joel -- "Every day I get up and look through the Forbes list of the richest people in America. If I'm not there, I go to work." - Robert Orben http://www.jlbec.org/ [EMAIL PROTECTED]
Re: [Dovecot] ssh tunneling and maildir
On Wed, 2007-07-11 at 08:57 -0700, Joel Becker wrote: > Ok. How do I configure it if I cannot modify /etc? Ah, good question. > /usr/sbin/dovecot -c /home/jlbec/.dovecotrc Sounds good. > . I also assume I need -F to > run it as a foreground process? No, with --exec-mail imap it automatically runs in the foreground > Will I need any auth? I don't right > now? No, with --exec-mail imap it gives you a preauth imap session. johannes signature.asc Description: This is a digitally signed message part
Re: [Dovecot] ssh tunneling and maildir
On Wed, Jul 11, 2007 at 11:58:10AM +0200, Johannes Berg wrote: > On Tue, 2007-07-10 at 23:31 -0700, Joel Becker wrote: > > > However, this doesn't appear to be documented anywhere. A > > friend showed it to me, and I don't even remember who that was. > > :) > > You should really just configure dovecot as though you wanted to run the > daemon and then run > /usr/sbin/dovecot --exec-mail imap Ok. How do I configure it if I cannot modify /etc? /usr/sbin/dovecot -c /home/jlbec/.dovecotrc. I also assume I need -F to run it as a foreground process? Will I need any auth? I don't right now? Thanks Joel Joel > > That'll give you all the environment you need. > > johannes -- Life's Little Instruction Book #237 "Seek out the good in people." http://www.jlbec.org/ [EMAIL PROTECTED]
Re: [Dovecot] ssh tunneling and maildir
On Tue, 2007-07-10 at 23:31 -0700, Joel Becker wrote: > However, this doesn't appear to be documented anywhere. A > friend showed it to me, and I don't even remember who that was. :) You should really just configure dovecot as though you wanted to run the daemon and then run /usr/sbin/dovecot --exec-mail imap That'll give you all the environment you need. johannes signature.asc Description: This is a digitally signed message part
[Dovecot] ssh tunneling and maildir
Hello everyone, please keep my CC'd, I'm not on the list. I've been using dovecot happily via an ssh tunnel. My mutt is configured to use IMAP, and the tunnel is as follows in my muttrc: set tunnel="ssh -q mymailhost 'MBOX_LOCKS=fcntl MAIL=/home/jlbec/mail /usr/libexec/dovecot/imap'" It should be pretty obvious that this logs into mymailhost as me (via SSH keyauth) and runs /usr/libexec/dovecot/imap directly as a foreground process. Setting MAIL, it points dovecot imap to my mbox folders. dovecot imap speaks imap over stdin/out, this goes over the ssh to mutt. It works great. Really great. I don't need root access at all, the server isn't running dovecot globally, and I get IMAP through firewalls if I can ssh through a firewall/vpn. I'm using mbox and fcntl, so my MTA has no trouble working in concert. However, this doesn't appear to be documented anywhere. A friend showed it to me, and I don't even remember who that was. I'm now considering changing to maildir folders. I figure dovecot imap might figure out a folder is maildir when stat says S_IFDIR, but without documentation, I can't figure out how to tell dovecot imap to use maildir when I create a folder. I'm also unsure how this will interact with my MTA. For the latter, I'm thinking I just need to configure my MTA to use dovecot's deliver program. For the former, is there some magic environment variable I need to add to my tunnel command line? Thanks Joel -- "The first requisite of a good citizen in this republic of ours is that he shall be able and willing to pull his weight." - Theodore Roosevelt http://www.jlbec.org/ [EMAIL PROTECTED]