Qmail - unable to receive mail

Stangman66
Stangman66 used Ask the Experts™
on
Currently I have my mail setup on my Windows server, and I'm trying to switch to linux. So I know my MX records are setup correctly since I'm currently able to receive mail just fine.

On my router I changed port from my windows box to the linux box (assuming this is what directs to the MTA)

Within webmail I can send myself an e-mail and it shows up. I can send my Gmail account an e-mail and it shows up. I cannot send mail from gmail to mydomain.com and have it come up in webmail. Soon as I switch the port back to the windows server my Outlook downloads the message.

What am I missing here?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Quick Review:

E-Mail works like this:
 1) A Client Program (Outlook?) is used by an end-user to create a message. This program is called an MUA (Mail User Agent)
 2) The Client sends the message to their "local" server (called an MTA - Mail Transfer Agent)
 3) The Client's MTA sends the message to the recipient(s)' MTA (found using DNS MX records)
 4) The message sits on that MTA until another MUA comes along to receive it.

Now, there are some exceptions here -- specifically, the MTA's attempt to avoid "stupid" connections where possible (for example: mail from one domain to another that is hosted on the same server).

So, before we get into the debugging mode for QMail, let's make sure our test criteria is correct. I make the following assumptions:
 A) The client system (MUA running Outlook) has a LAN IP of 192.168.0.100
 B) The Windows Server (Exchange Server) LAN IP is 192.168.0.2
 C) The Linux Server (QMail Server) LAN IP is 192.168.0.3
 D) The local router LAN IP is 192.168.0.1 and has a static WAN IP of 11.22.33.44.
 E) Your e-mail Domain is "Domain.com", and your test user's e-mail address is "Test@Domain.com"

And I ask that you confirm that each is true (substituting your own "REAL" information):
 1) The MX record for Domain.Com resolves to 11.22.33.44 (and at least for now, there is only one MX record)
      This should be tested on EACH system (Exchange & QMail) -- use nslookup or dig
 2) BOTH Exchange AND QMail are configured to receive messages for Domain.com, and BOTH have a valid user "Test@Domain.com"
      This should be tested by making sure each can receive LOCAL messages to "Test@Domain.com" -- even if they are FROM Test@Domain.com!
 3) When you send a message to Test@Domain.com, you are using an outside source (gmail, hotmail, yahoo, etc.)
      Since each MTA thinks *it* is a server for Domain.Com, if you send the message through that MTA, no MX record lookup -- or even Internet access -- will take place... the message will simply be delivered "locally"
 4) You are redirecting port 25 in the router to the appropriate MTA under test (Exchange Server or QMail Server)
 5) You are pointing your MUA to the appropriate MTA to receive the test message (e.g.: you're not still connecting to the POP server on Exchange when the message is going to the QMail Server).

If ALL of these tests pass (and I suspect some will not -- which will guide you to your error), then post back here and we'll look into your QMail config a little more....

Good Luck!

Dan
IT4SOHO

Author

Commented:
TY for the reply, and for helping me understand how the delivery system works more in depth.

A through E is YES.

1) Yes.

2) Unknown, not sure if Qmail is configured correctly, but does have mydomain listed (not using exchange, just Server 2k3's POP3/SMTP)

3) I was using webmail, so it showed up right away (just as you explained it didn't even hit the internet) - when I try from my gmail account the message goes to the Windows server, not to Qmail

4) Yes, I switched port 25 to my Linux machine, sent a message from gmail to mydomain.com and did not receive anything. Waited for a while - then switched the port back to my Windows server and received the message in outlook.  For Qmail I was looking in webmail/squirrelmail for the message.

5) Not sure what the server settings would be to get outlook to look at my Qmail instead of Windows, I was initially going to get webmail to work first, then solve this issue.
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
OK... that may be your problem -- QMail install sites (unless you use a "complete package" installer like QMail Toaster) install the SMTP, POP, and IMAP processes. They don't necessarily START them for you...

