CentOS7安装Postfix

  • A+
所属分类:运维教程

Postfix的简介

是一种电子邮件服务器,它是由任职于IBM华生研究中心的荷兰籍研究员Wietse Venema为改良sendmail邮件服务器而产生的。最早在1990年代晚期出现,是个开放源代码的软件。

Postfix的安装

# yum -y install postfix

Postfix的配置

# vim /etc/postfix/main.cf
  1. myhostname = mail.birdteam.net
  2. #邮局系统的主机名
  3. mydomain = birdteam.net
  4. #邮局系统域名
  5. myorigin = $mydomain
  6. #从本机发出邮件的域名名称
  7. inet_interfaces = all
  8. #监听网卡接口
  9. mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
  10. #可接收邮件的主机名或域名
  11. mynetworks = 127.0.0.0/8192.168.7.0/240.0.0.0/0
  12. #设置可转发哪些主机的邮件
  13. relay_domains = $mydestination
  14. #设置可转发哪些网域的邮件
  15. home_mailbox = Maildir/
  16. #使用邮箱目录
  17. smtpd_sasl_type = dovecot
  18. smtpd_sasl_path = private/auth
  19. smtpd_sasl_auth_enable = yes
  20. smtpd_sasl_security_options = noanonymous
  21. smtpd_sasl_local_domain = $myhostname
  22. smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject

Dovecot的安装

# yum -y install dovecot

Dovecot的配置

# vim /etc/dovecot/dovecot.conf
  1. protocols = imap pop3 lmtp
  2. listen = *
# vim /etc/dovecot/conf.d/10-auth.conf
  1. disable_plaintext_auth = no
  2. auth_mechanisms = plain login
# vim /etc/dovecot/conf.d/10-mail.conf
  1. mail_location = maildir:~/Maildir
# vim /etc/dovecot/conf.d/10-master.conf
  1. unix_listener /var/spool/postfix/private/auth {
  2.     mode = 0666
  3.     user = postfix
  4.     group = postfix
  5. }
# vim /etc/dovecot/conf.d/10-ssl.conf
  1. ssl = no

Dovecot的启动

# systemctl start dovecot
  • 问答中心
  • 微信小程序扫一扫
  • weinxin
  • 微信公众
  • 微信公众号扫一扫
  • weinxin

发表评论取消回复

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:196   其中:访客  196   博主  0

    • avatar Fortnite V-Bucks Generator for XBox One

      https://charity.gofundme.com/o/en/campaign/blast-to-top
      https://charity.gofundme.com/o/en/campaign/harvest-all-the-bucks

      • avatar tik tok followers hack online free

        https://criticism.english.illinois.edu/sites/criticism.english.illinois.edu/files/webform/%E2%80%A2%E2%80%A2Free%20TikTok%20Fans%20and%20Likes.pdf
        https://criticism.english.illinois.edu/sites/criticism.english.illinois.edu/files/webform/%E2%80%A2Free-TikTok-Followers-Generator%20_Free-TikTok-Fans-and-Likes.pdf
        https://criticism.english.illinois.edu/sites/criticism.english.illinois.edu/files/webform/%E2%80%A2Free%20TikTok%20Fans%20and%20Likes%20Booster.pdf
        https://criticism.english.illinois.edu/sites/criticism.english.illinois.edu/files/webform/%E2%80%A2Free-TikTok-Followers-and-Likes.pdf

        • avatar roblox free robux for android

          https://charity.gofundme.com/o/en/campaign/the-bux-source
          https://charity.gofundme.com/o/en/campaign/40r0buxfree97
          https://charity.gofundme.com/o/en/campaign/44getfreer0buxgen07

          • avatar fortnite free v bucks generator

            https://charity.gofundme.com/o/en/campaign/45dailyfreevbucks564
            https://charity.gofundme.com/o/en/campaign/714freevbuckscodes076
            https://charity.gofundme.com/o/en/campaign/95freevbuck5gen00
            https://charity.gofundme.com/o/en/campaign/v-for-bucks-victory

            • https://charity.gofundme.com/o/en/campaign/57freetikt0kfanslikes23
              https://charity.gofundme.com/o/en/campaign/27freetikt0kfollower510

              • avatar free tiktok followers hack tool

                https://charity.gofundme.com/o/en/campaign/67freetikt0kfanslik3s
                https://charity.gofundme.com/o/en/campaign/nsdfgvrtfx
                https://charity.gofundme.com/o/en/campaign/fame-and-popularity-vidz
                https://charity.gofundme.com/o/en/campaign/tik-sikat-ka-na-t0k