Public bug reported:

Postfix (3.2.3) has a hardcoded limit in
src/pipe/pipe.c:eval_command_status() that leads to truncated important
information in the logs. The problem is

if (VSTRING_LEN(why->reason) > 0) {
    VSTRING_TERMINATE(why->reason);
    saved_text =
      vstring_export(vstring_sprintf(
                       vstring_alloc(VSTRING_LEN(why->reason)),
                               " (%.100s)", STR(why->reason)));
} else
    saved_text = mystrdup("");          /* uses shared R/O storage */
    dsb_update(why, "2.0.0", (attr->flags & PIPE_OPT_FINAL_DELIVERY) ?
           "delivered" : "relayed", DSB_SKIP_RMTA, DSB_SKIP_REPLY,
           "delivered via %s service%s", service, saved_text);

The (%.100s) causes log entries like this

2017-11-14T14:55:37.153642+01:00 mail-01 postfix/pipe[71318]:
193DA1AE55: to=<[email protected]>, relay=dovecot, delay=0.05,
delays=0/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via dovecot
service (lda(ikm): Info: sieve:
msgid=<[email protected]>: stored
mail i))

with the information from dovecot cut off.

I have been too lazy to find out when this was introduced, but it almost
certainly wasn't present in version 2. It is still there in 3.2.4 and
3.3-20171028.

** Affects: postfix (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1732196

Title:
  part of log entry too limited

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postfix/+bug/1732196/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to