Double emails from the list

2002-04-13 Thread Gareth Hastings

Anyone know why I get 2 copies of every email sent to this list? Is
there something I can do to fix it?

Thanks

Gareth





從工廠直接出貨

2002-04-13 Thread D-HOUSE
Title: °g§A¦æ°ÊºÐ    ¼uÀ£¦¡¥úºÐ§²°²Õ   
¦Lªí¾÷¾¥¤ô







 
 
 



 °g§A¦æ°ÊºÐ   
¼uÀ£¦¡¥úºÐ§²°²Õ   
¦Lªí¾÷¾¥¤ô     
CD-R/RW
 
   
¤u¼tª½¾Pºô : www.d-house.com
¡@





User authentication

2002-04-13 Thread Steve Huston

Here's a question that I havn't seen on the list.  I have Cyrus IMAP 2.0.16
installed, and running great for us here.  All of the users use Pine from
local machines, and would like to not have to type their password to get their
mail from the server.  Also, I want to implement one-time passwords for users
travelling abroad, and since the connection would be unencrypted I don't want
them to type the password to read mail.  Is there a way to carry some sort of
authentication from the local machines to the server?  Many users use OpenSSH
authentication agents (and if that's the best way to go, I have no problem
enforcing it), so there's one possibility.

Currently authentication is done with passwd, since I couldn't get PAM and NIS
to play well with each other, so adding "+::/bin/false" to /etc/passwd got
it working fine.  Though we'll hopefully be moving to LDAP soon for other
reasons anyway.

I would imagine the best solutions would be some way for the server to know
that the remote user is authenticated already, and not require a password.
Pine wants to do this by using rsh to the mail server, and running
/etc/rimapd, but since user logins are disabled on the server I disabled rsh
in Pine.  Could ssh be used for this?  What about Kerberos (which I'd have to
learn about before implementing, but there's other users who have requested a
few Kerberized services anyway)?  Any help would be appreciated.

Thanks.

-- 
Steve Huston - System Administrator, Dept. of Astrophysical Sciences
 Princeton University  | ICBM Address: 40.346525   -74.651285
   126 Peyton Hall |"On my ship, the Rocinante, wheeling through
 Princeton, NJ   08544 | the galaxies; headed for the heart of Cygnus,
   (609) 258-7375  | headlong into mystery."  -Rush, 'Cygnus X-1'





Re: preventing connect from different ip's if cyrus.conf contains specific binds

2002-04-13 Thread Ilya

yes Ive waited for several minutes, the thing is that another pop3d is
spawned immediately as "ps" shows.
for example in this situation:
22082  p1  I  0:00.07 pop3d: pop3d: localhost.alchemistry.net[127.0.0.1]
(pop3d)   |original
22084  p1  I  0:00.03 pop3d  |second one

they are both sleeping..

iif I kill 22082, than prompt appears immediately in the telnet
I know for sure that master is listening  this is output of sockstat:
cyrusmaster   22064   12 tcp4   127.0.0.1:110 *:*
cyrusmaster   22064   15 tcp4   192.168.0.3:110   *:*
it just that pop3d doesnt work properly I guess. ?

a quick gdb look said that its running function fcntl ?


- Original Message -
From: "Ken Murchison" <[EMAIL PROTECTED]>
To: "Ilya" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 12:22 PM
Subject: Re: preventing connect from different ip's if cyrus.conf contains
specific binds


