Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13836 - sendmail: there is no /var/spool/clientmqueue flushing daemon
Summary: sendmail: there is no /var/spool/clientmqueue flushing daemon
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
: 13951 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-13 05:07 UTC by Andrea Barisani (RETIRED)
Modified: 2004-02-22 03:13 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Barisani (RETIRED) gentoo-dev 2003-01-13 05:07:36 UTC
With the new mail submission program feature sendmail looks up submit.cf for
sendmail mail when invoked from command line or by a program on the local
machine. Mails submitted by the msp if deferred are placed in the msp queue
located in /var/spool/clientmqueue. In /etc/init.d/sendmail a msp queue cleaning
daemon should be started.

example:

sendmail -Ac -q30m -L sendmail-msp
Comment 1 Nick Hadaway 2003-01-13 21:52:50 UTC
-q30m is already being passed to the starting of sendmail.
If you have a cron daemon running then sendmail will do it's queue flushing properly.
Comment 2 Andrea Barisani (RETIRED) gentoo-dev 2003-01-14 04:06:28 UTC
sendmail -bd -q30m flush only /var/spool/mqueue

an additional instance is needed for flushing /var/spool/clientmqueue.


From sendmail/SECURITY:

The daemon must be started by root as usual, e.g.,

/PATH/TO/sendmail -L sm-mta -bd -q1h

(replace /PATH/TO with the right path for your OS, e.g.,
/usr/sbin or /usr/lib).

Notice: if you run sendmail from inetd (which in general is not a
good idea), you must specify -Am in addition to -bs.

Mail will end up in the client queue if the daemon doesn't accept
connections or if an address is temporarily not resolvable.  The
latter problem can be minimized by using

	FEATURE(`nocanonify', `canonify_hosts')
	define(`confDIRECT_SUBMISSION_MODIFIERS', `C')

which, however, may have undesired side effects.  See cf/README for
a discussion.  In general it is necessary to clean the queue either
via a cronjob or by running a daemon, e.g.,

/PATH/TO/sendmail -L sm-msp-queue -Ac -q30m
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-01-15 14:19:32 UTC
*** Bug 13951 has been marked as a duplicate of this bug. ***
Comment 4 Nick Hadaway 2003-01-19 18:24:20 UTC
The ebuild in portage has been updated with your suggestions. Log messages are marked as sm-mta and sm-cm for the individual daemons.
Comment 5 Target 2004-02-22 02:17:00 UTC
This fix is now detrimental to recent versions of sendmail. The two daemons will step on each others' toes.

I commented out the clientqueue copy of the daemon in /etc/init.d/sendmail and problems with empty messages/open failures went away. The single daemon is flushing both queues (mqueue & clientmqueue).
Comment 6 Andrea Barisani (RETIRED) gentoo-dev 2004-02-22 03:13:52 UTC
That's not true, /var/spool/clientmqueue still needs a separate flushing daemon. This is confirmed from the documentation and a simple test with 'lsof' (also there is a logic in this behaviour).  Could you please post your sendmail.mc? Maybe you got a non-standard configuration.  Also exactly what kind of problems were you experiencing?