My concern is that you say you send it on GMail with the router pointing to QMail, but nothing is delivered. Then you switch the router to point back to the Windows server, the mail is delivered. That seems points to a non-running SMTP service on the QMail system:

  So... on your QMail system, please make sure your qmail-smtpd daemon is running (ps -aef | grep qmail).

Many QMail installer sites have you install a QMail control script called qmailctl... if yours included this, try "qmailctl start" if the service is not already running.

What these installer sites often do not include is a webmail interface (like RoundCube or SquirrelMail)... or if they do, they don't include the Apache configurations to ACCESS the webmail components. But if I'm understanding you right, you're actually getting to a point in the webmail where you are seeing an Inbox, albeit an empty one.... so this again points to a non-running (or incorrectly configured) SMTP process (specifically, qmail-smtp).


Lastly (assuming QMail's SMTP service *is* running), check to see if you have a firewall in place (turn it off with "iptables -F")


Getting BASIC QMail up and running isn't that hard... we should get this working quickly....

Dan
IT4SOHO

Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Yes, I apologize - didn't know there was a difference, I used qmailtoaster, and followed along with instructional video off of video.qmailtoaster.com for installation and configuration.

qmailctl stat reports that it is running.

Correct - I created a user account and logged into squirrelmail and see my inbox. If I compose a message to myself I can see it in the inbox of webmail (but as you told me, it doesn't reach the internet).

QMail video or the installer opened ports on the firewall, I can turn it off as requested but would like to have it back on after testing is complete.

Also when I go to www.mydomain.com/admin-toaster, I was instructed to change the password, but "Change Admin Password" does not give any options or buttons to click.. (guess I can address this as a new question later, dunno if this is any significance to the current issue though)

let me get the results for that grep

Author

Commented:
[root@mail ~]# ps -aef | grep mail
avahi     1020     1  0 Jan27 ?        00:00:00 avahi-daemon: running [mail.local]
qmaill    1257  1242  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/pop3
vpopmail  1258  1243  0 Jan27 ?        00:00:00 /usr/bin/tcpserver -v -R -H -l mail.mydomain.com -x /etc/tcprules.d/tcp.smtp.cdb -c 100 -u 89 -g 89 0 587 /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
qmaill    1259  1240  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/send
root      1260  1241  0 Jan27 ?        00:00:00 /usr/bin/tcpserver -v -R -c 200 0 110 /var/qmail/bin/qmail-popup localhost /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
qmaill    1261  1245  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/submission
qmaill    1262  1247  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/smtp
qmails    1265  1238  0 Jan27 ?        00:00:00 qmail-send
vpopmail  1266  1246  0 Jan27 ?        00:00:00 /usr/bin/tcpserver -v -R -H -l mail.mydomain.com -x /etc/tcprules.d/tcp.smtp.cdb -c 100 -u 89 -g 89 0 smtp /usr/bin/rblsmtpd -r cbl.abuseat.org -r zen.spamhaus.org /var/qmail/bin/qmail-smtpd /home/vpopmail/bin/vchkpw /bin/true
qmaill    1268  1250  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/imap4-ssl
qmaill    1269  1253  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/imap4
qmaill    1270  1255  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/clamd
root      1273  1256  0 Jan27 ?        00:00:39 /usr/bin/perl -T -w /usr/bin/spamd -x -u vpopmail -s stderr
qmaill    1278  1277  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/spamd
qmaill    1300  1299  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/authlib
qmaill    1315  1314  0 Jan27 ?        00:00:00 /usr/bin/multilog t s1000000 n100 /var/log/qmail/pop3-ssl
root      1332  1265  0 Jan27 ?        00:00:00 qmail-lspawn ./Maildir/
qmailr    1333  1265  0 Jan27 ?        00:00:00 qmail-rspawn
qmailq    1334  1265  0 Jan27 ?        00:00:00 qmail-clean
vpopmail  1588  1273  0 Jan27 ?        00:00:00 spamd child                                                
vpopmail  1591  1273  0 Jan27 ?        00:00:00 spamd child                                                
root     30863 13105  0 12:24 pts/1    00:00:00 grep mail


----------

changed mail.mydomain.com (removing actual domain name)

Author

Commented:
[root@mail ~]# qmailctl stat
authlib: up (pid 1288) 181551 seconds
clamd: up (pid 1264) 181551 seconds
imap4: up (pid 1263) 181551 seconds
imap4-ssl: up (pid 1267) 181551 seconds
pop3: up (pid 1260) 181551 seconds
pop3-ssl: up (pid 1304) 181551 seconds
send: up (pid 1265) 181551 seconds
smtp: up (pid 1266) 181551 seconds
spamd: up (pid 1273) 181551 seconds
submission: up (pid 1258) 181551 seconds
authlib/log: up (pid 1300) 181551 seconds
clamd/log: up (pid 1270) 181551 seconds
imap4/log: up (pid 1269) 181551 seconds
imap4-ssl/log: up (pid 1268) 181551 seconds
pop3/log: up (pid 1257) 181551 seconds
pop3-ssl/log: up (pid 1315) 181551 seconds
send/log: up (pid 1259) 181551 seconds
smtp/log: up (pid 1262) 181551 seconds
spamd/log: up (pid 1278) 181551 seconds
submission/log: up (pid 1261) 181551 seconds
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
You're in luck -- I know the QMail Toaster rather well (use it myself).

When you log into the QMail Toaster Admin (http://host/admin-toaster), you are first asked to provide a username & password (default is admin & toaster). On the next page, the screen prompts you to type the old password, then the new password twice -- it's at the top of the page -- you can't miss it! Click Update Password when you're done entering all 3 fields.

OK... so you send a message from the SquirrelMail account to itself and you see it in the Inbox -- that proves that the following parts are working:
 1) the Inbox itself;
 2) the qmail-smtpd program accepts the message (SquirrelMail actually connects to the IMAP and SMTP services)
 3) the qmail-local program places the message into the mailbox

