This GW site hosts mail for 2 domains

Is there a way for a user to on-the-fly change their return address ?

eg:
domains abc.com, def.com ...
user is g@abc.com

user wants to change return address on some e-mails to g@def.com