add mail support for DragonFly and OpenBSD

using the `mail` method as for FreeBSD/Darwin