How to create an email address on a linux box?

You might want to try postfix instead, it may be easier. You will have
to read the postfix manuals and how toos though. There are rails
samples that make use of postfix.