Webmail Mail Server SETUP-problem-Email sending, recipient cannot receive

Source: Internet
Author: User
Tags imap dovecot email account squirrelmail
# Setting up a webmail Mail Server #1. Disable sendmail installed by default in the system: [root @ red4 ~] # Service Sendmail stop Disable sendmail: [failure] [root @ red4 ~] # [Root @ red4 ~] # Chkconfig -- level 35 Sendmail off [root @ red4 ~] # [Root @ red4 ~] # Chkconfig -- list sendmailsendmail 0: Close 1: Close 2: Close 3: Close 4: Close 5: Close 6: Close [root @ red4 ~] #2. Install the mail service package [root @ red4 ~] # Yum list | grep postfixthis system is not registered with RHN. RHN support will be disabled. postfix. i386 2. 3.3-2.1.el5 _ 2 rhel5 postfix-pflogsumm.i386. 3.3-2.1.el5 _ 2 rhel5 [root @ red4 ~] # Yum install-y Postfix #3. modify the configuration file [root @ red4 ~] # Cd/etc/Postfix/[root @ red4 Postfix] # lsaccess generic main. cf master. cf post-install transportbounce. cf. default header_checks main. cf. default postfix-files relocated virtualcanonical license makedefs. out postfix-script tls_license [root @ red4 ~] # Vim main. cf 1 myhostname = mail.163.com 2 mydomain = 163.com 3 myorigin = $ mydomain 4 inet_interfaces = 192.168.101.104, 127.0.0.1 5 mydestination = $ myhostname, $ mydomain 6 home_mailbox = maildir/#4. start Service [root @ red4 Postfix] # service Postfix start Postfix: [OK] [root @ red4 Postfix] #5. view the Service's process name and listening port # Note: Here we are looking for <master> [root @ red4 Postfix] # netstat-utnap | grep mastertcp 0 0 192.168.101.104: 25 0.0.0.0: * Listen 13370/Master TCP 0 127.0.0.1: 25 0.0.0.0: * Listen 13370/Master [root @ red4 Postfix] #6. postfix uses the local system account as the email account <passwd = 111> [root @ red4 Postfix] # useradd userone [root @ red4 Postfix] # passwd useronechanging password for user userone. new Unix Password: Bad password: it is way too shortretype new Unix Password: passwd: All authentication tokens updated successfully. [root @ red4 Postfix] # useradd us Ertwo [root @ red4 Postfix] # passwd usertwochanging password for user usertwo. new Unix Password: Bad password: it is way too shortretype new Unix Password: passwd: All authentication tokens updated successfully. [root @ red4 Postfix] #7. install the software package that provides the email receiving service # Note: If a dependency error is prompted, install <mysql> and <Perl> [root @ red4 Postfix] # Yum list | grep dovecotthis system is not registered with RHN. RHN support will be disabled. dovecot. i386 1.0.7-7. EL5 rhel5 [root @ red4 Postfix] # Yum install-y Dovecot #8. modify the Dovecot configuration file [root @ red4 Postfix] # Cat/etc/Dovecot. conf | grep "mail_location = maildir :~ /Maildir "# mail_location = maildir :~ /Maildir [root @ red4 Postfix] # Cat/etc/Dovecot. conf | grep protocols # protocols = IMAP IMAPs POP3 pop3s [root @ red4 Postfix] #9. start service \ view port [root @ red4 Postfix] # service Dovecot start Dovecot IMAP: [OK] [root @ red4 Postfix] # netstat-utnap | grep dovecottcp 0 ::: 993: * Listen 13537/Dovecot TCP 0: 995: * Listen 13537/Dovecot TCP 0: 110 ::: * Listen 13537/Dovecot TCP 0: 143: * Listen 13537 /Dovecot [root @ red4 Postfix] #10. install the Web Client Program # Note: The PHP dependency may be prompted. You need to install <PHP-mbstring> [root @ red4 Postfix] # Yum list | grep squirrelmailthis system is not registered with RHN. RHN support will be disabled. squirrelmail. noarch 1.4.8-5. el5_4.10 rhel5 [root @ red4 Postfix] # Yum install-y squirrelmail #11. enable HTTPd service [root @ red4 Postfix] # service httpd restart stop httpd: [OK] Start httpd: [OK] [root @ red4 Postfix] # modify squirrel [Root @ red4 Postfix] # Vim/etc/squirrelmail/config. PHP #26 $ squirrelmail_default_language = 'zh _ cn'; #59 $ default_charset = 'utf-8'; #12. open the browser for testing # Note: After opening fails, check your DNS configuration to see if it is correct. # Use the created <userone> <usertwo> user to log on. login <root> the user logon does not know why? # Q2. can log on, use <userone> login, to send an email to <usertwo@mail.wing.com> # <usertwo> not receive, why? ######################################## ####### Mail System DNS configuration ############################# ################# 1. Modify the named. conf [root @ red4 etc] # PWD/var/named/chroot/etc [root @ red4 etc] # cat named. conf options {directory "/var/named" ;}; zone "wing.com" in {type master; file "wing.com. zone ";}; zone" 101.168.192.in-ADDR. ARPA. "In {type master; file" mail.com. ARPA ";};# 2. create wing.com. zone [root @ red4 named] # PWD/var/named/chroot/var/named [root @ red4 named] # Cat wing.com. zone $ TTL 7200wing.com. in SOA dns.wing.com. root.wing.com. (20130606 1 h 15 m 1 W 1D) in NS dns.wing.com.dns.wing.com. in a 192.168.101.20.mail.wing.com. in a 192.168.101.20.wing.com. in MX 10 mail.wing.com. #3. test [root @ red4 named] # host mail.wing.commail.wing.com has address 192.168.101.104 [root @ red4 named] # host login has address 192.168.101.104 [root @ red4 named] # [root @ red4 named] # host -t ptr 192.168.101.102.164.101.168.192.in-ADDR. ARPA Domain Name Pointer dns.wing.com. 104.101.168.192.in-ADDR. ARPA Domain Name Pointer mail.wing.com. [root @ red4 named] # [root @ red4 named] # NSLookup> set type = Mx> wing. comserver: 127.0.0.1address: 127.0.0.1 #53 wing.com mail exchanger = 10 mail.wing.com.> set type = PTR> 192.168.101.20.server: 127.0.0.1address: 127.0.0.1 #53 104.101.168.192.in-ADDR. ARPA name = mail.wing.com. 104.101.168.192.in-ADDR. ARPA name = dns.wing.com.> set type = A> mail. wing. comserver: 127.0.0.1address: 127.0.0.1 #53 name: mail. wing. comaddress: 192.168.101.104>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.