Sendmail mailbox server configuration

  
Sendmail server simple configuration First, sendmail introduction Second, Sendmail installation steps 1. Installation required software: sendmail m4 (automatic conversion tool) These two have been installed by default, just install sendmail-cf this The package can be, the role of this package is to convert into an easy to understand configuration. 2.rpm -ivh sendmail-cf-8.13.8-2.el5.i386.rpm Install service sendmail stat
us View status netstat
-tupln
| grep
25 Check if the port is enabled 3.ll /home Check which users are under /home 4.useradd
user1 Create a user 5.echo "123" | passwd
--stdin user1 Create a password for this user 6. Send a message to user1 with the root user of the system as shown below. Figure 7. Server]# su
- user1 switches to user1 user, Mail view mail can be root@localhost8. The address of this situation is the loopback address of the machine 127.0.0.1, and other clients can not send mail at all, if any client can send mail to it, you need to change the configuration file. As shown in the figure, you can't connect 9.[root@localhost ~]# vi /etc/mail/sendmail.mc
To change the contents of the configuration file at line 116: DAEMON_OPTIONS(`Port=smtp,Addr=0.0. 0.0, Name=MTA') The dnl address can be changed to 0.0.0.0, saved, and restarted. As shown in the figure, the connection has been successful. 10. In this case, any user can send mail to the server. There is no authentication and no encryption, so a lot of spam is caused. It can be encrypted with third-party software. three. A case mail server configuration 1. Install dns and various software packages needed, how to install it. 2. The main configuration is the important three files (1) /etc/mail/mails
endmail.mc(2)/etc/mail/access (the file to be relayed) (3)/Etc/mail/local-host-names (local domain) 3. Change the host name to note the file (1) /etc /sysconfig /network HOSTNAME = mail.163.com (change this content) (2) /etc /Hosts delete the original name. 4. Configure dns (1) cd
/var/named/chroot/etc/vi named.conf Change all to any (2) vi named.rfc1912. Zones (3)[root@localhost etc]# cd ../var/named/(4)[root@localhost named]# cp
-p localhost.zone 163.com.zone Then edit this file (5) cp -p named.local 192.168.1.local Edit this file (6) vi /etc/resolv.conf Change dns to the local server (7) Check (8) vim /etc/mail/local-host -names Edit local domain Add the following two lines 163.commail.163.com(9) To successfully receive mail and install dovecot Install dependencies with yum (10)[root@localhost Server]# yum install dovecot-1.0.7 -7.el5.i386.rpm chkconfig
dovecot on Machine start (11) configure the client's loutlook
As follows, test the sending mailbox (12) on the current client to test whether the dns is normal, it should be noted that the client's dns point to a server that must be 1.100 ( 13) Switch users to view the sending status (14) To achieve communication between the two mailbox servers, in addition to the basic configuration, you need to pay attention to some problems, because the server does not forward and does not relay in the default state. (15) Assume that the two servers are 163.com and sina.com (16). On the 163..com server, you need to modify /var/named/chroot/etc/named.conf to add forwarders {ip in twenty-eight lines. Address (address on sina.com); } also modify at sina.com (17) also modify the relay file /etc/mail/access (18) add 163.com ok sina.com RELAY at 163.com Sina.com makes the same changes.
Copyright © Windows knowledge All Rights Reserved