Hi, Hi,
I there is a another way to integrate mailman and web-cyradm:
Scripts attached here.
To create or delete mailman lists you would only run one line, like:
/usr/lib/mailman/bin/mailman-newlist.pl [EMAIL PROTECTED]
[EMAIL PROTECTED]
Configuring MAILMAN:
1) run /usr/lib/mailman/bin/check_perms -f
2)
a) In the Apache:
vi /etc/apache2/default-server.conf (add these lines):
##################
##
## mailman
##
ScriptAlias /mailman/ "/usr/lib/mailman/cgi-bin/"
<Directory "/usr/lib/mailman/cgi-bin/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Alias /pipermail/ "/var/lib/mailman/archives/public/"
<Directory "/var/lib/mailman/archives/public">
AddDefaultCharset Off
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# Redirect queries to /mailman to the listinfo page (recommended)
RedirectMatch /mailman[/]*$ http://mail.your.domain.com/mailman/listinfo
##
## end mailman
##
##################
b) cp /usr/lib/mailman/icons/* /usr/share/apache2/icons/
c) vi /usr/lib/mailman/Mailman/mm_cfg.py (make sure this line is like this):
IMAGE_LOGOS = '/icons/'
3) copy mailman-newlist.pl and mailman-dellist.pl to /usr/lib/mailman/bin
and run
# chmod 755 /usr/lib/mailman/bin/mailman-newlist.pl
4) vi /usr/lib/mailman/Mailman/mm_cfg.py (add this line, it is sitewide
list):
MAILMAN_SITE_LIST = 'mailman'
4a) vi /usr/lib/mailman/Mailman/mm_cfg.py (add these lines, by default turn
archiving off and make archive private,
also make the replys go to the list)
DEFAULT_REPLY_GOES_TO_LIST = 1
DEFAULT_ARCHIVE = Off
DEFAULT_ARCHIVE_PRIVATE = 1
5)
a) vi /etc/postfix/main.cf (make sure this line looks like this):
alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
Note:
you may also add thes lines to main.cf:
# Mailman stuff #
owner_request_special = no
recipient_delimiter = +
# End of Mailman stuff
b)Initialize aliases file:
/usr/lib/mailman/bin/genaliases
c) chown mailman:mailman /var/lib/mailman/data/aliases*
6-7) Now create widesite list
# /usr/lib/mailman/bin/mailman-newlist.pl [EMAIL PROTECTED]
[EMAIL PROTECTED]
8) Configure widesite list:
# /usr/lib/mailman/bin/config_list -i /var/lib/mailman/data/sitelist.cfg
mailman
Non-standard property restored: personalize
9) Set up cron:
# cd /usr/lib/mailman/cron/
# crontab -u mailman crontab.in
10) Now start it and go to the web interface to check it:
# insserv mailman
# /etc/init.d/mailman start
11) # vi /usr/lib/mailman/Mailman/mm_cfg.py (Edit the following line to
correspond with your mail domain):
DEFAULT_EMAIL_HOST = 'some.domain.com'
12) To fix the URL of any existing list run (for example for mailman list):
# /usr/lib/mailman/bin/withlist -l -r fix_url mailman
13) Create 'site password':
# /usr/lib/mailman/bin/mmsitepass secret
14) Create 'list creator' password:
# /usr/lib/mailman/bin/mmsitepass -c secret2
15) Create your first mailing list.
*********************************************************
That’s it.
Best Regards,
Leon Kolchinsky
mailman-newlist.pl
Description: Binary data
mailman-dellist.pl
Description: Binary data
_______________________________________________ This mailing list is hosted and supported by bit-heads GmbH | http://www.bit-heads.ch _______________________________________________ Web-cyradm mailing list [email protected] http://www.web-cyradm.org/mailman/listinfo/web-cyradm
