You can try it and see. Should work if the gmail is set up okay.
I cannot remember now if formmail lets you set up remote email. Maybe you will have to use a DH alias email address first and forward to gmail.
Opinions are my own views, not DreamHosts'.
I am NOT a DreamHost employee OK!! :@
You act on my advice at your own risk!