Mail fowarding

Whats required in nginx to setup just a fowarding SMTP and IMAP (and
POP3?)
proxy, no extra authentication is needed we just want to foward it on
like a
reverse proxy. I found the documentation on the area particularly hard
to
comprehend.