Skip to main content

install mailman 2.x on FreeBSD 8.2-RELEASE

Install and configure mailman 2.x on FreeBSD 8.2-RELEASE

 

1. cd /usr/ports/mail/mailman

2. make install && make clean

   [X] POSTFIX   for use with postfix

 

3. installs to /usr/local/mailman.

 

----------------------------------------------------------------------------
Mailman has been installed, but requires further configuration before use!

You will have to configure both your MTA (mail server) and web server to
integrate with Mailman.  If the port's documentation has been installed,
extensive post-installation instructions may be found in:

  /usr/local/share/doc/mailman/FreeBSD-post-install-notes

Note (1):  If you use an alternate (non-Sendmail) MTA, you MUST be sure
that the correct value of MAIL_GID was used when this port or package
was built.  Performing a "make config" in the Mailman port directory
you can choose your MTA with the correct MAIL_GID.

Note (2):  The entire Mailman installation resides under /usr/local/mailman
The command-line scripts necessary to administer Mailman have been
installed in /usr/local/mailman/bin

Note (3):  As of version 2.1, Mailman's queue runner runs as a daemon and
is started by a script in /usr/local/etc/rc.d

In order to make private archives searchable with namazu2, you need copy
or link /usr/local/libexec/namazu.cgi to
/usr/local/mailman/archives/private/<ML name>/ and configure .namazurc
to refer to /usr/local/etc/namazu/namazu-sample.
See also
http://www.python.jp/pipermail/mailman-users-jp/2004-August/001008.html
written in Japanese.
----------------------------------------------------------------------------

Your Postfix hostname is non-default.
You must add "SMTPHOST = mail.your_host.com" to the bottom of mm_cfg.py.
 

4. edit /usr/local/mailman/Mailman/mm_cfg.py

add:

##################################################
# Put YOUR site-specific settings below this line.
MTA = "Postfix"

DEFAULT_EMAIL_HOST = 'your_host.com'
DEFAULT_URL_HOST = 'www.your_host.com'
VIRTUAL_HOSTS.clear()
#add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
add_virtualhost('www.your_host.com','your_host.com')
OWNERS_CAN_DELETE_THEIR_OWN_LISTS=yes
VERP_CONFIRMATIONS = Yes
~
 

 

5. edit postfix main.cf

add:

#  Added For Mailman
#
alias_maps=hash:/usr/local/etc/postfix/aliases,
        hash:/usr/local/mailman/data/aliases
alias_database=hash:/usr/local/etc/postfix/aliases
#
# End Edit Add

 

I also sim link these to etc/mail/aliases

ln -s /etc/mail/aliases /usr/local/etc/postfix/aliases

setup and configure.

run check_perms -f

run newlist

set mmsitepass

/usr/local/etc/rc.d/mailman onestart

test it out..

browse to www.YourSite.com/mailman

add mailman_enable="YES"  to rc.conf
 

No votes yet