分类:
2006-10-31 15:58:13
cd /usr/ports/mail/mailman && make MAIL_GID=mailman CGI_GID=vmail install clean |
ee /etc/rc.conf |
echo mailman_enable="YES" |
touch /usr/local/mailman/data/aliases
touch /usr/local/mailman/data/virtual-mailman |
ee /usr/local/etc/postfix/main.cf |
owner_request_special = no
recipient_delimiter = +
unknown_local_recipient_reject_code = 550alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf,hash:/usr/local/mailman/data/virtual-mailman |
chown -R mailman:mailman /usr/local/mailman/data/aliases* chown -R mailman:mailman /usr/local/mailman/data/virtual-mailman* chmod 664 /usr/local/mailman/data/aliases*
chmod 664 /usr/local/mailman/data/virtual-mailman*
postalias /usr/local/mailman/data/aliasespostmap /usr/local/mailman/data/virtual-mailman postfix reload |
ee /usr/local/mailman/Mailman/mm_cfg.py |
MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['domain1.com','domain2.com']
DEFAULT_SERVER_LANGUAGE = 'zh_CN'add_virtualhost('domain1.com','domain2.com') |
/usr/local/mailman/bin/genaliases |
/usr/local/mailman/bin/mmsitepass |
/usr/local/mailman/bin/newlist mailman |
/usr/local/mailman/bin/check_perms /usr/local/mailman/bin/check_perms -f |
/usr/local/etc/rc.d/mailman start |
# config for mailman ScriptAlias /mailman "/usr/local/mailman/cgi-bin"AllowOverride None Options none Order allow,deny Allow from all Alias /pipermail "/usr/local/mailman/archives/public" AllowOverride None Options +FollowSymlinks Order allow,deny Allow from all |