Hi,

when user+...@example.com gets forwarded to an external address through
virtual_alias_maps, the local part "+foo" is being kept.

This causes problems with e.g. GMX, which then bounces the mail, since
they consider "+foo" to be part of the username (and that does not exist).

Now I'm wondering if I should use "propagate_unmatched_extensions =
canonical" (removing "virtual") or a different approach, like
smtp_generic_maps and rewrite it there, e.g. only for gmx.net.

I've tried the latter and it appears to work, using the following regexp
map for smtp_generic_maps:
  if /@gmx\.\w+$/
  /^(.*?)\+([...@]+)(@.*)$/ $1$3
  endif

However, when using "sendmail -bv" to test it, I get the original
recipient address in the notification email:
<user+te...@gmx.de> (expanded from <user+te...@example.com>): delivery via
    mx0.gmx.net[213.165.64.100]:25: 250 2.1.5 ok {mx009}

Is this supposed to be this way? Apparently GMX gets the email without
the local part and I think the map might apply later then the address
for the is generated/kept.

Anyway, is smtp_generic_maps a good way to solve this?

I'm using Postfix 2.5.1-2ubuntu1.2.


Thanks,
Daniel

-- 
http://daniel.hahler.de/

Reply via email to