So, let's try something... log into the SquirrelMail (QMail) web client & send your GMail account a message... let's see outbound mail works.

Dan
IT4SOHO

Author

Commented:
Logged into squirrelmail, sent e-mail to my gmail account and it is there - got it.

Here's a picture of what I see when I log into admin-toaster

Author

Commented:
let me try that again...
qmailtoaster.jpeg
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Hmmm.... that "Change Admin Password" area is supposed to show fields to allow you to install a new password... In fact, the usefulness of the Toaster Admin is the second area -- Quick Go: -- which should have links to
 - Add and edit Virtual domains (VQ Admin)
 - MTA statistics (QMail MRTG)
 - Edit Users, mailing lists, forwarders (QMail Admin)
 - Usage Statistics per Domain (IsoQlog)

What client are you using? I've tested mine on IE, Firefox 3.x, & Chrome, and they all show fine.

Since you're using the QMail Toaster, I've attached a script I use to Update the QMT -- you might find it useful!
NOTE: BE SURE TO SET THE RIGHT DISTRO AND ARCH FOR YOUR SYSTEM BEFORE USING IT!!!

Something's DEFINITELY peculiar! :-)

Dan
IT4SOHO
#!/bin/bash
#
# MAKE SURE THESE ARE RIGHT!
ARCH=`/bin/arch`
DISTRO=fdr5064
#
PACKAGES="zlib vpopmail-toaster vqadmin-toaster ucspi-tcp-toaster libsrs2-toaster libdomainkeys-toaster \
 qmail-toaster squirrelmail-toaster spamassassin-toaster ripmime-toaster clamav-toaster simscan-toaster \
 qmailmrtg-toaster ezmlm-toaster autorespond-toaster qmailadmin-toaster courier-authlib-toaster \
 courier-imap-toaster maildrop-toaster control-panel-toaster isoqlog-toaster djbdns daemontools-toaster"
