On Wed, Mar 28, 2018 at 02:16:47PM +0000, l carr wrote:
> Our other question is there a way to link the error message in
> the logs to the original message that was deferred.

The queue ID is always logged after it has been assigned.  Also set
    enable_long_queue_ids = yes
in any supported Postfix version, to ensure that queue IDs are 
unique.

> (Even if it requires turning on additional logging.)

No, don't do that.

> As it is logged currently, there doesn't appear to be a unique 
> value that we could key on that is provided in both the error log 
> entry and the message log entry.  So we can only 'assume' the 

> > Mar 27 16:20:54 redactedServer postfix/cleanup[24237]: warning: 
> > ldap:/etc/postfix/ldap-aliases.cf lookup error for "redacted@domain"
> > Mar 27 16:20:54 redactedServer postfix/cleanup[24237]: warning: 745EC6AC49: 
> > virtual_alias_maps map lookup problem for redacted@domain -- deferring 
> > delivery

The first line isn't really specific to queue ID 745EC6AC49, but the 
following line mentions it.  You could grep 745EC6AC49, but the best 
choice is usually to use a pager like less, and search using its 
search function.

If/when 745EC6AC49 is finally delivered or permanently bounced for 
some reason such as maximal_queue_lifetime, the queue ID will be 
mentioned in logs describing the final disposition.
-- 
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to