Re: preventing connect from different ip's if cyrus.conf contains specific binds
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 &quo
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 > >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
Re: preventing connect from different ip's if cyrus.conf contains specific binds
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 > >
Re: preventing connect from different ip's if cyrus.conf contains specific binds
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
preventing connect from different ip's if cyrus.conf contains specific binds
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