You are on page 1of 3

Relatedly Mailman Installation

yum In installed Mailman Is because the old version to install from source.
[root @ centos ~] # yum-y install python-devel   ←   mailman needed to install python-devel to install
 
[root @ centos ~] # groupadd mailman   ←   mailman Group add
 
[root @ centos ~] # useradd-c "GNU Mailman"-s /sbin/nologin-m-g mailman mailman   ←   mailman users add
 
[root @ centos ~] # usermod-d /usr/local/mailman mailman   ←   mailman user home directory changes
 
[root @ centos ~] # mkdir /usr/local/mailman   ←   mailman installation directory creation
 
[root @ centos ~] # chown mailman... /usr/local/mailman   ←   mailman installation directory owner change
 
[root @ centos ~] # chmod a+rx, g+ws /usr/local/mailman   ←   mailman installation path directory ー mission change
 
[root @ centos ~] # cd/tmp /   ← Directory move
 
[root @ centos tmp] # wget http://mm.tkikuchi.net/mailman-2.1.13.tgz   ←   mailman Download
 
※ Latest version of URL Is Download page In verifying
 
[root @ centos tmp] # tar zxvf mailman-2.1.13.tgz   ←   mailman deployment
 
[root @ centos tmp] # chown-r mailman... mailman-*   ←   mailman destination directory owner change
 
[root @ centos tmp] # cd mailman-*   ←   mailman moving to the deployment directory
 