> Works for me.  Are you waiting a few seconds for the service to be
> spawned by master (since prefork=0)?  If master wasn't listening on the
> given interface, you'd get something like this:
>
> telnet: connect to address 192.168.0.3: Connection refused
>
> Ken
>
>
> Ilya wrote:
> >
> > same thing:
> >
> > [EMAIL PROTECTED]$ telnet localhost 110
> > Trying 127.0.0.1...
> > Connected to localhost.alchemistry.net.
> > Escape character is '^]'.
> > +OK krel.org Cyrus POP3 v2.1.3 server ready
<[EMAIL PROTECTED]>
> > quit
> > +OK
> > Connection closed by foreign host.
> > [EMAIL PROTECTED]$ telnet 192.168.0.3 110
> > Trying 192.168.0.3...
> > Connected to alchemistry.net.
> > Escape character is '^]'.
> >
> > ^]
> >
> > telnet> quit
> > Connection closed.
> > [EMAIL PROTECTED]$ ps -ax|grep pop
> >  2618  p5  I+ 0:00.17 tail -f pop3d
> > 92404  p8  I  0:00.07 pop3d: pop3d:
localhost.alchemistry.net[127.0.0.1]
> > (pop3d)
> > 92411  p8  S  0:00.03 pop3d
> >
> > and as soon as I kill 92404 I get response from 192.168.0.3
> > here is my current config (of course I recycled master before trying)
> > # standard standalone server implementation
> > START {
> >   # do not delete this entry!
> >   recover   cmd="ctl_cyrusdb -r"
> >
> >   # this is only necessary if using idled for IMAP IDLE
> > #  idledcmd="idled"
> > }
> >
> > # UNIX sockets start with a slash and are put into /var/imap/socket
> > SERVICES {
> >   # add or remove based on preferences
> >   imap  cmd="imapd" listen="imap" prefork=0
> > #  imap  cmd="imapd" listen="[127.0.0.1]:imap" prefork=0
> > #  imap  cmd="imapd" listen="[192.168.0.3]:imap" prefork=0
> > # imap  cmd="imapd" listen="[66.114.66.158]:imap" prefork=0
> >   imaps cmd="imapd -s" listen="imaps" prefork=0
> > #  pop3  cmd="pop3d" listen="pop3" prefork=0
> >   pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
> >   pop3-lan  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
> > #  pop3  cmd="pop3d" listen="[66.114.66.158]:pop3" prefork=0
> >   pop3s cmd="pop3d -s" listen="pop3s" prefork=0
> >   sieve cmd="timsieved" listen="sieve" prefork=0
> > #  sieve cmd="timsieved" listen="[192.168.0.3]:sieve" prefork=0
> > #  sieve cmd="timsieved" listen="[127.0.0.1]:sieve" prefork=0
> >
> >   # at least one LMTP is required for delivery
> > #  lmtp cmd="lmtpd" listen="lmtp" prefork=0
> >   lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
> > }
> >
> > EVENTS {
> >   # this is required
> >   checkpointcmd="ctl_cyrusdb -c" period=30
> >
> >   # this is only necessary if using duplicate delivery suppression
> >   delprune  cmd="ctl_deliver -E 3" period=1440
> >
> >   # this is only necessary if caching TLS sessions
> >   tlsprune  cmd="tls_prune" period=1440
> >   # this entry creates an index file for full text search
> > #  squatter  cmd="squatter -v -r user" period=1440
> > }
> >
> > On Thu, Apr 11, 2002 at 11:09:54PM -0400, Lawrence Greenfield wrote:
> > > Don't use the same "name" for each of them.
> > >
> > > ie:
> > >pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
> > >pop3-remote  cmd="pop3d" listen="[192.168.0.3]:pop3"
prefork=0
> > >
> > > Larry
> > >
> > >Date: Thu, 11 Apr 2002 21:43:46 -0400
> > >From: Ilya <[EMAIL PROTECTED]>
> > >
> > >Is it by design that if I setup in cyrus.conf something like this:
> > >pop3  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
> > >pop3  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
> > >
> > >than after first connection to lets say 127.0.0.1, the spawned
pop3d
> > never
> > >closes, and handles all subsequent connections?
> > >
> > >and than no connections can be made to 192.168.0.3, until I
manually
> > kill
> > >127.0.0.1 pop3d
> > >
> > >and the other way around.
> > >trying to connect second time says that connection is established,
but
> > no server
>

Re: /etc/cyrus.conf : listen=multiple ip's

2002-04-13 Thread Ken Murchison



[EMAIL PROTECTED] wrote:
> 
> I want my imap and imaps-services listening on multiple (but no all)
> ip's on my server. Can I specify more than one host in the
> listen-directive or can I specify multiple lines with the same service
> and different hosts ?

You can't specify multiple interfaces in one line, but you can have
multiple lines, as long as you use a unique service name for each.

ie:
imap-lo cmd="imapd" listen="localhost:imap"
imap-eth0   cmd="imapd" listen="[192.168.1.1]:imap"
imap-eth1   cmd="imapd" listen="[192.168.2.1]:imap"

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



Re: preventing connect from different ip's if cyrus.conf contains specific binds

2002-04-13 Thread Ken Murchison

