Hi, On Wed, 2005-12-07 at 19:33 +0530, Arther Martin wrote: > Thnx for your reply... > i have checked it ... > I there is no port listening on 25. > Please guide me what should i do now.... >
First of, I would suggest that you read the complete document at: http://www.qmail-ldap.org/wiki/Lwql To keep things simple, I'll quickly run over some simple steps to get qmail-smtpd up and running. I'll assume that you have 'daemontools' and 'ucspi-tcp' packages installed and also that you've successfully patched, compiled and installed qmail-ldap in '/var/qmail'. * Edit the run file in /var/qmail/boot/qmail-smtpd/run as per your requirement. Here is mine (only for reference): #!/bin/sh exec 2>&1 QMAIL="/var/qmail" ME="`head -1 $QMAIL/control/me`" QUSER="qmaild" PATH="$QMAIL/bin:$PATH" # enforce some sane defaults QUSER=${QUSER:="qmaild"} CONCURRENCY=${CONCURRENCY:=20} SMTPPORT=${SMTPPORT:=25} export LOGLEVEL="1024" exec tcpserver -u $QUSER -vv -l $ME -x $QMAIL/control/tcp.smtp.cdb \ ${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} 0 $SMTPPORT \ $QMAIL/bin/qmail-smtpd 2>&1 * Edit /var/qmail/boot/qmail/run file as per your requirement. Here is mine: #!/bin/sh exec 2>&1 QMAIL="/var/qmail" ALIASEMPTY=`cat $QMAIL/control/defaultdelivery 2> /dev/null` ALIASEMPTY=${ALIASEMPTY:="./Maildir/"} PATH="$QMAIL/bin:$PATH" export LOGLEVEL="1024" # limit to prevent memory hogs ulimit -c 204800 exec qmail-start "$ALIASEMPTY" * Now create the following links to have the qmail-smtpd (SMTP service) and the qmail-start (mail delivery service) supervised: # ln -s /var/qmail/boot/qmail /service/qmail-send # ln -s /var/qmail/boot/qmail-smtpd /service/qmail-smtpd * Check the status of the above services by running the command: # svstat /service/qmail-s* (sample output..) /service/qmail-send: up (pid 3487) 40204 seconds /service/qmail-smtpd: up (pid 3507) 40204 seconds If any of the above lines say "/service/qmail-*: down...", then you need to do the following (assume qmail-smtpd is down): # svc -d /service/qmail-smtpd # cd /service/qmail-smtpd # ./run See if it complains about something. Rectify the problem and check once again by running "./run". If everything is fine, then bring up the service (after pressing Ctrl+c) by running: # svc -u /service/qmail-smtpd Now if you try to telnet to port 25, you should see a response. On my machine: # telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 deeproot.co.in ESMTP Welcome to Srindhi's Mail server (For you the last line will be different) Hope this helps. Srinidhi. PS: When replying to this email, please mark a copy to the mailing list too.