Loading ...
Sorry, an error occurred while loading the content.
 

Re: sender_canonical doesn't work completly

Expand Messages
  • Peer Heinlein
    ... static:all hasn t worked too. Peer -- Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel: 030 / 405051-42 Fax: 030
    Message 1 of 4 , Apr 17, 2013
      Am 17.04.2013 23:31, schrieb Wietse Venema:
      > Peer Heinlein:
      >> local_header_rewrite_clients = permit
      >
      > I don't recall that "permit" is valid in this context.

      static:all hasn't worked too.

      Peer



      --
      Heinlein Support GmbH
      Schwedter Str. 8/9b, 10119 Berlin

      http://www.heinlein-support.de

      Tel: 030 / 405051-42
      Fax: 030 / 405051-19

      Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht
      Berlin-Charlottenburg,
      Geschäftsführer: Peer Heinlein -- Sitz: Berlin
    • Wietse Venema
      ... It rewrites both envelope sender and header sender, as expected. Perhaps you have another address rewriting stage down-stream of the cleanup server. Wietse
      Message 2 of 4 , Apr 17, 2013
        Peer Heinlein:
        > Am 17.04.2013 23:31, schrieb Wietse Venema:
        > > Peer Heinlein:
        > >> local_header_rewrite_clients = permit
        > >
        > > I don't recall that "permit" is valid in this context.
        >
        > static:all hasn't worked too.

        It rewrites both envelope sender and header sender, as expected.
        Perhaps you have another address rewriting stage down-stream
        of the cleanup server.

        Wietse

        $ postconf header_checks sender_canonical_maps sender_canonical_classes
        header_checks = static:hold
        sender_canonical_maps = hash:/tmp/sender_canonical
        sender_canonical_classes = envelope_sender, header_sender
        $ postmap -s hash:/tmp/sender_canonical
        foo@... bar@...
        $ sendmail -f foo@... <<EOF whatever
        ? From: FOO <foo@...>
        ? To: Whatever <whatever>
        ?
        ? blah blah
        EOF
        $ mailq
        -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
        3F6BCAC2958! 303 Wed Apr 17 19:23:13 bar@...
        whatever@...

        -- 0 Kbytes in 1 Request.
        $ postcat -q 3F6BCAC2958
        *** ENVELOPE RECORDS hold/3F6BCAC2958 ***
        ...
        named_attribute: rewrite_context=local
        ...
        sender: bar@...
        ...
        recipient: whatever@...
        *** MESSAGE CONTENTS hold/3F6BCAC2958 ***
        Received: by hades.porcupine.org (Postfix, from userid 0)
        id 3F6BCAC2958; Wed, 17 Apr 2013 19:23:13 -0400 (EDT)
        From: FOO <bar@...>
        To: Whatever <whatever@...>
        Message-Id: <20130417232313.3F6BCAC2958@...>
        Date: Wed, 17 Apr 2013 19:23:13 -0400 (EDT)

        blah blah
        *** HEADER EXTRACTED hold/3F6BCAC2958 ***
        *** MESSAGE FILE END hold/3F6BCAC2958 ***
      Your message has been successfully submitted and would be delivered to recipients shortly.