Re: staring imapd from command line?

2003-07-05 Thread Joshua Oreman
On Sat, Jul 05, 2003 at 04:04:25PM -0400 or thereabouts, David Loszewski wrote:
 I don't use inetd for security reasons but am now trying to start imapd from the 
 command line, if I do '/usr/local/libexec/imapd '  this happens: 
 
 hermes# * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS LOGINDISABLED] 
 hermes.bsdadmins.net IMAP4rev1 2003.337 at Sat, 5 Jul 2003 16:07:17 -0500 (EST)
 
 [1]  + Suspended (tty input) /usr/local/libexec/imapd
 
 How do I make this work?

Make an /etc/inetd.conf file with one line to start imapd. Sorry, you have to.
Of course, you could use an inetd replacement, like xinetd (from ports).
Another solution would be to install tcpserver (might be part of daemontools)
and use that for a one-program inetd.

Here's why:
Inetd listens on port 143 (for example). When it gets a connection, it starts
/usr/local/libexec/imapd with its stdout going to the network and its stdin
coming from the network. So if you start imapd from the command line, it expects
its stdin to be reading the network. Actually, since inetd wasn't there to
redirect it, it's reading from (and writing to) your terminal.

So: use inetd, xinetd, or tcpserver.

-- Josh

 
 Dave
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: staring imapd from command line?

2003-07-05 Thread Martin Karlsson

Hi,

* Joshua Oreman [EMAIL PROTECTED] [2003-07-05 13.27 -0700]:
 On Sat, Jul 05, 2003 at 04:04:25PM -0400 or thereabouts, David Loszewski wrote:
  I don't use inetd for security reasons but am now trying to start imapd from the 
  command line, if I do '/usr/local/libexec/imapd '  this happens: 
  
  hermes# * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS LOGINDISABLED] 
  hermes.bsdadmins.net IMAP4rev1 2003.337 at Sat, 5 Jul 2003 16:07:17 -0500 (EST)
  
  [1]  + Suspended (tty input) /usr/local/libexec/imapd
  
  How do I make this work?
 
 Make an /etc/inetd.conf file with one line to start imapd. Sorry, you have to.
[...snip...]

I seem to remember that you can start courier's imapd 
(/usr/ports/mail/courier-imap) from a script in /usr/local/etc/rc.d, 
without having to use inetd.  Presumably, starting it directly from 
the command line would work as well(?).  Please note, however, that 
it has been a while since I used it, so you may want to investigate 
it further before going there.

Regards,
-- 
Martin Karlsson
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: staring imapd from command line?

2003-07-05 Thread David Loszewski
yes, I think you can however courier uses the Maildir style for qmail
instead of the mail style for sendmail, unless I'm wrong

Dave

- Original Message - 
From: Martin Karlsson [EMAIL PROTECTED]
To: Joshua Oreman [EMAIL PROTECTED]
Cc: David Loszewski [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, July 05, 2003 5:06 PM
Subject: Re: staring imapd from command line?



 Hi,

 * Joshua Oreman [EMAIL PROTECTED] [2003-07-05 13.27 -0700]:
  On Sat, Jul 05, 2003 at 04:04:25PM -0400 or thereabouts, David Loszewski
wrote:
   I don't use inetd for security reasons but am now trying to start
imapd from the command line, if I do '/usr/local/libexec/imapd '  this
happens:
  
   hermes# * OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS
LOGINDISABLED] hermes.bsdadmins.net IMAP4rev1 2003.337 at Sat, 5 Jul 2003
16:07:17 -0500 (EST)
  
   [1]  + Suspended (tty input) /usr/local/libexec/imapd
  
   How do I make this work?
 
  Make an /etc/inetd.conf file with one line to start imapd. Sorry, you
have to.
 [...snip...]

 I seem to remember that you can start courier's imapd
 (/usr/ports/mail/courier-imap) from a script in /usr/local/etc/rc.d,
 without having to use inetd.  Presumably, starting it directly from
 the command line would work as well(?).  Please note, however, that
 it has been a while since I used it, so you may want to investigate
 it further before going there.

 Regards,
 -- 
 Martin Karlsson


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]