From owner-freebsd-questions Tue Aug 21 13:38:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5DD3B37B403 for ; Tue, 21 Aug 2001 13:38:35 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (patr530-a132.otenet.gr [212.205.215.132]) by mailsrv.otenet.gr (8.11.1/8.11.1) with ESMTP id f7LKcVT28333; Tue, 21 Aug 2001 23:38:31 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.4/8.11.4) id f7LJkd296910; Tue, 21 Aug 2001 22:46:39 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 21 Aug 2001 22:46:38 +0300 From: Giorgos Keramidas To: Odhiambo Washington Cc: e-value - Maxime Mathon , FBSD-Q Subject: Re: OT: Sendmail Message-ID: <20010821224638.A96292@hades.hell.gr> References: <20010821192954.G66076@ns2.wananchi.com> <3B82910F.DB0D2137@e-value.fr> <20010821195636.I66076@ns2.wananchi.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010821195636.I66076@ns2.wananchi.com>; from wash@wananchi.com on Tue, Aug 21, 2001 at 07:56:36PM +0300 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable From: Odhiambo Washington Subject: Re: OT: Sendmail Date: Tue, Aug 21, 2001 at 07:56:36PM +0300 > * e-value - Maxime Mathon [20010821 19:50]: writing= on the subject 'Re: OT: Sendmail' > | sendmail stop > | killall sendmail > | cd /var/spool/mqueue > | rm -f * > | sendmail start >=20 >=20 > That's a wonderful clue. I am so much biased towards Exim. Now may I ask > one more question: Suppose I want to remove only frozen messages - I can > get the message ID?? In Exim I simply do 'exim -Mrm Message-ID' ; what do > guys do in sendmail? I can use sendmail -bp to list the message IDs. You can also use something along the lines of the following to see the Message-ID's of the queued messages, sorted by date. % mailq | sed -e '1,2d' | grep -v '^[[:space:]]' | sort +2 f7LJSwU96783 9 Tue Aug 21 22:28 charon f7LJUCh96806 13 Tue Aug 21 22:30 charon f7LJUsS96824 5 Tue Aug 21 22:30 charon f7LJV3b96829 5 Tue Aug 21 22:31 charon Or if you only want the Message-Id and the date, use the following: % mailq | sed -e 1,2d | grep -v '^[[:space:]]' |\ awk '{printf "%s\t%s %s %2d %s\n",$1,$3,$4,$5,$6}' | sort +1 which, for the same queue files would produce: f7LJSwU96783 Tue Aug 21 22:28 f7LJUCh96806 Tue Aug 21 22:30 f7LJUsS96824 Tue Aug 21 22:30 f7LJV3b96829 Tue Aug 21 22:31 If you see in there something that has a very old date, it's probably stuck in your queue for a long time. Removing it is easy. Just delete the files /var/spool/mqueue/dfXXX and /var/spool/mqueue/qfXXX when sendmail is stopped. -giorgos --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7grqdzk2rLMllOhwRAllvAJ4k/KDN9LRkiIxbbtsLk4y+ECZBPwCghFKU 3hNm5WtgJe98ydyfLuJtUU4= =yKdF -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message