Post details: qfixq


My adventures and exploits as well as the gnashing of teeth with the wonderful OS known as FreeBSD.

qfixq

June 15th, 2006 (84 views )

Help fixing a broken mail queue. Mail is able to be sent and received correctly, I think. Tests emails are sent and received correctly. I believe the issues might be with how bounces are handled.

Qmail queue structure. A general setup guide for qmail can be found here however I used the guide at bsdforums.org.

From /var/log/messages

sm-mta[3889]: k5GA6Z27003885: SYSERR(root): mail.coalitionstate.com. config error: mail loops back to me (MX problem?)
sm-mta[3890]: k5GA6ZFZ003886: SYSERR(root): mail.coalitionstate.com. config error: mail loops back to me (MX problem?)
sm-mta[3889]: k5GA6a27003889: Losing ./qfk5GA6a27003889: savemail panic
sm-mta[3890]: k5GA6aFZ003890: Losing ./qfk5GA6aFZ003890: savemail panic
sm-mta[3890]: k5GA6aFZ003890: SYSERR(root): savemail: cannot save rejected email anywhere
sm-mta[3889]: k5GA6a27003889: SYSERR(root): savemail: cannot save rejected email anywhere

I had created an Alias in bind for tamasaburo.coalitionstate.com which is the machines hostname. I think this was the error. I removed the modification I had made to bind and restarted the daemon (no issues there). Using vpopmail I had created a virtualdomain of tamasaburo.coalitionstate.com as an alias for coalitionstate.com.

qmail-qstat reports an empty mail queue and 23 messages preprocessed. I am not sure how to clear the preprocessed messages (they've been in there for nearly a day). qfixq script does not detect anything that needs to be fixed. qmHandle also reports empty local and remote queues.

I think it could be a bottleneck with how I have configured Spam Assassin and/or ClamAV.

I figured I would try qmail-scanner to employ ClamAV and Spam Assassin. While building it did not find the QMAILQUEUE fix/patch applied to Qmail. After bumbling around and downloading the patch and patching qmail by hand I found out you can make WITH_QMAILQUEUE_PATCH=yes.

I used the C Wrapper in /mail/qmail-scanner/work/qmail-scanner*/contrib/ since Perl does not have SETUID abilities enabled.

A few errors in /var/log/maillog which were resolved by running qmail-scanner-queue.pl -z to initialize the system. I needed to chown qmaild:qscand /var/local/qmailscan/* to eliminate the permission errors.
Finally ran qmail-scanner-queue.pl -g. I still get permission errors. RUAR.

====

Q:What does "daemon" mean?
A:Daemon is a Greek word meaning "secondary deity ". My extrapolation of the UNIX meaning then, is that the kernel is the main "deity", providing the most important application services (mem and process mgmt, file access, network access, etc). And the system daemons are the secondary "deities" providing nonessential, but very useful application services.

Comments:

No Comments for this post yet...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Dualbase :: Montreal webdesign :: the home of FLAM player
Flam Player :: Macromedia Flash mp3 player :: the home of FLAM player