#REMOVE_FIRST="libdomainkeys-toaster control-panel-toaster spamassassin-toaster"
REMOVE_FIRST="clamav-toaster"
SKIP_LIST="zlib djbdns"
#
COL60="\\033[60G"
NORMAL="\\033[0;39m"
WHITE="\\033[1;39m"
GREEN="\\033[1;32m"
RED="\\033[1;31m"
YELLOW="\\033[1;33m"
BLUE="\\033[1;34m"
SHOWDWNLOAD="echo -en ${COL60}${BLUE}Downloading${NORMAL}"
SHOWREBUILD="echo -en ${COL60}${BLUE}Building...${NORMAL}"
SHOWINSTALL="echo -en ${COL60}${BLUE}Installing.${NORMAL}"
SHOWSKIP="echo -en    ${COL60} ${WHITE}[${YELLOW} SKIP ${WHITE}] ${NORMAL} \n"
SHOWOK="echo -en      ${COL60} ${WHITE}[${GREEN} -OK- ${WHITE}] ${NORMAL} \n"
SHOWDONE="echo -en    ${COL60} ${WHITE}[${GREEN} DONE ${WHITE}] ${NORMAL} \n"
SHOWFAIL="echo -en    ${COL60} ${WHITE}[${RED}FAILED${WHITE}] ${NORMAL} \n"
#
echo Building with DISTRO=${DISTRO} and ARCH=${ARCH}
TODAY=`/bin/date +%Y%m%d`
mkdir -p update-${TODAY}
cd "update-${TODAY}"
#
# Get Download Items
QT_PACKAGES=`wget -qc -O - "http://www.qmailtoaster.com/info/current.txt"`
#
# If list is unavailable, quit
if [ -z "${QT_PACKAGES}" ] ; then
   echo "Package List unavailable, please check your connection and try again"
   exit 1
fi
#
# Before getting started, backup settings files (to preserve)
echo "Stopping current QMail processes"
/usr/bin/qmailctl stop > /dev/null 2>&1
echo -n "Backing up Qmail..."
if ! [ -d /tmp/qmail ] ; then
  cp -rRp /home/it4soho/admin/qmail /tmp/qmail
fi
${SHOWDONE}
#
# Remove packages that may conflict with upgrades...
echo "Removing potential conflicting packages (will be reinstalled)"
for PKG in `echo ${REMOVE_FIRST}` ; do
  echo -n Removing ${PKG}...
  rpm -q ${PKG} > /dev/null 2>&1 && rpm -e --nodeps ${PKG}
  ${SHOWDONE}
done
#
# Check for updates in other packages (keep order!)
for RPM in ${QT_PACKAGES} ; do
  RPM=`echo ${RPM} | sed 's/-[0-9].*//'`
  if ! echo "${PACKAGES}" | grep ${RPM} > /dev/null 2>&1 ; then
    echo "Not sure what to do about ${RPM} -- its not in my install list!"
echo $RPM not in ${PACKAGES}
    exit 1
  fi
done
#
# do these in MY order (not the downloaded file's order)
for RPM in ${PACKAGES} ; do
  SRPM=`echo "${QT_PACKAGES}" | grep ${RPM}`
  if [ -z "${SRPM}" ] ; then
    echo "Not sure what to do about ${RPM} -- its not in their install list!"
    exit 1
  fi
  echo -n "Checking ${SRPM} "
  BASE=`echo ${SRPM} | sed 's/\.src.rpm$//'`
  if rpm -qa | grep ${BASE} >/dev/null 2>&1 ; then
    ${SHOWOK}
  elif echo ${SKIP_LIST} | grep -w "${RPM}" >/dev/null 2>&1 ; then
    ${SHOWSKIP}
  else
    RPM=`find /usr/src/${BDIR}/RPMS -name "${BASE}*rpm"`
    if [ -z "${RPM}" ] ; then
      # Clean up any OLD versions
      CHECK=`echo ${BASE} | sed 's/[0-9].*//'`
      find /usr/src/${BDIR}/RPMS -name "${CHECK}*" -exec rm -f '{}' \;
      rm -f /tmp/${BASE}.log
      # Get it (download it)
      ${SHOWDWNLOAD}
      wget http://www.qmailtoaster.com/download/stable/${SRPM} > /dev/null 2>&1
      # Build it
      ${SHOWREBUILD}
      rpmbuild --rebuild --with ${DISTRO} ${SRPM} > /tmp/${BASE}.log 2>&1
      if [ $? -ne 0 ] ; then
        ${SHOWFAIL}
      echo "Check /tmp/${BASE}.log"
      exit 1
    else
      rm -f /tmp/${BASE}.log
    fi
    ${SHOWDONE}
  fi
