first, i've done a 'emerge sync', everything else on my system is up to date. # emerge qmail --pretend These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] sys-apps/ucspi-tcp-0.88-r2 to / [ebuild N ] sys-apps/daemontools-0.76-r1 to / [ebuild N ] net-mail/dot-forward-0.71 to / [ebuild N ] net-mail/checkpassword-0.90 to / [ebuild N ] net-mail/qmail-1.03-r8 to / *compiles* All packages compile cleanly, without problems. * Setting up the message queue hierarchy ... 1+0 records in 1+0 records out Please do not forget to run, the following syntax : ebuild /var/db/pkg/net-mail/qmail-1.03-r8/qmail-1.03-r8.ebuild config This will setup qmail to run out-of-the-box on your system. To start qmail at boot you have to enable the /etc/init.d/svscan rc file and create the following links : ln -s /var/qmail/supervise/qmail-send /service/qmail-send ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd >>> Regenerating /etc/ld.so.cache... >>> net-mail/qmail-1.03-r8 merged. greyhats qmail-smtpd # ebuild /var/db/pkg/net-mail/qmail-1.03-r8/qmail-1.03- r8.ebuild config Your fully qualified host name is greyhats.za.net. Putting greyhats.za.net into control/me... Putting za.net into control/defaultdomain... Putting za.net into control/plusdomain... Putting greyhats.za.net into control/locals... Putting greyhats.za.net into control/rcpthosts... Now qmail will refuse to accept SMTP messages except to greyhats.za.net. Make sure to change rcpthosts if you add hosts to locals or virtualdomains! Accepting relaying by default from all ips configured on this machine. # ln -s /var/qmail/supervise/qmail-send /service/qmail-send # ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd # /etc/init.d/svscan start * Starting service scan...... [ ok ] # ps ax|tail -15 16426 pts/7 S 0:00 -bash 2828 pts/7 S 0:00 /usr/bin/svscan 2829 pts/7 S 0:00 supervise qmail-send 2830 pts/7 S 0:00 supervise log 2831 pts/7 S 0:00 supervise qmail-smtpd 2832 pts/7 S 0:00 qmail-send 2834 pts/7 S 0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-sen 2837 pts/7 S 0:00 supervise log 2838 pts/7 S 0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-smt 2839 pts/7 S 0:00 qmail-lspawn |dot-forward .forward?./.maildir/ 2840 pts/7 S 0:00 qmail-rspawn 2841 pts/7 S 0:00 qmail-clean 3025 pts/7 Z 0:00 [tcpserver <defunct>] 3029 pts/7 R 0:00 ps ax 3030 pts/7 S 0:00 tail -15 i can see qmail-send started fine, but tcpserver is not working.. [/var/log/qmail/qmail-smtpd] # tail current @400000003d37dd6e1de67504 /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd6f206e21b4 tcpserver: fatal: unable to create socket: address family not supported @400000003d37dd70217c0f44 /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd712387c594 tcpserver: fatal: unable to create socket: address family not supported @400000003d37dd72250ab444 /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd7326d52f5c /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd7428dbd8b4 tcpserver: fatal: unable to create socket: address family not supported @400000003d37dd752a76b464 /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd762ca7d8bc /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory @400000003d37dd772dfe586c /usr/bin/tcpserver: error while loading shared libraries: libc.so.6: failed to map segment from shared object: Cannot allocate memory I cant figure out why its not working..
I've never used qmail, I'm afraid. Tossing to raker!
possbily you need to uncomment in /etc/fstab... tmpfs /dev/shm tmpfs defaults 0 0 then run "mount -a" to mount what you just uncommented If this fixes your problem or changes anything, please let me know.
@400000003d37dd6f206e21b4 tcpserver: fatal: unable to create socket: address family not supported This could be due to having ipv6 support compiled in. make sure that ipv6 is not one of your enabled USE flags -OR- recompile your kernel and enable ipv6 support. It is a known problem with ucspi-tcp if ipv6 support is comiled in and not enabled in the kernel will cause crashes. Let me know if this helps.
I believe I know the reasons why these errors are occuring. I have solved them a few times on #gentoo with other people. Solutions follow: 1. Cannot allocate memory: You need to increase the amount of memory that is allowed to be used. You do this by editting the /var/qmail/supervise/qmail-smtpd/run file, and change the 2500000 to a larger number. I happen to use 10000000, but only because I run qmail-scanner w/ fprot and spamassassin. 2. address family not supported: I have seen this on 2 machines now. You need to edit the /var/qmail/supervise/qmail-smtpd/run file, and change the 0 on the last line to be 0.0.0.0. This does not happen on all machines. After you make those changes, you should see something like: "tcpserver: 0/40" in your logs. At that point everything is up and running ok. You may need some configuragtion in qmail after that (the files in the /var/qmail/control) in order to send/recieve email. Refer to qmail docs at this point.
Will anyone verify that these suggested fixes help the problem?
*** Bug 14593 has been marked as a duplicate of this bug. ***
Nick: The ipv4/ipv6 stuff with '0' and '0.0.0.0' was the problem. There was an earlier release of tcpserver that didn't behave quite right with this.
Closing