Qmail Smtp problem

Taking care of your Linux box.

Qmail Smtp problem

Postby mejam » Thu Apr 30, 2009 2:15 pm

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
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

Postby kbukhari » Thu Apr 30, 2009 2:45 pm

check you ip if it is blacklisted.
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
kbukhari
Major General
 
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Website: http://kashifbukhari.com
Location: Lahore

Postby mejam » Thu Apr 30, 2009 2:58 pm

no its not blacklisted....i can send emails every where....i am curious abt smtp's telnet response
Regards

Abdulrehman
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

Postby x2oxen » Mon May 04, 2009 2:50 am

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby mejam » Mon May 04, 2009 10:16 am

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
mejam
Havaldaar
 
Posts: 127
Joined: Sat Oct 18, 2008 12:30 pm
WLM: bmw1000cc@hotmail.com
Yahoo Messenger: vagabond_aw@yahoo.com
Location: Lahore

Postby x2oxen » Mon May 04, 2009 4:57 pm

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
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 3 guests

cron