That setup seems to only be useful for a local setup (i.e. a laptop with only one user) because you are setting up a single username/password for the gmail smtp server. You would only be able to send mail from a single gmail address, or am I missing something?