done
#
# remove the update directory (OR NOT)
cd ..
#rm -rf "update-${TODAY}"
#
# Restart Qmail
/usr/bin/qmailctl start

Open in new window

Author

Commented:
firefox 3.5.6

The arch file is in that same location, and I'm using fedora 12, how do I find out the exact distro ?

Author

Commented:
sh qmupdate.sh
Building with DISTRO=fedora12 and ARCH=i686
Stopping current QMail processes
Backing up Qmail...cp: cannot stat `/home/it4soho/admin/qmail': No such file or directory
                                                            [ DONE ]  
Removing potential conflicting packages (will be reinstalled)
Removing clamav-toaster...warning: /etc/freshclam.conf saved as /etc/freshclam.conf.rpmsave
                                                            [ DONE ]  
qmupdate.sh: line 106: syntax error near unexpected token `done'
qmupdate.sh: line 106: `done'

=============================================
named the script qmupdate.sh and executed by sh qmupdate.sh

trying to find /home/(user name)/admin/qmail and cannot find that directory.....
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Oops... seems my response to your note got lost somewhere...

But on re-reading the series of posts, I'm not sure we're barking up the right tree here...

Correct me if I'm wrong, but we've tried:
 1) using webmail to read messages on QMail and it works
 2) using webmail to send messages TO QMail (from QMail) and it works

Which demonstrates 2 things:
 1) Port 443 (IMAP) works (otherwise you couldn't open your mailbox)
 2) Port 25 (SMTP) works (otherwise you couldn't send mail -- even to yourself)

So I think we can dispense with the QMail debugging -- it is working demonstrably. The issue thus becomes one of networking (and potentialy firewalling).


Let's start next by testing the accessibility of your SMTP server from outside the 127 interface. Using a Windows (or other Linux) system, open a command prompt and make a telnet connection to port 25 on your QMail server. The Linux command would look something like this:
  telnet qmailserver 25

You should get a response that looks something like:
  Trying 192.168.1.2...
  Connected to qmailserver.local
  Escape character is '^]'.
  220 qmailserver.local -  Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP

For this part of the test, this is sufficient -- press control+] and type quit.

If there is a long delay, or this fails... then your QMail server needs to open port 25.

But I suspect it will work fine, as we have demonstrated that messages can get through on port 25 using webmail (squirrelmail) and the QMailToaster installation normally opens port 25 already.

So the next thing to do is to go back to switching your router to re-direct port 25 to your QMail server again.... then try the telnet command again, but using your WAN IP address.... more like:
  telnet mail.domain.com 25

You should get a response that looks something like:
  Trying 100.100.100.100...
  Connected to mail.domain.com
  Escape character is '^]'.
  220 qmailserver.local -  Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP

NOTES:
 - the 100.100.100.100 would be your WAN IP address (as resolved from mail.domain.com
 - the part after "Connected to" is the reverse DNS lookup for your IP Address (if it's not reasonable, contact your ISP)
 - the qmailserver.local (after 220) is the contents of "me" in the folder /var/qmail/control... adjust as desired

Again, if this part works, you've demonstrated that internet traffic DOES reach your QMail server.

Check back here when you've tested these two things...

Dan
IT4SOHO

Author

Commented:
after running that script I think i have messed up the installation....


[root@mail var]# qmailctl stat
authlib: supervise not running
clamd: supervise not running
imap4: supervise not running
imap4-ssl: supervise not running
pop3: supervise not running
pop3-ssl: supervise not running
send: supervise not running
smtp: supervise not running
spamd: supervise not running
submission: supervise not running
authlib/log: supervise not running
clamd/log: supervise not running
imap4/log: supervise not running
imap4-ssl/log: supervise not running
pop3/log: supervise not running
pop3-ssl/log: supervise not running
send/log: supervise not running
smtp/log: supervise not running
spamd/log: supervise not running
submission/log: supervise not running
[root@mail var]# qmailctl start
Starting qmail-toaster: svscan.
[root@mail var]# supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist

and it keeps going...

----------------------

try to log into webmail shows:  ERROR
Error connecting to IMAP server: localhost.
111 : Connection refused


guess I need to get the script up and working correctly... but it says there's an error on line 106, but that line just has 'fi' on it....
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Here is an updated script... if you still get errors, you can re-run the script with a "reset" option and it will completely uninstall and re-install QMail Toaster for you...

Guess we have to get BACK to square 1... sorry 'bout that!

Dan
IT4SOHO
Update.sh

Author

Commented:
[root@mail var]# sh Update.sh
Building with DISTRO=fedora12 and ARCH=i686
Removing potential conflicting packages (will be reinstalled)
Removing clamav-toaster...                                  [ DONE ]  
Checking zlib-1.2.3-1.0.3.src.rpm                           [ SKIP ]  
Checking vpopmail-toaster-5.4.17-1.3.7.src.rpm              [ -OK- ]  
Checking vqadmin-toaster-2.3.4-1.3.6.src.rpm                [ -OK- ]  
Checking ucspi-tcp-toaster-0.88-1.3.9.src.rpm               [ -OK- ]  
Checking libsrs2-toaster-1.0.18-1.3.6.src.rpm               [ -OK- ]  
Checking libdomainkeys-toaster-0.68-1.3.6.src.rpm           [ -OK- ]  
Checking qmail-toaster-1.03-1.3.20.src.rpm                  [ -OK- ]  
Checking squirrelmail-toaster-1.4.19-1.3.15.src.rpm         [ -OK- ]  
Checking spamassassin-toaster-3.2.5-1.3.17.src.rpm          [ -OK- ]  
Checking ripmime-toaster-1.4.0.6-1.3.6.src.rpm              [ -OK- ]  
Checking clamav-toaster-0.95.3-1.3.31.src.rpm find: `/usr/src/redhat/RPMS': No such file or directory
find: `/usr/src/redhat/RPMS': No such file or directory
                                                           Installing.find: `/usr/src/redhat/RPMS': No such file or directory
                                                            [FAILED]  
