Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sendmail problem: messages stick in /var/spool/clientmqueue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
nngs
n00b
n00b


Joined: 01 Oct 2002
Posts: 48

PostPosted: Sun Dec 29, 2002 3:00 pm    Post subject: Sendmail problem: messages stick in /var/spool/clientmqueue Reply with quote

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
View user's profile Send private message
philthedrill
n00b
n00b


Joined: 10 Jan 2003
Posts: 18
Location: Moscow, ID

PostPosted: Fri Jan 10, 2003 12:24 am    Post subject: Reply with quote

I don't know if this would help:

https://forums.gentoo.org/viewtopic.php?t=25069

--phil
Back to top
View user's profile Send private message
upnix
n00b
n00b


Joined: 02 Jan 2003
Posts: 63
Location: Canada

PostPosted: Fri Jan 10, 2003 4:27 am    Post subject: Reply with quote

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
View user's profile Send private message
philthedrill
n00b
n00b


Joined: 10 Jan 2003
Posts: 18
Location: Moscow, ID

PostPosted: Fri Jan 10, 2003 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Telamon
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 129

PostPosted: Mon Dec 29, 2003 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum