in reply to Help with getpwnam - and what it returns..
Insure that the following shell command:
$ id mail [download]
Good luck.