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

274379Re: virtual_alias_maps and X-Original-To

Expand Messages
  • Wietse Venema
    Feb 18, 2011
    • 0 Attachment
      Wietse Venema:
      > > ??Thanks again Viktor.
      > > It sounds a bit more in depth than I was hoping for. Given the _only_ func
      > >-tion for this alias is to forward to one address, would it be possible to do
      > >- a simpler approach??
      >
      > If it is only for one special case,
      >
      > /etc/postfix/main.cf
      > smtpd_recipient_restrictions =
      > permit_mynetworks
      > ...
      > reject_unauth_destination
      > ...
      > check_recipient_access hash:/etc/postfix/recipient_access
      >
      > /etc/postfix/recipient_access:
      > user@... PREPEND: X-Original-To: username@...
      >
      > If it is for EXIM emulation:
      >
      > /etc/postfix/main.cf
      > smtpd_recipient_restrictions =
      > permit_mynetworks
      > ...
      > reject_unauth_destination
      > ...
      > check_recipient_access pcre:/etc/postfix/recipient_access.pcre
      >
      > /etc/postfix/recipient_access.pcre:
      > /(.+)/ PREPEND: X-Envelope-To: $1
      >
      > Either way, if mail has multiple recipients, then they will see
      > the prepended message header.

      Perhaps you want to place the check_recipient_access before the
      permit_mynetworks, so that the header is also prepended applies
      when local client send mail.

      Wietse
    • Show all 11 messages in this topic