Hello,

we are trying to solve a mail problem on the New Zealand Red Cross
mail server, which is sending confirmation messages for earthquake
donations from an invalid address, e.g.

  postfix/smtp[26060]: 44B9C100CA13: to=<madd...@madduck.net>,
  relay=b.mx.madduck.net[213.203.238.82]:25, delay=10,
  delays=0.01/0/6.8/3.3, dsn=4.1.8, status=deferred (host
  b.mx.madduck.net[213.203.238.82] said: 450 4.1.8
  <www-d...@rredxprdww02.netspace.net.nz>: Sender address rejected:
  Domain not found (in reply to RCPT TO command))

I wanted to approach this using a canonical rewriting map:

  root@redxprdww02:/etc/postfix# grep sender_rewrite main.cf
  sender_canonical_maps = hash:/etc/postfix/sender_rewrite

  root@redxprdww02:/etc/postfix# cat sender_rewrite
  www-d...@redxprdww02.netspace.net.nz www-d...@redcross.org.nz
  www-d...@netspace.net.nz www-d...@redcross.org.nz

  root@redxprdww02:/etc/postfix# postconf
  local_header_rewrite_clients
  local_header_rewrite_clients = permit_inet_interfaces

  root@redxprdww02:/etc/postfix# postconf inet_interfaces
  inet_interfaces = all

Unfortunately, this seems to have no effect: messages submitted to
localhost:25 or via sendmail do not get their senders rewritten.

What am I missing?

masquerade_domains works, btw, but that yields @netspace.net.nz when
we want @redcross.net.nz. Also, canonical mapping should happen
before domains are masqueraded
(http://www.postfix.org/ADDRESS_REWRITING_README.html#overview).

Thanks,
Martin

PS: the easy solution would be to add a DNS record, but admins in
.nz are now asleep and I'd prefer to solve this within the next 12
hours.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
"durch frauen werden die höhepunkte des lebens bereichert
 und die tiefpunkte vermehrt."
                                                 - friedrich nietzsche
 
spamtraps: madduck.bo...@madduck.net

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to