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

247597Re: Finding the envelope-sender after always_bcc? (SOLVED)

Expand Messages
  • Wietse Venema
    Jan 2, 2009
      Jeff Weinberger:
      [ Charset ISO-8859-1 unsupported, converting... ]
      > On Jan 2, 2009, at 2:30 AM, mouss wrote:
      >
      > > Jeff Weinberger a ?crit :
      > >>
      > >> I used a pcre: table for smtpd_sender_restrictions and the PREPEND
      > >> action as follows:
      > >>
      > >> main.cf:
      > >> smtpd_sender_restrictions = check_sender_access
      > >> pcre:/etc/postfix/smtpd_sender_restrictions.pcre
      > >>
      > >> smtpd_sender_restrictions.pcre
      > >> /^(.*)/ PREPEND X-Envelope-Sender: ${1}
      > >>
      > >> this will insert into every message a header "X-Envelope-Sender: "
      > >> followed by the envelope sender value. It won't pass the
      > >> envelope-sender as SMTP MAIL FROM (dspam wasn't designed to do that,
      > >
      > > dspam gets it via LMTP MAIL FROM, and it will pass it back to postfix
      > > with SMT MAIL FROM. I have used this in the past and I'm sure others
      > > are
      > > using it now (ping steve?). something in your setup prevents this from
      > > working but I don' think it is a dspam limitation.
      >
      > It's definitely my set up. I don't use LMTP to pass the message to
      > dspam, I use a transport called "dspam" that uses pipe. That means
      > there's no S/LMTP dialog, just the message itself passed as STDIN.

      If you can show what you've configured to pass mail into dspam,
      then perhaps someone can tell you how to get that envelope sender
      address into dspam, too.

      Wietse
    • Show all 28 messages in this topic