Saturday, July 27, 2013

Mail server using Postfix on CentOS 6.4 - 2



Part 4
l Chapter 9 Mailing List with Mailman
l Chapter 10 Webmail with SquirrelMail 
l Chapter 11 Postfix monitoring with Mailgraph

Chapter 9  Mailing List with Mailman

1. Mailman?
a. a popular open source package for managing e-mail discussion lists.
b. offering flexible administrative interfaces for setting up and managing lists
c. has Webbased interfaces that make it easy for people to join lists, access discussion list archives, and tune their own preferences.

2.Mailman Configuration
a. Installation of Mailman
# yum install mailman ; rpm –qa | grep mailman
# service httpd restart
b. Create a password for your site as follows:
# /usr/lib/mailman/bin/mmsitepass

c. # vi /usr/lib/mailman/Mailman/mm_cfg.py
DEFAULT_EMAIL_HOST = ‘chul.com’
DEFAULT_URL_HOST  = ‘www.chul.com’
MTA = 'Postfix'
d. Edit /etc/httpd/conf.d/mailman.conf
RedirectMatch ˆ /mailman[/]*$ /mailman/listinfo

e. Check for updates and permissions
# /usr/lib/mailman/bin/update
# /usr/lib/mailman/bin/check_perms –f
f. Create Mailman aliases and aliases database
# /usr/lib/mailman/bin/genaliases
# ls –l /etc/mailman/ailas*
g. Create the mailman site list and set up the aliases:
# /usr/lib/mailman/bin/newlist  mailman
Enter the email of the person running the list: tland@chul.com
Initial mailman password: tland1234
# /usr/lib/mailman/bin/rmlist –a mailman

h. Integrate Mailman and Postfix
# vi /etc/postfix/main.cf
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
i. Using Mailman
# service httpd restart ;  service mailman start
http://www.chul.com/mailman/

3. Mailman Testing
a. Creating mailing list – check new list in URL
     http://www.chul.com/mailman/listinfo/
b. Setup Default Options for each mail list
    http://www.chul.com/mailman/admin/test
      Send filters — Who can post messages to the list? Is the list moderated or
  unmoderated?
      Membership management —members see other member information?
policies for adding and removing members?
c. User registration to a new mail list as a new subscriber
    http://www.chul.com/mailman/listinfo/test
d. Privacy Options - confirm or require approval by Mailing list administrator
l      Confirm  check a new subscriber’s email
l      Require Approval – check an administrator’s email
e. Posting mail to all mailing list users
    mail to test@chul.com

Chapter 10 Webmail with SquirrelMail
1.SquirrelMail?
§  a standards-based webmail package written in PHP
§  includes built-in pure PHP support for the IMAP and SMTP protocols
§  all pages render in pure HTML 4.0 for maximum compatibility across browsers.
§  has very few requirements and easy to configure and install
§  has all the functionality as an email client, including strong MIME support, address books, spell checker, templates and them and folder manipulation.
§  http://squirrelmail.org
2. Download and install package
# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# rpm -ivh epel-release-6-8.noarch.rpm
# rpm –qa | grep httpd php perl
# yum install squirrelmail ; rpm –qa | grep squirrelmail
# service httpd restart
3. Configuring PHP (/etc/php.ini) for file attachment
file_uploads = On
upload_max_filesize = 5M
4. Configuring SquirrelMail
a. Webserver configuration
# vi /etc/httpd/conf.d/squirrelmqil.conf
<Directory /usr/share/squirrelmail>
 Options Indexes FollowSymLinks
 RewriteEngine  on
 AllowOverride All
 DirectoryIndex index.php
 Order allow,deny
 Allow from all
 RewriteCond    %{HTTPS} !=on
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 </Directory>
# service httpd restart
https://localhost/webmail/src/configtest.php
b. SquirrelMail Configuration
# /usr/share/squirrelmail/config/conf.pl
1. Organization Preferences
2. Server Settings
# cat /etc/squirrelmail/config.php
http://www.chul.com/webmail/
5. Adding SquirrelMail Plugins
a. Download plugins
http://squirrelmail.org/plugins
b. Move plugins to squirrelmail directory
# mv plugins /usr/share/squirrelmail/plugins
c. Start configuration file
#/usr/share/squirrelmail/config/conf.pl

Chapter 11 Postfix Monitoring with Mailgraph
1. Mailgraph?
§  a very simple mail statistics RRDtool frontend for Postfix and Sendmail
§  produces daily, weekly, monthly and yearly graphs of received/sent and bounced/rejected mail.
2. Download and install package
# yum install mailgraph
# vi /etc/httpd/conf.d/mailgraph.conf
# service httpd restart
# service mailgraph start
# ls –l /var/lib/mailgraph
# chkconfig mailgraph on
3. Access mailgraph
http://www.chul.com/mailgraph


No comments:

Post a Comment