Your message dated Sun, 17 Oct 2010 13:18:17 +0300
with message-id <[email protected]>
and subject line Bug#599221: postfix: 'header_sender' doesn't work with 
canonical_maps or sender_canonical_maps (pcre)
has caused the Debian Bug report #599221,
regarding postfix: 'header_sender' doesn't work with canonical_maps or 
sender_canonical_maps (pcre)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
599221: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599221
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: postfix
Version: 2.5.5-1.1
Severity: normal

Hi,

I've been trying to rewrite 'From:' addresses with the pattern 
<u...@[ip_address]>
with <[email protected]>. I've found that this does work as expected, meaning 
that
the 'Return-Path:' header is correctly rewrited with the new email address:
| canonical_classes = envelope_sender
| canonical_maps = pcre:/etc/postfix/canonical_maps

or 

| sender_canonical_classes = envelope_sender
| sender_canonical_maps = pcre:/etc/postfix/sender_canonical_maps


But the 'header_sender' directive has no effect on the "From:" headers with any 
of
these configurations:
| canonical_classes = header_sender
| canonical_maps = pcre:/etc/postfix/canonical_maps

or 

| sender_canonical_classes = header_sender
| sender_canonical_maps = pcre:/etc/postfix/sender_canonical_maps

Also, using the default values for the canonical_classes and 
sender_canonical_classes
will replace only the "Return-Path:" header.

A simple description by example between these two you can find here:
http://www.mail-archive.com/[email protected]/msg03063.html


This is not a problem with 'postfix' in squeeze (v2.7.1-1). Maybe you can
help to identify the bug and if the fix is not intrussive it could be
backported for the next Lenny point release (5.0.7?).

Thanks


-- System Information:
Debian Release: 5.0.6
  APT prefers stable
  APT policy: (990, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages postfix depends on:
ii  adduser           3.110                  add and remove users and groups
ii  debconf [debconf- 1.5.24                 Debian configuration management sy
ii  dpkg              1.14.29+b1             Debian package management system
ii  libc6             2.7-18lenny4           GNU C Library: Shared libraries
ii  libdb4.6          4.6.21-11              Berkeley v4.6 Database Libraries [
ii  libsasl2-2        2.1.22.dfsg1-23+lenny1 Cyrus SASL - authentication abstra
ii  libssl0.9.8       0.9.8g-15+lenny8       SSL shared libraries
ii  lsb-base          3.2-20                 Linux Standard Base 3.2 init scrip
ii  netbase           4.34                   Basic TCP/IP networking system
ii  ssl-cert          1.0.23                 simple debconf wrapper for OpenSSL

postfix recommends no packages.

Versions of packages postfix suggests:
ii  bsd-mailx [mail-re 8.1.2-0.20071201cvs-3 A simple mail user agent
pn  libsasl2-modules   <none>                (no description available)
pn  postfix-cdb        <none>                (no description available)
pn  postfix-ldap       <none>                (no description available)
pn  postfix-mysql      <none>                (no description available)
ii  postfix-pcre       2.5.5-1.1             PCRE map support for Postfix
pn  postfix-pgsql      <none>                (no description available)
pn  procmail           <none>                (no description available)
pn  resolvconf         <none>                (no description available)
pn  sasl2-bin          <none>                (no description available)
pn  ufw                <none>                (no description available)

-- debconf information excluded



--- End Message ---
--- Begin Message ---
Version: 2.7.1-1

On Tue, Oct 5, 2010 at 10:41 PM, Teodor <[email protected]> wrote:
> [..]
> Also, using the default values for the canonical_classes and 
> sender_canonical_classes
> will replace only the "Return-Path:" header.

I've found that I missed this postfix directive in configuration:
  local_header_rewrite_clients = static:all

This is documented in postconf(5) under canonical_maps but not on
sender_canonical_maps. Not a bug in postfix, thus closing this bug
report.


> This is not a problem with 'postfix' in squeeze (v2.7.1-1).

I take that back. I was testing from localhost thus the reason it was
working. Nothing has changed in v.27 regarding this topic.

Thanks


--- End Message ---

Reply via email to