Sendmail and Openwebmail Construction under Linux server Emai
First, Sendmail configuration installed
//————————- Main program sendmail mail server and configuration tools ————— ———-//
# Rpm-ivh sendmail -
# Rpm-ivh m4 -
# Rpm-ivh sendmail-cf -
# Rpm-ivh sendmail-doc -
/ / Simple configuration
# Vi / etc / mail / sendmail.cf
Port O DaemonPortOptions = = smtp, Addr = 127.0.0.1, Name = MTA
Port O DaemonPortOptions = = smtp, Addr = 127.0.0.1, Name = MTA / / Add sentence
/ / Start the server
# Service sendmail start
/ / Sendmail whether to activate the test
# Pstree | grep sendmail
| -2 * [Sendmail] / / said that the successful launching
//————————- IMAP protocol - POP3 protocol modules ————— ——-//
# Rpm-ivh imap
/ / Imap modify the configuration and pop3
# Vi / etc/xinetd.d/ipop3
Disable = yes to disable = no
# Vi / etc / xinetd.d / imap
Disable = yes to disable = no
# Vi / etc/xinetd.d/ipop2
Disable = yes to disable = no
# Vi / etc/xinetd.d/pop3s
Disable = yes to disable = no
# Vi / etc / xinetd.d / imaps
Disable = yes to disable = no
/ / Restart xinetd
# Service xinetd restart
//————————- Continue to sendmail configuration ———— local-host-names — ——-//
# Vi / etc / mail / local-host-names
/ / As follows
Nihao.dlut.edu.cn
Nihao.dlut.edu.cn
Localhost
Localhost.localdomain
[127.0.0.1]
[202.118.75.92] / / Note: nihao.dlut.edu.cn IP address is 202.118.75.92
# Service sendmail restart / / restart sendmail
//————————– Modify access documents ——————- ——————–//
/ / The contents of the documents are as follows
Localhost.localdomain RELAY
Localhost RELAY
127.0.0.1 RELAY
Nihao.dlut.edu.cn OK
263.com RELAY
163.com RELAY
# Cd / etc / mail
# Makemap hash access.db <access / / Generation Database
/ / Add User
ID # useradd
# Passwd user name / / set up passwords
///////////////////////////////// End configuration now SendMail ///////////// /////////////////////////////
Second, the installation configuration OpenMail
//——————————- Next configuration Web interface OpenMail —— —– ————————-//
/ / Open WebMail installation requirements:
/ / 1, the Web server CGI support; 2, Perl 5.005 above (the need for suid perl support), 3, CGI.pm-2.74.tar.gz (if necessary);
/ / 4, MIME-Base64-2.12.tar.gz (if necessary), 5, libnet-1.0901.tar.gz (if necessary); 6, Text-Iconv-1.2.tar.gz (necessary).
/ / 2.1 package installed CGI.pm
Cd / tmp
Tar-zxvf CGI.pm-2.74.tar.gz
Cd CGI.pm-2.74
Perl Makefile.PL
Make
Make install
/ / MIME 2.2 installation kit-Base64
Cd / tmp
Tar-zxvf MIME-Base64-2.12.tar.gz
Cd MIME-Base64-2.12
Perl Makefile.PL
Make
Make install
/ / 2.3 package installed libnet
Cd / tmp
Tar-zxvf libnet-1.0901.tar.gz
Cd libnet-1.0901
Perl Makefile.PL / / Note: ans' no 'if asked to update configuration)
Make
Make install
/ / Perl-2.4 installed Text-Iconv
Rpm-Uvh - force perl-Text-Iconv-1.2-RH80.i386.rpm
/ / Perl 2.5-installed CGI
Rpm-Uvh - force perl-CGI-2.752-34.99.6.i386.rpm
/ / 2.6 installation suidperl
Rpm-Uvh - force perl-suidperl -
//——————————– Install Open WebMail ————- ———————//
# Rpm-ivh openwebmail-2.32-1.i386.rpm
/ / Page document will be moved to / var / www / html directory.
# Mv / var / www / data / openwebmail / var / www / html /
# Cd / var / www / cgi-bin / openwebmail
#. / Openwebmail-tool.pl - init / / initialization Open WebMail
# / Etc / init.d / xinetd restart / / server restart
In the browser browser http://your_server_hostname/cgi-bin/openwebmail/openwebmail.pl test
Netstat-l can be used to view port order Detection
Tags: sendmail








0 Comments to “Sendmail and Openwebmail Construction under Linux server Emai”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.