Update.sh: Error -- unable to find clamav-toaster-0.95.3-1.3.31 RPM




----------------we're getting close  ;)  I just always hit speedbumps along the way

Author

Commented:
[root@mail var]# sh Update.sh
Building with DISTRO=fedora12 and ARCH=i686
Removing potential conflicting packages (will be reinstalled)
Removing clamav-toaster...                                  [ DONE ]  
Checking zlib-1.2.3-1.0.3.src.rpm                           [ SKIP ]  
Checking vpopmail-toaster-5.4.17-1.3.7.src.rpm              [ -OK- ]  
Checking vqadmin-toaster-2.3.4-1.3.6.src.rpm                [ -OK- ]  
Checking ucspi-tcp-toaster-0.88-1.3.9.src.rpm               [ -OK- ]  
Checking libsrs2-toaster-1.0.18-1.3.6.src.rpm               [ -OK- ]  
Checking libdomainkeys-toaster-0.68-1.3.6.src.rpm           [ -OK- ]  
Checking qmail-toaster-1.03-1.3.20.src.rpm                  [ -OK- ]  
Checking squirrelmail-toaster-1.4.19-1.3.15.src.rpm         [ -OK- ]  
Checking spamassassin-toaster-3.2.5-1.3.17.src.rpm          [ -OK- ]  
Checking ripmime-toaster-1.4.0.6-1.3.6.src.rpm              [ -OK- ]  
Checking clamav-toaster-0.95.3-1.3.31.src.rpm               [ DONE ]  
Checking simscan-toaster-1.4.0-1.3.8.src.rpm                [ -OK- ]  
Checking qmailmrtg-toaster-4.2-1.3.6.src.rpm                [ -OK- ]  
Checking ezmlm-toaster-0.53.324-1.3.6.src.rpm               [ -OK- ]  
Checking autorespond-toaster-2.0.4-1.3.6.src.rpm            [ -OK- ]  
Checking qmailadmin-toaster-1.2.12-1.3.8.src.rpm            [ -OK- ]  
Checking courier-authlib-toaster-0.59.2-1.3.10.src.rpm      [ -OK- ]  
Checking courier-imap-toaster-4.1.2-1.3.10.src.rpm          [ -OK- ]  
Checking maildrop-toaster-2.0.3-1.3.8.src.rpm               [ -OK- ]  
Checking control-panel-toaster-0.5-1.3.7.src.rpm            [ -OK- ]  
Checking isoqlog-toaster-2.1-1.3.7.src.rpm                  [ -OK- ]  
Checking djbdns-1.05-1.0.6.src.rpm                          [ SKIP ]  
Checking daemontools-toaster-0.76-1.3.6.src.rpm             [ -OK- ]  
Starting qmail-toaster: svscan.
[root@mail var]# supervise: fatal: unable to acquire clamd/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist

