Teach you how to set up a Linux mail server postfix

Source: Internet
Author: User
Tags auth dovecot

  1. Check if Linux has Postfix and Dovecot installed

    The check command is as follows:

    Rpm-qa |grep postfix;

    Rpm–qa |grep Dovecot;

    If no data is displayed indicating that no installation is required, download the software installation online;

  2.  

    Modify the computer name:

    # vi /etc/ Sysconfig/network  

    Modify hostname=linuxmail.cn

     

  3.  

    Modify the Send server configuration file:

    1.  # vim  /ETC/POSTFIX/MAIN.CF  

    2.  113 inet_interfaces = all        #  on which interface to provide service   

    3.  414 home_mailbox = maildir/       #邮件存储位置和格式  

     

  4.  

    To modify the configuration file for the receiving server:

    1. # vim/etc/dovecot/dovecot.conf

    protocols = IMAP POP3 LMTP # support Post Office Protocol

    2. # vim/etc/dovecot/conf.d/10-auth.conf

    Disable_plaintext_auth = no# Allow plaintext password authentication

    3. # vim/etc/dovecot/conf.d/10-ssl.conf

    SSL = no # disabled S

    4. # vim/etc/dovecot/conf.d/10-mail.conf

    mail_location = maildir:~/maildir # message storage format and location

    5. # Vim/etc/pam.d/dovecot

    Auth Required pam_nologin.so

    Auth include System-auth

    Account include System-auth

    Sesssion include System-auth

  5.  

    Restart the service

    service postfix  Restart

    service dovecot restart

     

  6. Build User: User attribute preferably set to Nologin;

  7. 7

    Linux Mail Service is set up, client settings can be done;

Teach you how to set up a Linux mail server postfix

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.