Displaying 20 results from an estimated 66 matches for "tcpserver".
2010 Feb 24
2
tcpserver on port 25
...tnup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address
State PID/Program name
tcp 0 0 0.0.0.0:3306 0.0.0.0:*
LISTEN 24560/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:*
LISTEN 27762/tcpserver
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN 27758/tcpserver
tcp 0 0 :::80 :::*
LISTEN 1598/httpd
tcp 0 0 :::22 :::*
LISTEN 11453/sshd
No wonder my email server is broken! How do I move tcpserv...
2011 Sep 08
4
TCPServer in 1.9.2
...gt;ruby -v
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
I have been going through Jeremy McAnally''s book "Mr. Neighborly’s
Humble Little Ruby Book" and there is a section in chapter 5 where he
explains how to connect a socket using the lines:
require "socket"
myserver = TCPserver.new(''localhost'', 0)
When I try this I get the error:
C:\rails\hello>ruby server.rb
server.rb:2:in `<main>'': uninitialized constant Object::TCPserver
(NameError)
So I look in the socket.rb file and sure enough there is no TCPserver
class although all of the doc...
2011 Oct 18
2
Fried Email Server! Perl Problem
I hate it when I crash my email server. Here's what tailing /var/log/qmail/qmail-smtp/current gives me:
[root at toast jack]# tail /var/log/qmail/qmail-smtpd/current
@400000004e9ddbd031610f54 tcpserver: status: 0/20
@400000004e9ddbd72c767c04 tcpserver: status: 1/20
@400000004e9ddbd72c7ab60c tcpserver: pid 12039 from 210.76.164.235
@400000004e9ddbd739a20d1c tcpserver: ok 12039 mail.toast.com:209.216.9.56:25 mail.cdfy-china.com:210.76.164.235::2804
@400000004e9ddbd81c826894 Can't load '/usr...
2001 Feb 09
0
severe error in SSH session key recovery patch
...; line of
that patch; it is not intended to provide a recommendation that the
patch be used if the "kill" line is corrected.)
To determine whether the corrected patch seems appropriate for one's
intended application, here are a few other factors to consider:
-- if sshd is run from tcpserver (see
http://cr.yp.to/ucspi-tcp/tcpserver.html) using a command line
such as "tcpserver 0 ssh /usr/local/sbin/sshd -i", the
"kill(getppid(), SIGALRM);" will cause the tcpserver process to
terminate. Unless another process exists that will automatically
re...
2003 Sep 02
2
dovecot, vpopmail and djb's tcpserver
Hello!
I've tried to set up dovecot in conjuction with vpopmail, and running it
under djb's tcpserver instead of (x)inetd.
Btw - there was no reference to setting dovecot up using (x)inetd either in
the manuals/faqs i read, though I didn't search all that hard. Anyway, back
to my Q:
vpopmail uses vchkpw as an authentication mechanism, and with tcpserver I
can do relaycontrol (based on vchkpw)...
2003 Feb 26
2
inetd/xinetd/tcpserver support
I was just thinking how they could be easily supported. This would work,
right? :
imap stream tcp nowait root /usr/sbin/tcpd /usr/local/libexec/dovecot/imap-login
imaps stream tcp nowait root /usr/sbin/tcpd /usr/local/libexec/dovecot/imap-login --ssl
imap-login would try to connect to master process using some named
socket. If it couldn't, it would create the master process itself.
Master
2004 Feb 10
0
TCPServer failure within daemon
I wanted to see if I could setup a simple echo server to run as a
service. So, using daemon_test.rb, I modified the Daemon class to
something like this:
require "socket"
class Daemon
def initialize
@server = TCPServer.new("localhost",8888)
end
def service_main
while state == RUNNING
while session = @server.accept
str = session.gets.chomp
File.open("c:\\foo.log","a+"){ |f| f.puts "Got #{str}" }
end
end
end
end...
2010 Jun 17
2
Ok, I've given up
...-SSL
based connections? Attempts to use plaintext on 110 were rebuffed so that
seems to be the case. My intent is that if my user is using this in an
airport they won't give away their email password to a bad guy who is
sniffing all the packets.
Question 2) Is there any way to run dovecot from tcpserver ?
One of the things I like is the program tcpserver. I like it because I can
simply "not allow" large chunks of the internet to connect at all to certain
ports. (I use this for SSH in particular since all the kids love throwing
dictionary attacks around). I'd like to give my POP3 por...
2006 Mar 05
5
A nicer and gentler form of spawner
...n app with switchtower, and I really
dislike the way spawner is implemented. The way it will relaunch the
dispatcher all the time just to let it die if the port is in use is
too brute force for my taste.
As we''re in a ruby script, why not let ruby find out if the port is in
use? Using the TCPServer class we can try and bing to the port. If we
succeed, it means the process died and we can launch the dispatcher.
But if an exception is raised, we can skip even trying to launch the
dispatcher.
Here''s the change to the spawn method (and remember to add require
''socket''...
2007 Aug 06
4
[Patch] HttpServer.port reports the bound port
This is for when you pass mongrel 0 for the port and the OS assigns
an open one.
Corey
--- mongrel-1.0.1/lib/mongrel.rb 2007-08-05 15:29:59.000000000
-0700
+++ mongrel-1.0.1/lib/mongrel.rb.zero_port_fix 2007-08-05
15:29:23.000000000 -0700
@@ -560,7 +560,7 @@
@socket = TCPServer.new(host, port)
@classifier = URIClassifier.new
@host = host
- @port = port
+ @port = @socket.addr[1]
@workers = ThreadGroup.new
@timeout = timeout
@num_processors = num_processors
2007 Nov 07
4
[noob] simpletest.rb, mongrel 1.1, ruby 1.8.4, mac os x 10.3.9 hangs
Hello,
I''m trying to run the latest/greatest mongrel version:
% sudo gem install mongrel
...
Successfully installed mongrel-1.1
% gem list mongrel
mongrel (1.1)
% ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin7.9.0]
% uname -a
Darwin NewYork.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30
20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power
Macintosh powerpc
2006 May 20
2
xapian-tcpsrv need to reopen database?
Hi, I'm adapting the omega (in a Python way ;) to do search across multiple
remotes database, for now, I have only one xapian-tcpsrc running, but I have
documents being inserted at the same time, so (like I have readed in others
e-mails) the xapian-tcpsrc throw the following message:
Connection from 192.168.0.101, port 64161
Got exception DatabaseModifiedError: The revision being read has
2006 Feb 26
2
Help - WEBrick won''t start - "Bad file descriptor" error
...re''s the trace:
Booting WEBrick...
=> Rails application started on http://0.0.0.0:3000
=> Ctrl-C to shutdown server; call with --help for options
[2006-02-26 17:09:10] INFO WEBrick 1.3.1
[2006-02-26 17:09:10] INFO ruby 1.8.4 (2005-12-24) [i386-mswin32]
[2006-02-26 17:09:10] WARN TCPServer Error: Bad file descriptor -
bind(2)
c:/bin/ruby/lib/ruby/1.8/webrick/utils.rb:73:in `initialize'': Bad file
descriptor - bind(2) (Errno::EBADF)
from c:/bin/ruby/lib/ruby/1.8/webrick/utils.rb:73:in
`create_listeners''
from c:/bin/ruby/lib/ruby/1.8/webrick/utils.rb:70:in
`create_li...
2008 May 25
4
inetd & corrupt environment
...getting this error after authentication:
May 25 09:46:19 charlie dovecot: POP3(gelu): /libexec/ld-elf.so.1:
environment corrupt; missing value for no-nuls oe-ns-eoh
The problem persists if I uncomment the lines with no-nuls oe-ns-eoh in
dovecot.conf. I've also tried running pop3-login from
tcpserver/ucspi-tcp and I still get the same error. Version 1.0.1 works
fine on a similar setup. Please reply if you have any idea regarding a
fix for this error. I need to run dovecot under a tcp wrapper of some
kind (preferably inetd) as the standalone daemon doesn't allow any
method to restrict a...
2005 Jul 26
1
Centos Mail
I have a problem finding the log from centos. I have installed qmail and i receive a lot of infected mails and i can't stop them because i don't know the ip from where they came. I know that in log files it is kept that ip but i havent't find it. In /var/log/ maillog it is a list but it does not have the ip of the mails. Can anyone help me?
Another problem I have with Auto-responder
2002 Jun 02
0
daemontools supervise and smbd
...when you kill smbd with "svc -d smbd", smbd process kill
also supervise
solution 2: the problem is addressed in
http://www.geocrawler.com/archives/3/503/2001/12/0/7433256/ ;
we can use the -i swith (interactive mode)
subproblem 3: using -i we need to use inetd or tcpserver; but -i +
tcpserver is not possible
since tcpserver doesnot handle udp packets; we have to
use smbd in daemon mode
solution 3: use -i and -D togheter
subproblem 4: smbd doesnot fork because the -i is used;
solution 4: patch:
-------------------------------------------...
2007 Oct 27
8
mongrel 1.0.3
Hello!
Run problems after upgrading to mongrel 1.0.3 from 1.0.1:
# uname -sr
FreeBSD 7.0-BETA1
# mongrel_rails start
** Starting Mongrel listening at :3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
** Signals ready. TERM => stop. USR2 => restart. INT => stop (no restart).
** Rails signals registered. HUP => reload
2006 Jun 27
2
non-traditional rails app
I''d like to convert some simple, general ruby scripts I have into rails
apps just for testing purposes. Many of these apps are not DB driven, so
the whole CRUD concept does not apply to them... here''s a sample:
require ''socket''
server = TCPServer.new(''12345'')
while (session = server.accept)
Thread.new(session) do |this_session|
data = this_session.gets
public_ip = this_session.peeraddr[3]
this_session.close
puts Time.now.strftime(''%Y-%m-%d'')
puts Time.now.strftime(''%H:%M:...
2012 Feb 09
7
ruby script/server is not working
hi everyone i just typed ruby script/server -d and then after when i
type again it is not working. i got this error
[2012-02-09 16:19:54] WARN TCPServer Error: Address already in use -
bind(2)
Exiting
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize'': Address already
in use - bind(2) (Errno::EADDRINUSE)
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new''
from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'...
2008 Aug 19
3
Dovecot and fake users
Hi everyone,
Our company has decided to make a fake POP3 (and possibly IMAP)
server, which accepts any user name and password combination and shows
there are no new messages. This is for the purpose that when our mail
cluster passes out, we can redirect our clients to this server while we
fix our mail system. This way we can prevent our users from getting
errors. We are using the latest