Hi everyone.  I have two (hopefully) quick questions about qmail.

We recently set up qmail on our Solaris mail server after our
open-relay sendmail was taken advantage of and used as a
spam relay.

We have two problems with qmail currently.  We have run qmail-lint
and it reports no problems (except that users such as nobody will
be unable to receive mail, which we don't care about).

First problem:

I followed the instructions in the qmail HOWTO and got rid of sendmail
entirely.  But later in the day I discovered that emails simply were
not getting delivered.  qmail-smtpd was happily accepting them for
delivery but where they went, who knows.  We are using /var/mail
files for receiving mail (for compatibility with our IMAP and POP
servers).  These files stopped being updated and I can find no
traces of received mail anywhere in /var/qmail/queue.  I was unable
to send mail using the /bin/mail program on the mail host.  So I
tried the old sendmail.bak sendmail executable and, after making it
suid again, it worked.  So I removed the links from /usr/lib/sendmail
and /usr/sbin/sendmail to /var/qmail/bin/sendmail, and replaced those
links with links to the old sendmail.bak.  Now users are receiving
mail again.  I find it very strange.

My guess is that the fact that /var/qmail/bin/sendmail being
group qmail and all of our mail files in /var/mail being group
mail, and the fact that /var/qmail/bin/sendmail is not suid or
anything, meant that it didn't have permissions to write mail
to the mail files.  And it probably returned an error code to
/bin/mail which silently ignored it?

Anyone know if there's any hope of recovering the mails which were
lost at this time?  Silently lost mail files are the worst case
scenario for a mail server and I am really afraid that that's what
we have here.

The second problem we have is that qmail doesn't seem to log
properly.  Qmail is started via:

qmail-start '|preline -f /bin/mail "$USER"' splogger qmail

But where do the messages get logged?  At no time have we ever
received any log messages from qmail except for the following
in /var/adm/messages:

Sep 16 20:55:35 level qmail: 937529735.086563 alert: oh no! lost spawn
connection! dying...

Which occurred when I manually killed qmail when restarting it.

I also have qmail installed (using a qmail rpm) on a RedHat 6.0 box,
and it works flawlessly, with full logging to /var/log/maillog.

Thanks very much,
Bryan
-- 
------------------------------------------------------------------------
Bryan Ischo             [EMAIL PROTECTED]                1995 Honda VFR750
Yonkers, NY, USA        http://www.ischo.com            RedHat Linux 6.0
------------------------------------------------------------------------

Reply via email to