- More info: http://www.fehcom.de/ipnet/ucspi-tcp6.html
- Author: Erwin Hoffmann. IPv6 capabilities have been included by Felix von Leitner's IPv6 patch. The original ucspi-tcp 0.88 is by D.J. Bernstein
- Version: 1.13.05
ucspi-tcp6 is a fork of Bernsteins' ucspi-tcp 0.88 program, which includes, among the other things, ipv6 capabilities to the original ucspi-tcp. tcpserver and tcpclient are easy-to-use command-line tools for building TCP client-server applications.
Starting from version 1.13.05 the mandoc
package is required both for ucspi-tcp6
and ucspi-ssl
. Slackware
users can find the package on slackbuild.org.
Install ucspi-tcp6
TCP6_VER=1.13.05 cd /var/qmail/ wget https://www.fehcom.de/ipnet/ucspi-tcp6/ucspi-tcp6-${TCP6_VER}.tgz tar xzf ucspi-tcp6-${TCP6_VER}.tgz cd net/ucspi-tcp6/ucspi-tcp6-${TCP6_VER}/ ./package/install
The tcpserver
usage, as far as IPv4 is concerned, is similar to the original Bernstein's program.
Upgrade
In case of upgrade of ucspi-tcp6
you have to kill all tcpserver
processes and restart qmail
(qmailctl
will be installed later):
qmailctl reboot
Comments
tcpserver delay
Ricardo Brisighelli September 9, 2025 15:43 CET
Hello, I'm having issues with tcpserver and SMTP.
I ran: telnet localhost 25 -> everything works fine and responds quickly (due to the tcp.smtp configuration)
But if I make a connection from host 172.31.51.21, I get a 30-second delay until receiving the 220 mihost.com ESMTP response.
I checked the rules:
Any idea what it could be?
Thanks
Reply | Permalink
tcpserver delay
Roberto Puzzanghera Ricardo Brisighelli September 9, 2025 15:58 CET
sorry if I ask, but the only cause that comes in mind is that the compilation of tcp.smtp.cdb failed due to some syntax error in the file, so tcp.smtp is not aligned with the cdb file.
do you get any error when you do qmailctl cdb?
Reply | Permalink
tcpserver delay
Ricardo Brisighelli Ricardo Brisighelli September 9, 2025 15:57 CET
I add -H parameter at tcpserver and fix it, but i dont´t know if is correct
Regards
Reply | Permalink
tcpserver delay
Roberto Puzzanghera Ricardo Brisighelli September 9, 2025 16:01 CET
weird... -H in capital letter is not an option according to the official guide here https://www.fehcom.de/ipnet/tcpserver.html
Reply | Permalink
tcpserver delay
Ricardo Brisighelli Roberto Puzzanghera September 9, 2025 16:23 CET
man tcpserver
Reply | Permalink
tcpserver delay
Roberto Puzzanghera Ricardo Brisighelli September 9, 2025 16:26 CET
Thank you. So you could have a dns delay, that you could spot with strace
Reply | Permalink
ucspi-tcp6 1.13.04 in Debian 12 - Fail
Ricardo Brisighelli August 1, 2025 12:47 CET
Hello, I am installing ucspi-tcp6-1.13.04 on Debian 12. The compilation works fine, but the installation fails (the symbolic links are not created in /usr/local/bin).
To fix this issue, I made a change in the package/upgrade file. I am attaching a patch with the modification I made. I send patch to developer!
To apply :
Copy this lines into patch-ln-upgrade.patch
Reply | Permalink
ucspi-tcp6 1.13.04 in Debian 12 - Fail
Roberto Puzzanghera Ricardo Brisighelli August 1, 2025 14:24 CET
thanks for letting me know. Now the links are created.
Do you get this error as well?
Reply | Permalink
ucspi-tcp6 1.13.04 in Debian 12 - Fail
Ricardo Brisighelli Roberto Puzzanghera August 1, 2025 17:16 CET
This is a log with no error, source code patched before compilation.
https://pastebin.com/HqLVXV6q
But if I try to compile it again, I get the error you mentioned. (But can't try fix)
Reply | Permalink
ucspi-tcp6 1.13.04 in Debian 12 - Fail
Roberto Puzzanghera Ricardo Brisighelli August 1, 2025 17:38 CET
I informed Erwin Hoffmann about the issue. I think he will correct it as soon as possible
Reply | Permalink
libdnsresolv.so: cannot open shared object file
Paulo Fragoso November 12, 2021 11:14 CET
I'm following these steps in Slackware current but it stopped in chkshsg error:
Reply | Permalink
libdnsresolv.so: cannot open shared object file
Roberto Puzzanghera Paulo Fragoso November 12, 2021 21:13 CET
libdnsresolv.so is inside /usr/local/qlibs. I added that dir in my /etc/ld.so.conf and runned "ldconfig". And the library was found.
I suppose that I have to adjust the fehqlibs installation path to avoid this error...
Reply | Permalink
libdnsresolv.so: cannot open shared object file
Roberto Puzzanghera Paulo Fragoso November 12, 2021 20:58 CET
uh... I get the same error with slackware current with latest fehqlibs... I have to investigate...
Reply | Permalink
Is it support under Load blance
Patrick Largan January 26, 2021 05:24 CET
Sorry , is it support to get real IP under loadblance?
LB => mail server(ucspi-tcp6).
Reply | Permalink
Is it support under Load blance
Roberto Puzzanghera Patrick Largan January 26, 2021 07:21 CET
I think no, but you should ask to the author of the program
Reply | Permalink
ucspi-ssl
Gabriel Torres June 19, 2019 01:12 CET
How about installing ucspi-ssl? https://www.fehcom.de/ipnet/ucspi-ssl.html
Reply | Permalink
ucspi-ssl
Roberto Puzzanghera Gabriel Torres June 19, 2019 08:10 CET
if I remember well (correct me if I am wrong) ucspi-ssl is needed to encrypt a connection on 465 port, but in my installation I already have the 587 port TLS secured (qmail-tls patch), so I think this is not needed here.
Reply | Permalink
New version: 1.10.6
Gabriel Torres June 19, 2019 00:50 CET
Update is needed. New version available: 1.10.6. It requires the installation of fehQlibs-12.
https://www.fehcom.de/ipnet/ucspi-tcp6.html
https://www.fehcom.de/ipnet/qlibs.html
Reply | Permalink
New version: 1.10.6
Roberto Puzzanghera Gabriel Torres June 19, 2019 08:06 CET
Thank you, I knew about this new feqlibs based version... is it working fine for you?
Reply | Permalink
segfault
Alex March 16, 2017 09:27 CET
Hello ,
I have a problem with rblsmptd on Centos 7.2 and Centos 7.3. Perhaps this problem is related to ucspi-tcp6 with patch given above.
After starting /usr/local/bin/rblsmtp I got error:
..but wiith following installation everithing works fine:
Reply | Permalink
segfault
carlos Alex September 2, 2021 15:56 CET
I had this problem with ucspi-tcp6-1.12.3.tgz. When I was executing tcprules:
But with your solution with 0.88 version + patch now is working ok, thanks!
Reply | Permalink
segfault
Roberto Puzzanghera carlos September 2, 2021 16:30 CET
It failed in finding fehqlibs
Reply | Permalink
which version of ucspi-tcp6
roberto puzzanghera Alex March 16, 2017 09:32 CET
which version of ucspi-tcp6 are you using?
Reply | Permalink
I tried both ucspi-tcp6-1.02
Alex roberto puzzanghera March 16, 2017 10:33 CET
I tried both ucspi-tcp6-1.02.tgz and ucspi-tcp6-1.04.tgz. After starting command from terminal I got this:
and in logs I had this:
Also, I am using Centos7 x86_64.
Thank you,
Alex
Reply | Permalink
I don't think this is the
roberto puzzanghera Alex March 16, 2017 10:52 CET
I don't think this is the proper way to test rblsmtpd from the command line, as it runs at least a prog. Take a look to the man page
Reply | Permalink
Unfortunately, this error:
Alex roberto puzzanghera March 16, 2017 11:58 CET
Unfortunately, this error:
still exists when is run by qmail. Server continually deny messages with 451 code.
Reply | Permalink
ok, can you share your run
roberto puzzanghera Alex March 16, 2017 12:28 CET
ok, can you share your run file, please?
Reply | Permalink
Sure, here it is:
Alex roberto puzzanghera March 16, 2017 13:51 CET
Sure, here it is:
I, also tried with differnet links other than zen.spamhaus.org and bl.spamcop.org.
Reply | Permalink
did you define the GREETDELAY
roberto puzzanghera Alex March 16, 2017 14:03 CET
did you define the GREETDELAY variable? This is important since you have the -W parameter and rblsmtps is looking for a non null value
Also consider that the reference page for rblsmtpd is changed like follows http://www.fehcom.de/ipnet/ucspi-tcp6/rblsmtpd.html (I'm going to correct mypage as well)
Reply | Permalink
I removed -W and output was
Alex roberto puzzanghera March 16, 2017 14:45 CET
I removed -W and output was the same. I also tried with GREETDELAY variable, but without success.
I think there is some problem with my OS distribution (Centos 7) and ucspi-tcp6, because when I run command from terminal with installed ucspi-tcp-0.88 I get following message:
I also tried, qmail-rblcheck addon and it works fine, so I will switch to it until I find solution.
Thank you very much for your help,
Alex
Reply | Permalink
I also get an error like that
roberto puzzanghera Alex March 16, 2017 15:12 CET
I also get an error like that when running rblsmtpd from command line, but I think it can be normal, as some environment variables that the program is expecting are missing.
If you decide to switch to another RBL program, I suggest you to consider qmail-dnsbl (http://notes.sagredo.eu/node/162) as qmail-rblcheck's configuration that I present here is not fully tested (I played with it ages ago) and I guess it is not even maintained these days
Reply | Permalink
Thank you very much, qmail
Alex roberto puzzanghera March 16, 2017 15:40 CET
Thank you very much, qmail-rblcheck works excellent
Reply | Permalink
I just made some test with
roberto puzzanghera Alex March 16, 2017 15:48 CET
I just made some test with rblsmtpd and it works as expected.
Let me know if solve, or if you find a way to test it from the command line
Reply | Permalink
ucspi-tcp
miz October 6, 2015 11:39 CET
Hi, I'm trying to secure as deeply as possible my centos 6.7 mailbox. I still have to compile the latest qmail patched version from Roberto, in the meanwhile I upgraded from ucspi-ssl-0.84 to ucspi-ssl-0.95b, in order to secure my sslserver-based submission services (465 / 587). Will let you know how it works; any other security hint is warmly welcome ;-)
Reply | Permalink
Debian Wheezy Beta 4
simplex January 16, 2013 19:29 CET
When doing
Reply | Permalink
Package Install error IPV6 and ucspi-tcp6-1.00
mcmax simplex January 25, 2014 09:35 CET
I have solve problem with remove option into src/conf-ld "-m64 "
Reply | Permalink
glibc
roberto puzzanghera simplex January 16, 2013 19:54 CET
I would try to reinstall glibc, as crti.o is part of that pkg..
take a look at this as well: http://stackoverflow.com/questions/6329887/compiling-problems-cannot-find-crt1-o, http://stackoverflow.com/questions/91576/crti-o-file-missing
Reply | Permalink
compiles ok under amd64 under
simplex roberto puzzanghera January 16, 2013 20:34 CET
compiles ok under amd64
under i386 debian it's still giving me this:
maybe the library was written with 64 bit support in mind....
Reply | Permalink
In 32bit system, you have to
Franko Fang simplex March 3, 2013 04:40 CET
In 32bit system, you have to remove the flag "-m64" in src/conf-ld.
Then try package/install again, and it will be ok.
Reply | Permalink
I'm successfully compiling
roberto puzzanghera simplex January 16, 2013 20:46 CET
I'm successfully compiling both on 64 and 32 bit.
In case you are not interested in the new IPv6 features of ucspi-tcp6, you can try to install the old bernstein's ucspi-tcp 0.88 program, following this page of my guide.
Reply | Permalink