Sendmail and OpenWebmail build the EMAI server under Linux

zhaozj2021-02-16  80

First, install configuration Sendmail

// ------------------------ Mail Server Main Program Sendmail and Configuration Tool --------------- ---------- //

# rpm -ivh sendmail-

8.12.8

-4.i386.rpm

#rpm -ivh m4-

1.4.1

-13.i386.rpm

# rpm -ivh sendmail-cf-

8.12.8

-4.i386.rpm

# rpm -ivh sendmail-doc-

8.12.8

-4.i386.rpm

// Simple configuration

#vi /etc/mail/sendmail.cf

O daemonportOptions = port = SMTP, addr = 127.0.0.1, name = MTA

O daemonportOptions = port = SMTP, addr = 127.0.0.1, name = mta // Add this sentence

// Start the server

#service sendmail start

// Test if Sendmail starts

#pstree | GREP Sendmail

| -2 * [sendmail] // means successful startup

// ------------------------- IMAP protocol --- POP3 protocol module --------------- ------- //

# rpm -ivh imap

-2001A

-18.i386.rpm

/ / Modify the configuration of IMAP and POP3

#vi /etc/xinetd.d/ipop3

Disable = yes change to disable = no

#vi /etc/xinetd.d/imap

Disable = yes change to disable = no

#vi /etc/xinetd.d/iPop2

Disable = yes change to disable = no

#vi /etc/xinetd.d/pop3s

Disable = yes change to disable = no

#vi /etc/xinetd.d/imaps

Disable = yes change to disable = no

/ / Restart xinetd

#service xinetd Restart

// ------------------------ Continue to configure Sendmail ---------- Local-Host-Names --- ------- //

#vi / etc / mail / local-host-names

// The content is 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's IP address is 202.118.75.92

#service sendmail restart // Restart Sendmail

// -------------------------- Modify Access file ------------------- -------------------- //

// The file content is as follows

Localhost.localdomain relay

Localhost relays

127.0.0.1 relay

Nihao.dlut.edu.cn ok

263.com relays

163.com relays

#CD / ETC / MAIL

#makemap hash access.db

# useradd username

#passwd username // Set its password

/ 至 至 This sendmail configuration end //

Second, install configuration OpenMail

// ------------------------------ Next Configure the web interface ----- Openmail ------ ------------------------- //

// Open Webmail installation requirements:

// 1 Support CGI's Web Server; 2, Perl 5.005 or more (Suid Perl Support); 3, CGI.PM-2.74.tar.gz (necessary);

//4, mime-base64-2.12.tar.gz (necessary); 5, libnet-1.0901.tar.gz (necessary); 6, Text-iconv-1.2.tar.gz (necessary).

//2.1 Install CGI.PM Suite

CD / TMP

Tar -zxvf cgi.pm-2.74.tar.gz

CD cgi.pm-2.74

Perl makefile.pl

Make

Make Install

//2.2 Install MIME-BASE64 Kit

CD / TMP

Tar -zxvf mime-base64-2.12.tar.gz

CD MIME-BASE64-2.12

Perl makefile.pl

Make

Make Install

//2.3 Install the libnet kit

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

//2.4 Install Perl-Text-iconV

RPM -UVH --force Perl-text-iconv-1.2-rh80.i386.rpm

//2.5 Installing Perl-CGI

RPM-Eva --force Perl-CGI-2.752-34.99.6.i386.rpm

//2.6 Install SUIDPERL

RPM -UVH --force Perl-SuidperL-

5.8.0

-55.i386.rpm

// -------------------------------- Install Open Webmail ------------- --------------------- //

# rpm -ivh openwebmail-2.32-1.i386.rpm

// Move the web file 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 // Restart the server

Browse http: //your_server_hostname/cgi-bin/openwebmail/openwebmail_hostname/cgi-bin/openwebmail/openwebmail.pl

You can use the NetStat -l command to view the detection of the port.

转载请注明原文地址:https://www.9cbs.com/read-12331.html

New Post(0)