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

Re: multiple copies delivered

Expand Messages
  • mouss
    ... this is not a virtual alias. this looks like a local alias. for virtual aliases, specify the full address (with the domain part) and do not use a : .
    Message 1 of 5 , Jun 30, 2011
    • 0 Attachment
      Le 29/06/2011 01:07, Jay G. Scott a écrit :
      > Hello,
      >
      > This machine has a list of legitimate users but does not deliver
      > mail locally. (It's a mail gateway.)
      >
      > Presently user schumi gets copies of his mail delivered to three
      > systems. The three destinations are listed in virtual_alias_maps.
      >
      > schumi: schumi@..., schumi@..., schumi@...

      this is not a virtual alias. this looks like a "local" alias. for
      virtual aliases, specify the full address (with the domain part) and do
      not use a ':'.

      >
      > By management fiat, mail that is addressed incorrectly to
      > schumi@...
      > should be delivered to schumi@.... It is, but
      > I get multiple copies. recipient_canonical_maps:
      >
      > /^schumi@.*\.arlut\.utexas\.edu$/ schumi@...

      why use canonical? use a virtual alias instead.

      >
      > From the logs I see that the alias gets expanded into three,
      > and then canonicalized, so that each target gets three copies of the
      > email.

      virtual_alias_maps =
      ...
      hash:/path/to/valias.hash
      pcre:/path/to/valias.pcre

      == valias.hash
      # single line follows
      schumi@... schumi@...,
      schumi@..., schumi@...

      schumi@... schumi@...
      schumi@... schumi@...
      schumi@... schumi@...

      == valias.pcre
      /^scuhmi@.*\.arlut\.utexas\.edu$/ schumi@...


      >
      > Obviously, I want to get rid of the duplicates.
      >
      > For outgoing mail I must avoid MX lookups as part of my
      > load balancing and fault tolerance, so I must set relayhost.
      > Only the official mail servers have MX records in DNS, so any
      > other machines that accept mail must be listed in the transport_maps.
      >
      >
      > postconf -n
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.