Works for me.  Are you waiting a few seconds for the service to be
spawned by master (since prefork=0)?  If master wasn't listening on the
given interface, you'd get something like this:

telnet: connect to address 192.168.0.3: Connection refused

Ken


Ilya wrote:
> 
> same thing:
> 
> [EMAIL PROTECTED]$ telnet localhost 110
> Trying 127.0.0.1...
> Connected to localhost.alchemistry.net.
> Escape character is '^]'.
> +OK krel.org Cyrus POP3 v2.1.3 server ready <[EMAIL PROTECTED]>
> quit
> +OK
> Connection closed by foreign host.
> [EMAIL PROTECTED]$ telnet 192.168.0.3 110
> Trying 192.168.0.3...
> Connected to alchemistry.net.
> Escape character is '^]'.
> 
> ^]
> 
> telnet> quit
> Connection closed.
> [EMAIL PROTECTED]$ ps -ax|grep pop
>  2618  p5  I+ 0:00.17 tail -f pop3d
> 92404  p8  I  0:00.07 pop3d: pop3d: localhost.alchemistry.net[127.0.0.1]
> (pop3d)
> 92411  p8  S  0:00.03 pop3d
> 
> and as soon as I kill 92404 I get response from 192.168.0.3
> here is my current config (of course I recycled master before trying)
> # standard standalone server implementation
> START {
>   # do not delete this entry!
>   recover   cmd="ctl_cyrusdb -r"
> 
>   # this is only necessary if using idled for IMAP IDLE
> #  idledcmd="idled"
> }
> 
> # UNIX sockets start with a slash and are put into /var/imap/socket
> SERVICES {
>   # add or remove based on preferences
>   imap  cmd="imapd" listen="imap" prefork=0
> #  imap  cmd="imapd" listen="[127.0.0.1]:imap" prefork=0
> #  imap  cmd="imapd" listen="[192.168.0.3]:imap" prefork=0
> # imap  cmd="imapd" listen="[66.114.66.158]:imap" prefork=0
>   imaps cmd="imapd -s" listen="imaps" prefork=0
> #  pop3  cmd="pop3d" listen="pop3" prefork=0
>   pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
>   pop3-lan  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
> #  pop3  cmd="pop3d" listen="[66.114.66.158]:pop3" prefork=0
>   pop3s cmd="pop3d -s" listen="pop3s" prefork=0
>   sieve cmd="timsieved" listen="sieve" prefork=0
> #  sieve cmd="timsieved" listen="[192.168.0.3]:sieve" prefork=0
> #  sieve cmd="timsieved" listen="[127.0.0.1]:sieve" prefork=0
> 
>   # at least one LMTP is required for delivery
> #  lmtp cmd="lmtpd" listen="lmtp" prefork=0
>   lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
> }
> 
> EVENTS {
>   # this is required
>   checkpointcmd="ctl_cyrusdb -c" period=30
> 
>   # this is only necessary if using duplicate delivery suppression
>   delprune  cmd="ctl_deliver -E 3" period=1440
> 
>   # this is only necessary if caching TLS sessions
>   tlsprune  cmd="tls_prune" period=1440
>   # this entry creates an index file for full text search
> #  squatter  cmd="squatter -v -r user" period=1440
> }
> 
> On Thu, Apr 11, 2002 at 11:09:54PM -0400, Lawrence Greenfield wrote:
> > Don't use the same "name" for each of them.
> >
> > ie:
> >pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
> >pop3-remote  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
> >
> > Larry
> >
> >Date: Thu, 11 Apr 2002 21:43:46 -0400
> >From: Ilya <[EMAIL PROTECTED]>
> >
> >Is it by design that if I setup in cyrus.conf something like this:
> >pop3  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
> >pop3  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
> >
> >than after first connection to lets say 127.0.0.1, the spawned pop3d
> never
> >closes, and handles all subsequent connections?
> >
> >and than no connections can be made to 192.168.0.3, until I manually
> kill
> >127.0.0.1 pop3d
> >
> >and the other way around.
> >trying to connect second time says that connection is established, but
> no server
> >prompt appears, until as I mentioned the other interface pop3d is
> killed.
> >same thing with imapd.
> >
> >using this works:
> >pop3  cmd="pop3d" listen="pop3" prefork=0
> >but isn't listen there to create flexibility on which interface to
> listen?
> >
> >
> >or am I alone in seeing this problem? or is setting listen on several
> ips for
> >one protocol not allowed?
> >
> >freebsd 4.5 imapd 2.1.3 sasl 2.1.2
> >
> >

