I don't have any announcement lists set up to subscribe like this, so this is not the voice of experience speaking.
It looks like you're missing backslashes from the end of all your variables that Dreamhost wants.
For instance, the kbase on announcement lists says you should look like:
and you look like:
I know someone who recently set up a list like this and they have backslashes on all their variables and the script works.