вот мой Makefile
в портах /usr/ports/mail/vpopmail
# New ports collection makefile for: vpopmail
# Date created: 21 Sep 2000
# Whom: Neil Blakey-Milner
#
# $FreeBSD: ports/mail/vpopmail/Makefile,v 1.39 2003/11/27 21:59:00 roam Exp $
#
PORTNAME= vpopmail
PORTVERSION= 5.3.30
PORTREVISION= 0
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= roam@FreeBSD.org
COMMENT= Easy virtual domain and authentication package for use with qmai
l
BUILD_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail \
${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_REINPLACE= YES
${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
GNU_CONFIGURE= YES
USE_GMAKE= YES
USE_REINPLACE= YES
USE_PERL5_BUILD= YES
VCFGDIR?= ${WRKDIR}/vcfg
VCFGFILES?= inc_deps lib_deps tcp.smtp
CONFIGURE_ENV+= VCFGDIR="${VCFGDIR}"
CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_DIR} \
--enable-tcprules-prog=${LOCALBASE}/bin/tcprules \
--enable-tcpserver-file=${PREFIX}/vpopmail/etc/tcp.smtp
#
# User-configurable variables
#
# Define these to change from the default behaviour
#
# WITH_PASSWD - allow authentication off /etc/passwd
# WITHOUT_MD5_PASSWORDS - store encrypted passwords in MD5 format
#WITH_CLEAR_PASSWD - store passwords in plaintext
WITH_CLEAR_PASSWD=y
# WITH_LEARN_PASSWORDS - enable learning passwords during pop auth
#WITH_MYSQL - allow authentitation via mysql
WITH_MYSQL=y
#WITH_MYSQL_REPLICATION - enables MySQL database replication
#WITH_MYSQL_LIMITS - enables the MySQL mailbox limit code
# WITH_SYBASE - allow authentication via Sybase (NOT TESTED!)
# WITH_ORACLE - allow authentication via Oracle (NOT TESTED!)
#WITH_VALIAS - enable valias processing
WITH_VALIAS=y
# WITHOUT_ROAMING - disallow roaming users
#WITH_IP_ALIAS - enables IP aliasing
WITH_IP_ALIAS=y
#WITH_QMAIL_EXT=y - enables qmail-like user-* address extesions processing
# WITHOUT_FILE_LOCKING - disable file locking
# WITH_FILE_SYNC - enables immediate synching (may decrease performance)
# WITHOUT_USERS_BIG_DIR - disables using big directories for users
# WITHOUT_SEEKABLE - disables vdelivermail's attempt to make its input seekable
#WITH_DOMAIN_QUOTAS - enable domain quotas
WITH_DOMAIN_QUOTAS=y
#WITH_SPAMASSASSIN=y - enable SpamAssassin checks before Maildir delivery
#
# Set these to the values you'd prefer
#
# HARDQUOTA - size of hard quota, or 'n' for no hard quota
HARDQUOTA=n
# RELAYCLEAR - time in minutes before clearing relay hole (requires roaming)
RELAYCLEAR=10
# SPAM_THRESHOLD - minimum score required to delete spam messages (requires spamassassin)
# DEFAULT_DOMAIN - default domain for non-vhost lookups
DEFAULT_DOMAIN=мойдомен.ru
#WITH_SINGLE_DOMAIN - optimize for a site with many users in a single domain
WITH_SINGLE_DOMAIN=y
# LOGLEVEL - n - no logging, y - log all,
# e - log errors, p - log passwords in errors,
# v - verbose success and errors with passwords
LOGLEVEL=e
# WITHOUT_AUTH_LOG - disables authentication logging
и т.д. далее
делаешь
make all install clean
и потом настраиваешь как описано в документации - создаешь домен, алиасы к нему если нужно, юзверей.