Qmail Smtp problem

Taking care of your Linux box.
Post Reply
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Qmail Smtp problem

Post by mejam »

Hy all
My qmail was working fine from a long time ....today i am having a problem with it...when i telnetl my server at port 25..it says

220 rblsmtpd.local

instead of

220 mydomain.com ESMTP

After searching on google i have come know that this issue is related to RBL....My implementation of rbl in /var/qmail/supervise/qmail-smtpd/run file is


#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 30000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /usr/local/bin/rblsmtpd -t 5 \
-b -r b.barracudacentral.org \
-b -r zen.spamhaus.org \

/var/qmail/bin/qmail-smtpd mail.mydomain.com \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

And when i remove this RBL line from the above file...every thing works fine...any help...?
Regards
Abdulrehman
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Post by kbukhari »

check you ip if it is blacklisted.
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

no its not blacklisted....i can send emails every where....i am curious abt smtp's telnet response
Regards
Abdulrehman
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

say ehlo to your local domain by making an smtp session and see whats the output.
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
mejam
Havaldaar
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
Location: Lahore
Contact:

Post by mejam »

Dear OX this is what i get when i ehlo my mail server
===============================================
Qamail-Server:~# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.mydomain ESMTP
ehlo localhost
250-mail.mydomain.com
250-AUTH LOGIN CRAM-MD5 PLAIN
250-AUTH=LOGIN CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME
starttls
220 ready for tls
quit
quit
Connection closed by foreign host.
=============================================

And this is what i get when i telnet my mail server from my machine

=============================================

telnet mail.mydomain.com 25

220 rblsmtpd.local
=============================================
Regards
Abdulrehman
x2oxen
Major General
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Location: Faisalabad
Contact:

Post by x2oxen »

You server is replying fine i think you need to check your smtp greeting message then. There might be some misconfiguration of something like that..
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
Post Reply