I don’t like writing long posts so let’s go straight to the point. Here is a shar to test mail/opensmtpd on FreeBSD. Read the comments in the Makefile. Also this is just a preview. The port isn’t complete (I haven’t checked the conflicts yet and it doesn’t update mailer.conf).
For sample configs, have a look there.