From owner-freebsd-questions Wed Aug 22 4:44: 0 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns2.wananchi.com (mail.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 75E5337B40E for ; Wed, 22 Aug 2001 04:43:18 -0700 (PDT) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com with local (Exim 3.32 #4) id 15ZS9M-0009cO-00; Wed, 22 Aug 2001 10:10:04 +0300 Date: Wed, 22 Aug 2001 10:10:04 +0300 From: "Odhiambo G. Washington" To: Rino Mardo Cc: Giorgos Keramidas , e-value - Maxime Mathon , FBSD-Q Subject: Re: OT: Sendmail Message-ID: <20010822101004.T66076@ns2.wananchi.com> Mail-Followup-To: "Odhiambo G. Washington" , Rino Mardo , Giorgos Keramidas , e-value - Maxime Mathon , FBSD-Q References: <20010821192954.G66076@ns2.wananchi.com> <3B82910F.DB0D2137@e-value.fr> <20010821195636.I66076@ns2.wananchi.com> <20010821224638.A96292@hades.hell.gr> <009701c12aa6$ae485c00$f6a145ca@rino> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1y6imfT/xHuCvpN0" Content-Disposition: inline In-Reply-To: <009701c12aa6$ae485c00$f6a145ca@rino> User-Agent: Mutt/1.3.20i X-Disclaimer: My opinions do not necessarily represent those of my employer. X-Operating-System: FreeBSD 4.3-STABLE i386 X-Mailer: Mutt http://www.mutt.org/ X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 10:05AM up 11 days, 19:34, 2 users, load averages: 0.30, 0.16, 0.10 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 --1y6imfT/xHuCvpN0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Rino Mardo [20010822 03:48]: writing on the subject 'R= e: OT: Sendmail' | > * e-value - Maxime Mathon [20010821 19:50]: writi= ng | on the subject 'Re: OT: Sendmail' | > | sendmail stop | > | killall sendmail | > | cd /var/spool/mqueue | > | rm -f * | > | sendmail start | > | > | > 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. |=20 | >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 |=20 | >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 |=20 | i would have thought you can use sendmail switches with exim and vicevers= a. | plus there are sendmail switches which would show/remove you frozen messa= ges | without having to do shell scripts. I am fairly familiar with Exim when it comes to issues like dealing with queued messages. Another good thing with Exim is that the documentation is rather superb. While not blaming sendmail, the only problem with me would appear to be the fact that I stuck my head up my $%^& once I encountered Exim. Sendmail kinda gives me a challenge but isn't quite appealing to me as Postfix would. I am going to try and play with a copy of the sendmail spool using Exim and see what the outcome is. | anyway, nice to see shell scripts and not perl. Many ways to kill a rat??? ;-) -Wash -- Odhiambo Washington Wananchi Online Ltd., wash@wananchi.com 1st Flr Loita Hse. Tel: 254 2 313985 Loita Street., Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE. We seem to have a compulsion these days to bury time capsules in order to g= ive=20 those people living in the next century or so some idea of what we are like= . I=20 have prepared one of my own. I have placed some rather large samples of=20 dynamite, gunpowder, and nitroglycerin. My time capsule is set to go off in= =20 the year 3000. It will show them what we are really like.=20 -Alfred Hitchcock=20 --1y6imfT/xHuCvpN0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE7g1rMn7LIsuxjem8RAvVjAJwLF+WMPmN6ANmYch47elTTPsbbtACgj9K7 zJUBNNiZXVR584TvT3BuVpU= =SssZ -----END PGP SIGNATURE----- --1y6imfT/xHuCvpN0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message