On Fri, Feb 25, 2011 at 09:35:20AM +0100, martin f krafft wrote: > 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:
Why not just set "myorigin" correctly? > root@redxprdww02:/etc/postfix# grep sender_rewrite main.cf > sender_canonical_maps = hash:/etc/postfix/sender_rewrite Don't waste time with sender_canonical_maps, use either canonical_maps or smtp_generic_maps if setting myorigin to the desired domain is not an option. -- Viktor.