View previous topic :: View next topic |
Author |
Message |
nngs n00b
Joined: 01 Oct 2002 Posts: 48
|
Posted: Sun Dec 29, 2002 3:00 pm Post subject: Sendmail problem: messages stick in /var/spool/clientmqueue |
|
|
Just installed pine and sendmail. All test messages are found in /var/spool/clientmqueue, and refuse to go anywhere
I didn't edit my sendmail.mc:
Code: | divert(-1)
divert(0)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc,v 1.2 2002/07/04 04:55:29 g2boojum Exp $')dnl
OSTYPE(linux)dnl
DOMAIN(generic)dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
MAILER(local)dnl
MAILER(smtp)dnl |
whate i tried
sendmail -q (nothing changed)
sendmail -OQueueDirectory=/var/spool/clientmqueue -q (nothing changed)
sendmail -bp
the output is
Code: | /var/spool/mqueue is empty
Total requests: 0 |
sendmail -OQueueDirectory=/var/spool/clientmqueue -bp
Code: | /var/spool/clientmqueue is empty
Total requests: 0 |
very strange, because ls /var/spool/clientmqueue listed all queued messages
How to set sendmail.mc to let these messages go to their destinations?
Thanks |
|
Back to top |
|
|
philthedrill n00b
Joined: 10 Jan 2003 Posts: 18 Location: Moscow, ID
|
|
Back to top |
|
|
upnix n00b
Joined: 02 Jan 2003 Posts: 63 Location: Canada
|
Posted: Fri Jan 10, 2003 4:27 am Post subject: |
|
|
Just some guesses..
Anything in /var/log/maillog?
Try running:
/usr/sbin/sendmail -L sm-msp-queue -Ac -q
My guess would be sendmail doesn't know what to use to send the messages locally. I see you've got
FEATURE(`local_lmtp',`/usr/sbin/mail.local')dnl
But I've never had to stick something like that in my .mc to make local delivery work. |
|
Back to top |
|
|
philthedrill n00b
Joined: 10 Jan 2003 Posts: 18 Location: Moscow, ID
|
Posted: Fri Jan 10, 2003 2:34 pm Post subject: |
|
|
Just another suggestion:
Check some of the messages in /var/spool/clientmqueue.
I had the same problem plaguing my network last year, and most of the messages were system messages (logwatch to root).
I fixed it by adding an alias for root in /etc/mail/aliases, then running newaliases.
--phil |
|
Back to top |
|
|
Telamon Tux's lil' helper
Joined: 29 Dec 2003 Posts: 129
|
Posted: Mon Dec 29, 2003 6:17 pm Post subject: |
|
|
Another thing you might want to try is renaming the submit.cf file (ie, mv /etc/mail/submit.cf /etc/mail/submit.cf.bak) and restarting sendmail. Tends to fix most of my "sendmail won't send the damned mail to the local machine" problems.
Oh, also, make sure your /etc/mail/local-host-names file has all the names your machine is known by, including localhost. |
|
Back to top |
|
|
|