On 8/16/2012 4:12 PM, li...@sbt.net.au wrote:
> On Fri, August 17, 2012 7:02 am, Ralf Hildebrandt wrote:
> 
>>
>> Rewrite using virtual_alias_maps, then (after you edited
>> virtual_alias_maps &/ postmapped it), requeue using postsuper -r ID
> 
> Ralf,
> 
> thanks
> 
> I have it in mysql, so I would need to do like domain.tld to domain.tld.au
> entry ?

Yes, that would be OK.  If it's too much trouble to put them in your
SQL map, you can (temporarily) add a hash: map.
# main.cf
virtual_alias_maps = sql:...  hash:/etc/postfix/virtual_alias

> 
> as there is only two, both from same sender, might be easier to kill them
> and, telephone the sender...

Your decision.  Or you can add a transport entry to fail the bad
domain and return it to the sender.
# transport
domain.tld  error:5.1.2 try @domain.tld.au instead



  --  Noel Jones



> 
> thanks again
> 
> # cat mysql_virtual_alias_maps.cf
> user = aaa
> password = xxx
> hosts = 127.0.0.1
> dbname = ppp
> table = alias
> select_field = goto
> where_field = address
> 
> 
> 

Reply via email to