[Mimedefang] How to get Sendmail Queue-ID in mimedefang?

Dave O'Neill dmo at roaringpenguin.com
Wed Jan 10 14:58:41 EST 2007


On Wed, Jan 10, 2007 at 02:47:32PM -0500, Yanick Quirion wrote:
> I'm looking a way to get the queue ID number for messages that are coming
> into my server. This is not the message ID, but the queue ID:
> 
> Jan 10 14:44:28 server sendmail[5294]: l0AJiSrh005294:   <- That Number
> from=<toto at toto.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA,
> relay=69-150-151-77.ded.swbell.net [69.150.151.77] (may be forged)

It's $::main::QueueID.  From the mimedefang-filter(5) manpage:

   $QueueID
      The Sendmail queue identifier if it could be determined.
      Otherwise, contains the string "NOQUEUE".  This variable is set
      correctly in filter_sender and filter_recipient, but it is not
      available in filter_relay.


Cheers,
Dave
-- 
Dave O'Neill <dmo at roaringpenguin.com>    Roaring Penguin Software Inc.
+1 (613) 231-6599                        http://www.roaringpenguin.com/
For CanIt technical support, please mail: support at roaringpenguin.com



More information about the MIMEDefang mailing list