-- 
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp



/etc/cyrus.conf : listen=multiple ip's

2002-04-13 Thread pilsl


I want my imap and imaps-services listening on multiple (but no all)
ip's on my server. Can I specify more than one host in the
listen-directive or can I specify multiple lines with the same service
and different hosts ?

thnx,
peter



Re: preventing connect from different ip's if cyrus.conf contains specific binds

2002-04-13 Thread Ilya

same thing:

[EMAIL PROTECTED]$ telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.alchemistry.net.
Escape character is '^]'.
+OK krel.org Cyrus POP3 v2.1.3 server ready <[EMAIL PROTECTED]>
quit
+OK
Connection closed by foreign host.
[EMAIL PROTECTED]$ telnet 192.168.0.3 110
Trying 192.168.0.3...
Connected to alchemistry.net.
Escape character is '^]'.



^]

telnet> quit
Connection closed.
[EMAIL PROTECTED]$ ps -ax|grep pop
 2618  p5  I+ 0:00.17 tail -f pop3d
92404  p8  I  0:00.07 pop3d: pop3d: localhost.alchemistry.net[127.0.0.1]
(pop3d)
92411  p8  S  0:00.03 pop3d


and as soon as I kill 92404 I get response from 192.168.0.3
here is my current config (of course I recycled master before trying)
# standard standalone server implementation
START {
  # do not delete this entry!
  recover   cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
#  idledcmd="idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  imap  cmd="imapd" listen="imap" prefork=0
#  imap  cmd="imapd" listen="[127.0.0.1]:imap" prefork=0
#  imap  cmd="imapd" listen="[192.168.0.3]:imap" prefork=0
# imap  cmd="imapd" listen="[66.114.66.158]:imap" prefork=0
  imaps cmd="imapd -s" listen="imaps" prefork=0
#  pop3  cmd="pop3d" listen="pop3" prefork=0
  pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
  pop3-lan  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
#  pop3  cmd="pop3d" listen="[66.114.66.158]:pop3" prefork=0
  pop3s cmd="pop3d -s" listen="pop3s" prefork=0
  sieve cmd="timsieved" listen="sieve" prefork=0
#  sieve cmd="timsieved" listen="[192.168.0.3]:sieve" prefork=0
#  sieve cmd="timsieved" listen="[127.0.0.1]:sieve" prefork=0

  # at least one LMTP is required for delivery
#  lmtp cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix  cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
}

EVENTS {
  # this is required
  checkpointcmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune  cmd="ctl_deliver -E 3" period=1440

  # this is only necessary if caching TLS sessions
  tlsprune  cmd="tls_prune" period=1440
  # this entry creates an index file for full text search
#  squatter  cmd="squatter -v -r user" period=1440
}


On Thu, Apr 11, 2002 at 11:09:54PM -0400, Lawrence Greenfield wrote:
> Don't use the same "name" for each of them.
>
> ie:
>pop3-local  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
>pop3-remote  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
>
> Larry
>
>Date: Thu, 11 Apr 2002 21:43:46 -0400
>From: Ilya <[EMAIL PROTECTED]>
>
>Is it by design that if I setup in cyrus.conf something like this:
>pop3  cmd="pop3d" listen="[127.0.0.1]:pop3" prefork=0
>pop3  cmd="pop3d" listen="[192.168.0.3]:pop3" prefork=0
>
>than after first connection to lets say 127.0.0.1, the spawned pop3d
never
>closes, and handles all subsequent connections?
>
>and than no connections can be made to 192.168.0.3, until I manually
kill
>127.0.0.1 pop3d
>
>and the other way around.
>trying to connect second time says that connection is established, but
no server
>prompt appears, until as I mentioned the other interface pop3d is
killed.
>same thing with imapd.
>
>using this works:
>pop3  cmd="pop3d" listen="pop3" prefork=0
>but isn't listen there to create flexibility on which interface to
listen?
>
>
>or am I alone in seeing this problem? or is setting listen on several
ips for
>one protocol not allowed?
>
>freebsd 4.5 imapd 2.1.3 sasl 2.1.2
>
>