I'm running the commands from a SSH shell logged in as root. What do you mean 
by setuid wrapper?
 
GlenB

--- On Tue, 3/10/09, Victor Duchovni <victor.ducho...@morganstanley.com> wrote:

From: Victor Duchovni <victor.ducho...@morganstanley.com>
Subject: Re: v2.5.5 showq and postcat date/time stamp discrepancy
To: postfix-users@postfix.org
Date: Tuesday, March 10, 2009, 1:35 AM

On Tue, Mar 10, 2009 at 01:01:37AM -0400, Glen B wrote:

>
> Hi,
>
> Postfix 2.5.5 on Debian
>
> I've just noticed a discrepancy between showq (postqueue -p) and
postcat. 
> I've looked through the code, played with the conversion code in
postcat 
> and I honestly can not figure out what's going wrong:
>
> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> DBBAD4A340AD      827 Mon Mar  9 10:29:27  root
>
> *** ENVELOPE RECORDS /var/spool/postfix/maildrop/DBBAD4A340AD ***
> message_arrival_time: Mon Mar  9 06:29:27 2009

Don't use a setuid wrapper to run postcat. When Potfix commands run
with uid != euid, they don't trust the environment, and always report
GMT. If you run "postcat" and "mailq" with uid == euid == 0
(root),
the results are consistent.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please
put
"It worked, thanks" in the "Subject" so I can delete these
quickly.

Reply via email to