Author

Commented:
the www.mydomain.com/admin-taoster page is still not showing correctly (links, and option to change the PW)

can we try that reinstallation/installation script you have and just start from scratch?
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Not at all sure why your /usr/src/redhat/RPMS and /usr/src/redhat/SRPMS folders would be gone....

Two options:
  1) find the actual location of /usr/src/redhat, or
  2) force the creation of those folders.

Option 1)
  find / -type d -name redhat -print

  if the folder is found, create a link from /usr/src to it's real location and call it redhat

Option 2)
  if it is not found, try this:
    cd /usr/src
    mkdir redhat
    cd redhat
    mkdir -p BUILD RPMS SOURCES SPECS SRPMS

  then re-run the Update script.

I certainly would not expect QMail to run unless the script succeeds.

Dan
IT4SOHO

Author

Commented:
ya I created that directory and copied that RPM over to it and it finished, but still displayed these error messages:

[root@mail var]# supervise: fatal: unable to acquire clamd/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist


---------------------
and now i can run qmailctl stat again:
---------------------

[root@mail var]# supervise: fatal: unable to acquire clamd/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to acquire log/supervise/lock: temporary failure
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist
supervise: fatal: unable to start log/run: file does not exist
supervise: fatal: unable to start clamd/run: file does not exist


--------------

but I still cannot change the admin password in toaster-admin page...
can we do a R&R of qmail ?
Daniel McAllisterPresident, IT4SOHO, LLC

Commented:
Try re-running the script as a re-install

Update.sh reset

This will uninstall all modules & re-install them.....

Dan
IT4SOHO

Author

Commented:
[root@mail var]# sh Update2.sh reset
Building with DISTRO=fedora12 and ARCH=i686
Removing potential conflicting packages (will be reinstalled)
Removing vpopmail-toaster...error: %preun(vpopmail-toaster-5.4.17-1.3.7.i686) scriptlet failed, exit status 8
                                                            [ DONE ]  
