Bo's Oracle Station

查看: 3375|回复: 0

postfix和dovecot配置

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-3-7 19:32:13 | 显示全部楼层 |阅读模式
mail_arch.png

postfix:/etc/postfix/main.cf:

  1. [root@station90 postfix]# grep -v '^#'  main.cf | grep -v '^


  2. queue_directory = /var/spool/postfix
  3. command_directory = /usr/sbin
  4. daemon_directory = /usr/libexec/postfix
  5. data_directory = /var/lib/postfix
  6. mail_owner = postfix
  7. myorigin = $mydomain
  8. inet_interfaces = all
  9. inet_protocols = all
  10. mydestination = $myhostname, localhost.$mydomain, localhost, example.com, something.net
  11. unknown_local_recipient_reject_code = 550
  12. mynetworks = 192.168.0.0/24, 127.0.0.0/8
  13. alias_maps = hash:/etc/aliases
  14. alias_database = hash:/etc/aliases

  15.   
  16. debug_peer_level = 2
  17. debugger_command =
  18.          PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  19.          ddd $daemon_directory/$process_name $process_id & sleep 5
  20. sendmail_path = /usr/sbin/sendmail.postfix
  21. newaliases_path = /usr/bin/newaliases.postfix
  22. mailq_path = /usr/bin/mailq.postfix
  23. setgid_group = postdrop
  24. html_directory = no
  25. manpage_directory = /usr/share/man
  26. sample_directory = /usr/share/doc/postfix-2.6.6/samples
  27. readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
  28. smtpd_recipient_restrictions= hash:/etc/postfix/access2,
  29.                               permit_mynetworks,
  30.                               permit_sasl_authenticated,
  31.                               reject_unauth_destination
  32. smtpd_sender_restrictions= hash:/etc/postfix/access,
  33.                               permit_mynetworks,
  34.                               permit_sasl_authenticated,
  35.                               reject_unauth_destination
  36. [root@station90 postfix]#
复制代码


dovecot配置:
/etc/dovecot/dovecot.conf:
  1. login_trusted_networks =  192.168.0.0/24
  2. dict {
  3.   #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
  4.   #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
  5. }
  6. !include conf.d/*.conf
复制代码
/etc/dovecot/conf.d/10-mail.conf:

  1. mail_location = mbox:~/mail:INBOX=/var/mail/%u
复制代码
建用户:
  1. [root@station90 ~]# passwd   testzhang3
  2. 更改用户 testzhang3 的密码 。
  3. 新的 密码:
  4. 无效的密码: 它基于字典单词
  5. 无效的密码: 过于简单
  6. 重新输入新的 密码:
  7. passwd: 所有的身份验证令牌已经成功更新。
  8. [root@station90 ~]# su - testzhang3
  9. [testzhang3@station90 ~]$ mkdir -p  mail/.imap/INBOX
  10. [testzhang3@station90 ~]$
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-20 17:23 , Processed in 0.026954 second(s), 27 queries .

快速回复 返回顶部 返回列表