Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Mar 2004 17:58:10 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        JJB <Barbish3@adelphia.net>
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@freebsd.org>
Subject:   Re: Sendmail deferred email?
Message-ID:  <20040323175810.GE973@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGEEFFFKAA.Barbish3@adelphia.net>
References:  <MIEPLLIBMLEEABPDBIEGEEFFFKAA.Barbish3@adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--7LkOrbQMr4cezO2T
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 23, 2004 at 12:46:32PM -0500, JJB wrote:
> I see in mail log some deferred email being held.
> Is there a way to clear this email from sendmail?

You can process the mail queue manually by:

    # /usr/sbin/sendmail -q -v

or

    # /usr/sbin/sendmail -Ac -q -v=20

for the clientmqueue stuff.

(-v means verbose -- you can omit that, but it's kind of amusing to
watch)
=20
> Maybe so sendmail sub command?

If your mail system is set up correctly, there should be a process
that runs regularly (every 30min is usual) to flush the queue.  If you:

    # cat /var/run/sendmail.pid

or

    # cat /var/spool/clientmqueue/sm-client.pid

the second line shows the arguments used to startup sendmail.  There
should be something like '-q30m' in there.

Messages can get stuck in the mail queue for valid reasons --
destination site is down, DNS fubarred, loss of network connectivity
etc.  Use:

    # mailq -v

or

    # mailq -Ac -v

to see the status of all messages in the mail queue or the client mail
queue.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--7LkOrbQMr4cezO2T
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAYHqydtESqEQa7a0RAo0cAJ9fBCvAvOwYbxP0T2zODvu/VLmRdgCfWAEm
jv/83dPcYb/H5MutPgpU4Kk=
=beQN
-----END PGP SIGNATURE-----

--7LkOrbQMr4cezO2T--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040323175810.GE973>