Removing vqadmin-toaster...                                 [ DONE ]  
Removing ucspi-tcp-toaster...                               [ DONE ]  
Removing libsrs2-toaster...                                 [ DONE ]  
Removing libdomainkeys-toaster...                           [ DONE ]  
Removing qmail-toaster...                                   [ DONE ]  
Removing squirrelmail-toaster...                            [ DONE ]  
Removing spamassassin-toaster...                            [ DONE ]  
Removing ripmime-toaster...                                 [ DONE ]  
Removing clamav-toaster...                                  [ DONE ]  
Removing simscan-toaster...                                 [ DONE ]  
Removing qmailmrtg-toaster...                               [ DONE ]  
Removing ezmlm-toaster...                                   [ DONE ]  
Removing autorespond-toaster...                             [ DONE ]  
Removing qmailadmin-toaster...                              [ DONE ]  
Removing courier-authlib-toaster...                         [ DONE ]  
Removing courier-imap-toaster...                            [ DONE ]  
Removing maildrop-toaster...                                [ DONE ]  
Removing control-panel-toaster...                           [ DONE ]  
Removing isoqlog-toaster...                                 [ DONE ]  
Removing daemontools-toaster...                             [ DONE ]  
Checking zlib-1.2.3-1.0.3.src.rpm                           [ SKIP ]  
Checking vpopmail-toaster-5.4.17-1.3.7.src.rpm              [ -OK- ]  
Checking vqadmin-toaster-2.3.4-1.3.6.src.rpm                [ DONE ]  
Checking ucspi-tcp-toaster-0.88-1.3.9.src.rpm               [ DONE ]  
Checking libsrs2-toaster-1.0.18-1.3.6.src.rpm               [ DONE ]  
Checking libdomainkeys-toaster-0.68-1.3.6.src.rpm           [ DONE ]  
Checking qmail-toaster-1.03-1.3.20.src.rpm                  [ DONE ]  
Checking squirrelmail-toaster-1.4.19-1.3.15.src.rpm         [ DONE ]  
Checking spamassassin-toaster-3.2.5-1.3.17.src.rpm          [ DONE ]  
Checking ripmime-toaster-1.4.0.6-1.3.6.src.rpm              [ DONE ]  
Checking clamav-toaster-0.95.3-1.3.31.src.rpm               [ DONE ]  
Checking simscan-toaster-1.4.0-1.3.8.src.rpm                [ DONE ]  
Checking qmailmrtg-toaster-4.2-1.3.6.src.rpm                [ DONE ]  
Checking ezmlm-toaster-0.53.324-1.3.6.src.rpm               [ DONE ]  
Checking autorespond-toaster-2.0.4-1.3.6.src.rpm            [ DONE ]  
Checking qmailadmin-toaster-1.2.12-1.3.8.src.rpm            [ DONE ]  
Checking courier-authlib-toaster-0.59.2-1.3.10.src.rpm      [ DONE ]  
Checking courier-imap-toaster-4.1.2-1.3.10.src.rpm          [ DONE ]  
Checking maildrop-toaster-2.0.3-1.3.8.src.rpm               [ DONE ]  
Checking control-panel-toaster-0.5-1.3.7.src.rpm            [ DONE ]  
Checking isoqlog-toaster-2.1-1.3.7.src.rpm                  [ DONE ]  
Checking djbdns-1.05-1.0.6.src.rpm                          [ SKIP ]  
Checking daemontools-toaster-0.76-1.3.6.src.rpm             [ DONE ]  
Update2.sh: line 128: /usr/bin/qmailctl: No such file or directory


President, IT4SOHO, LLC
Commented:
Please issue a which on qmailctl.... I suppose it is possible that the qmail toaster guys moved its installation location...

  which qmailctl

otherwise, try a find:
  find / -name qmailctl

The control script is provided by the qmail-toaster-1.03 package... the script reported it to be installed... does an rpm -q show it installed?
    rpm -qa | grep -i qmail-toaster

....

I keep my own system up-to-date with that script and so just checked my own system... qmailctl is right there in /usr/bin... so I'm at a bit of a loss as to why yours is not there...

Have you considered using the QMail Toaster Plus yum repositories?

Run the following commands:

  rpm -Uvh http://qtp.qmailtoaster.com/trac/downloads/1
  yum install qmailtoaster-plus
  qtp-menu

In the menu, scroll down and run the Newmodel script. It's ok if you want to rebuild anything -- but at a minimum it will check to see if each package is the latest...

NOTE: One nice advantage of QTP is the ability to add some QMail Toaster features automatically that you would otherwise have to do by hand -- like SpamDyke and RBL lists for controlling SPAM.

I'm somewhat troubled that the script isn't working for you... please feel free to call me for some free online assistance... I am in my office from 9A-6P Eastern. Do a google search on my name and you'll find it...

Dan
IT4SOHO

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial