Building Postfix Mail Server in linux redhat6.5
Postfix is an e-mail server created by Wietse Venema, a Dutch researcher at the IBM Watson Research Center (T.J. Watson Research Center) to improve the sendmail mail server. It first appeared in the late 1990s as an open source software.
The experiment requires:
Software packages postfix (send and transmit mail), dovecot (accept mail) bind (DNS parsing)
Experimental objectives:
Enable zhangsan lisi accounts to send emails to each other through postfix
1: install DNS and edit named.conf
2: edit named.rfc1912.zones
3: copy named.localhost named benet.com.zone
Edit benet.com.zone
4: edit / etc/postfix/main.cf (the system generally comes with rpm installation) inet_interfaces = all / / IP address of the listening service / / # inet_interfaces = localhost plus # comment myhostname = mail.benet.com / / mail server hostname / / mydomain = benet.com / / email domain name / / myorigin = $mydomain / / sender address email domain name / / mydestination = $mydomain $myhostname / / recipient address email domain name / / home_mailbox = Maildir/ email location / /
5: restart the postfix service to install the dovecot package (receive mail)
6: edit dovecot .conf
Protocols = imap pop3 lmtp / / enable protocol / / login_trusted_networks = 192.168.100.0swap 24 / / specify the network segment where the server is located / /
7: edit / etc/dovecot/conf.d/10-mail.conf mail_location = maildir:~/Maildir / / Open the location and format of the mailbox / / (remove #) restart the dovecot service
8: create a group mailusers
Create accounts zhangsan, lisi and join the mailusers group
Set the password for zhangsan and lisi
9: test postfix email (send email to lisi using zhangsan) telnet 192.168.100.101 25 helo mail.benet.com mail from:zhangsan@benet.com rcpt to:lisi@benet.com data subject:hello lisi my name is zhangsan
10: test postfix mail reception (log in to lisi to view mail sent by zhangsan) telnet143 port ends: OVER telnet mail.benet.com 110 user lisi pass 123456 list retr 1 quit
11: go to windows7 to test and prepare 2 windows7, one login zhangsan, one login lisi download Foxmail installation package installation > manually configure your account password and server IP login zhangsan and lisi account to test