Hi,
I've finally successfully installed Mailman on my Zentyal box. As requirement you must have a sub-domain dedicated to yours mailing lists (ex:
lists.domain.com).
Edit: This sub-domain
can not must be referred as a
Virtual domain aliase in the Zential web administration (if not, you'll see
Relay access denied in mail log).
This has been tested on a system
without Zarafa installed. If you do have Zarafa installed further tests must be done.
There're quite a lots of files to modify. So let's go step-by-step...
First of all, install mailman package:
$ sudo aptitude install mailman
Create the required
mailman list:
$ newlist mailman
Check your mailman installation (check permission file) :
$ cd /usr/lib/mailman
$ sudo bin/check_perms
if there are errors, type :
$ sudo bin/check_perms –f
Create the file
/etc/apache2/conf.d/mailman-apache.conf#------------------------------------------------------------
# mailman
#------------------------------------------------------------
# We can find mailman here
ScriptAlias /cgi-bin/mailman /usr/lib/cgi-bin/mailman
# And the public archives:
Alias /pipermail/ /var/lib/mailman/archives/public/
Alias /mailman/public /var/lib/mailman/archives/public
# Logos:
Alias /images/mailman/ /usr/share/images/mailman/
# Redirect to mailman start page
RedirectMatch ^/mailman[/]*$ /cgi-bin/mailman/listinfo
<Directory /usr/lib/cgi-bin/mailman>
Options ExecCGI
AllowOverride None
order deny,allow
deny from all
allow from all
</Directory>
<Directory /var/lib/mailman/archives/public>
Options Indexes Includes FollowSymLinks
order deny,allow
deny from all
allow from all
</Directory>
<Directory /usr/share/images/mailman/>
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Next, modify mailman configuration. Here are the relevant parameters:
/etc/mailman/mm_cfg.pyDEFAULT_EMAIL_HOST = 'lists.domain.com'
DEFAULT_URL_HOST = 'lists.domain.com'
[...]
MTA='Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.domain.com']
Postfix must now be informed that we're going to use mailman. We have to modify the stubs files of Zential:
/usr/share/ebox/stubs/mail/main.cf.mas[...]
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
[...]
virtual_alias_maps = ldap:valiases, hash:/var/lib/mailman/data/virtual-mailman
[...]
# Mailman
owner_request_special = no
mailman_destination_recipient_limit = 1
transport_maps = hash:/etc/postfix/transport
And:
/usr/share/ebox/stubs/mail/transport.mas[...]
lists.domain.com mailman:
Force the templates to be redeployed by restarting the Mail on the Zential dashboard.
You can now create your own mailing list via the web interface (http://.../mailman) or with the command line
newlist.
Feedbacks are welcome!!!
