Hi,
kindly help me to restore the removed queue in qmail.
Earlier my qmail server was an open relay.See the telnet output below.From the net I found that if rcpthosts file is there, open relay wiil be blocked. In our server, from rcpthosts file, I removed all entries other than rkcmail.gotdns.com(there were two more entries.). After that also, I couldn't stop open relay.
telnet xx.xx.xx.xx 25
Trying xx.xx.xx.xx...
Connected to xx.xx.xx.xx.static-lvsb.vsnl.net.in.
Escape character is '^]'.
220 rkcmail.gotdns.com ESMTP
helo mail.dyndns.com
250 rkcmail.gotdns.com
mail from:support@dyndns.com
250 ok
rcpt to:support@dyndns.com
250 ok
rcpt to:anyone@anywhere.com
250 ok
rcpt to
oorspamvictim@gmail.com
250 ok
rcpt to:doesnot443exist@doesnot443exist.com
250 ok
rcpt to
ostmaster@rkcmail.gotdns.com
250 ok
data
354 go ahead
Subject:Test
This is a test.
.
250 ok 1211565215 qp 10250
quit
221 rkcmail.gotdns.com
Connection closed by foreign host
Then I download ucspi-tcp-0.88 package to /usr/local directory.cd to /usr/local/ucspi-tcp-0.88, then run # make command. then run #make setup check cmd.
Then qmail is restarted.
Now open relay is blocked. See the output of telnet session.
telnet xx.xx.xx.xx 25
Trying xx.xx.xx.xx...
Connected to rkcmail.gotdns.com (xx.xx.xx.xx).
Escape character is '^]'.
220 rkcmail.gotdns.com ESMTP
helo mail.gotdns.com
250 rkcmail.gotdns.com
mail from:support@dyndns.com
250 ok
rcpt to:akarayil@gmail.com
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
rcpt to:support@dyndns.com
553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
rcpt to:ashraf@rkcmail.gotdns.com
250 ok
data
354 go ahead
subject:testing
test
.
250 ok 1212121202 qp 4593
quit
But now the problem is, the messages are not delivered to the mail boxes, if it is send locally or remotely. I can send mail to remote recipients. I found that the problem is with queue. So to rebuild the queue, I follow the given steps.
# qmailctl stop
Stopping qmail...
qmail-smtpd
qmail-send
qmail-pop3d
# qmailctl stat
/service/qmail-send: down 5 seconds, normally up
/service/qmail-send/log: down 5 seconds, normally up
/service/qmail-smtpd: down 5 seconds, normally up
/service/qmail-smtpd/log: down 5 seconds, normally up
/service/qmail-pop3d: down 5 seconds, normally up
/service/qmail-pop3d/log: down 5 seconds, normally up
messages in queue: 23
messages in queue but not yet preprocessed: 0
# rm -rf /var/qmail/queue
# cd /usr/local
/usr/local# ls
bin include lib sbin ucspi-tcp-0.88
etc jakarta-tomcat-5.0.30 libexec share ucspi-tcp-0.88.tar
games jakarta-tomcat-5.0.30.tar.gz man src var
/usr/local]# cd ucspi-tcp-0.88
/usr/local/ucspi-tcp-0.88]# make setup check
./load tcpserver rules.o remoteinfo.o timeoutconn.o cdb.a \
dns.a time.a unix.a byte.a `cat socket.lib`
/usr/bin/ld: errno: TLS definition in /lib/libc.so.6 section .tbss mismatches non-TLS reference in tcpserver.o
/lib/libc.so.6: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [tcpserver] Error 1
But I couldn't recreate the queue. What is the meaning of the error message from the above comds output? What should I do to recreate the queue?
Kindly give me a solution.
Regards,