[root @ centos mailman-2.1.13 # su mailman-s "/bin/bash"-c"generally--with-cgi-gid = apache"   ←   configure
 
[root @ centos mailman-2.1.13 # su mailman-s "/bin/bash"-c "make" && make install   ← installation
 
[root @ centos mailman-2.1.13] # cd /usr/local/mailman /   ←   mailman move to the installation directory
 
※ System character set is UTF-8 Of the Poderosa Of encoding euc-jp To be
 
-f [root @ centos mailman #./bin/check_perms   ← permission correction script execution



/usr/local/mailman/messages/zh_TW: Directory permissions is 02775 Must ( Being modified )
Warning: private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
Problematic : 59
To fix 修正するには -f Applying the option mailman Or root Of rights do
 
[root @ centos mailman #./bin/check_perms   ← permission correction confirmation
Warning: private archive directory is other-executable (o+x).
This could allow other users on your system to read private archives.
If you're on a shared multiuser system, you should consult the
installation manual on how to fix this.
Safely   ← check "no problem"
 
※ System character set is UTF-8 Of the Poderosa Of encoding UTF-8 To restore
 
[root @ centos mailman] # cd   ← go home directory
 
[root @ centos ~] # rm-rf /tmp/mailman-* /   ←   mailman remove the deployment directory
 
[root @ centos ~] # rm-f /tmp/mailman-2.1.13.tgz   ← downloaded mailman to remove
 
Relatedly Mailman Setting

(1) Mailman Setting


[root @ centos ~] # vi /usr/local/mailman/Mailman/mm_cfg.py   ←   mailman configuration file editing
##################################################
# Put YOUR site-specific settings below this line.
Add the following
DEFAULT_URL_HOST = 'centossrv.com'   ←   Web specify server name
DEFAULT_EMAIL_HOST = 'centossrv.com'   ← specify the mail server name
add_virtualhost DEFAULT_URL_HOST-DEFAULT_EMAIL_HOST   ← Add
MTA = 'Postfix'   ← mail server specified
DEFAULT_SERVER_LANGUAGE = 'en'   ← Japan language of
DEFAULT_URL_PATTERN = 'https: //%s/mailman/'   ←   Web interface to https = SSL to be
DEFAULT_LIST_ADVERTISED = no   ← mailing list to private
OWNERS_CAN_DELETE_THEIR_OWN_LISTS = Yes   ← mailing lists for Web to be removed on
DEFAULT_SUBJECT_PREFIX = "% (real_name) s: %%d "   ← subject to article № to add
DEFAULT_REPLY_GOES_TO_LIST = 1   ← rather than by a reply-to to list
DEFAULT_NEW_MEMBER_OPTIONS = 258   ← to avoid sending mail to the person who posted
DEFAULT_GENERIC_NONMEMBER_ACTION = 2   ← rejection response to the mail from non-member
 
※ System character set is UTF-8 Of the Poderosa Of encoding euc-jp To be
 
[root @ centos ~] # /usr/local/mailman/bin/mmsitepass Password ← Mailing list server administration password setting
Password changed ...
 
※ System character set is UTF-8 Of the Poderosa Of encoding UTF-8 To restore
 
[root @ centos ~] # crontab-u mailman /usr/local/mailman/cron/crontab.in   ←   mailmanCRON setting

(2) aliases Setting


[root @ centos ~] # /usr/local/mailman/bin/genaliases   ←   aliases file creation
 
[root @ centos ~] # chown mailman... /usr/local/mailman/data/aliases *   ←   aliases file owner change
 
[root @ centos ~] # chmod g+w /usr/local/mailman/data/aliases *   ←   aliases file permissions change
 
[root @ centos ~] # vi /etc/postfix/main.cf   ←   postfix configuration file editing
# ALIAS DATABASE
#
# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent. The default list is system dependent.
#
# On systems with NIS, the default is to search the local alias
# database, then the NIS alias database. See aliases (5) for syntax
# details...
#
# If you change the alias database, run "postalias /etc/aliases" (or
# wherever your system stores the mail alias file), or simply run
# "newaliases" to build the necessary DBM or DB file.
#
# It will take a minute or so before changes become visible. Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm: /etc/aliases
alias_maps = hash: /etc/aliases

alias_maps = hash: /etc/aliases , hash: /usr/local/mailman/data/aliases   ←   mailman of aliases Add file
 
[root @ centos ~] # /etc/rc.d/init.d/postfix restart   ←   Postfix restart
Shutting down postfix: OK
Starting postfix: OK

(3) Web Server settings


[root @ centos ~] # vi /etc/httpd/conf.d/mailman.conf   ←   mailman for web server settings file new
ScriptAlias /mailman / usr / local / mailman / cgi-bin /
< directory /usr/local/mailman/cgi-bin / > >
SSLRequireSSL
AllowOverride None
Options ExecCGI
Order allow, deny
Allow from all
< /Directory >
Alias /pipermail / usr / local / mailman / archives / public /
< directory /usr/local/mailman/archives/public / > >
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow, deny
Allow from all
< /Directory >
 
[root @ centos ~] # cp /usr/local/mailman/icons / * /var/www/icons /   ←   mailman copy to the appropriate directory
for logfile
 
[root @ centos ~] # /etc/rc.d/init.d/httpd reload   ←   web server settings reflect
httpd To reload while : OK
 
Relatedly Administrative mailing list (mailman) Create

※ System character set is UTF-8 Of the Poderosa Of encoding euc-jp To be


 
[root @ centos ~] # /usr/local/mailman/bin/newlist mailman   ← Administrative mailing list (mailman) create
List administrator's email address please enter : mailman-owner@centossrv.com   ←   mailman mailing list administrator email
response
mailman 'S initial password :   ←   mailman mailing list administrative password response ( appear )
Then To press mailman 'S email notifications to the administrator ...   ← empty ENTER
 
[root @ centos ~] # /usr/local/mailman/bin/config_list-I /usr/local/mailman/data/sitelist.cfg mailman   ←  
mailman mailing list preferences
Repair standard value : personalize
 
※ System character set is UTF-8 Of the Poderosa Of encoding UTF-8 To restore
 
Relatedly Mailman Launch

[root @ centos ~] # cp /usr/local/mailman/scripts/mailman /etc/rc.d/init.d/   ←   mailman startup script to copy to


the given directory
 
[root @ centos ~] # /etc/rc.d/init.d/mailman start   ←   mailman launch
 
[root @ centos ~] # chkconfig-add mailman   ←   mailman automatic startup settings
 
[root @ centos ~] # chkconfig mailman on   ←   mailman automatic startup settings
 
Relatedly Mailman Confirmation

※ Example as test "To create a mailing list

You might also like