|
postfix:/etc/postfix/main.cf:
- [root@station90 postfix]# grep -v '^#' main.cf | grep -v '^
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- mail_owner = postfix
- myorigin = $mydomain
- inet_interfaces = all
- inet_protocols = all
- mydestination = $myhostname, localhost.$mydomain, localhost, example.com, something.net
- unknown_local_recipient_reject_code = 550
- mynetworks = 192.168.0.0/24, 127.0.0.0/8
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
-
-
- debug_peer_level = 2
- debugger_command =
- PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
- ddd $daemon_directory/$process_name $process_id & sleep 5
- sendmail_path = /usr/sbin/sendmail.postfix
- newaliases_path = /usr/bin/newaliases.postfix
- mailq_path = /usr/bin/mailq.postfix
- setgid_group = postdrop
- html_directory = no
- manpage_directory = /usr/share/man
- sample_directory = /usr/share/doc/postfix-2.6.6/samples
- readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
- smtpd_recipient_restrictions= hash:/etc/postfix/access2,
- permit_mynetworks,
- permit_sasl_authenticated,
- reject_unauth_destination
- smtpd_sender_restrictions= hash:/etc/postfix/access,
- permit_mynetworks,
- permit_sasl_authenticated,
- reject_unauth_destination
- [root@station90 postfix]#
复制代码
dovecot配置:
/etc/dovecot/dovecot.conf:
- login_trusted_networks = 192.168.0.0/24
- dict {
- #quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
- #expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
- }
- !include conf.d/*.conf
复制代码 /etc/dovecot/conf.d/10-mail.conf:
- mail_location = mbox:~/mail:INBOX=/var/mail/%u
复制代码 建用户:
- [root@station90 ~]# passwd testzhang3
- 更改用户 testzhang3 的密码 。
- 新的 密码:
- 无效的密码: 它基于字典单词
- 无效的密码: 过于简单
- 重新输入新的 密码:
- passwd: 所有的身份验证令牌已经成功更新。
- [root@station90 ~]# su - testzhang3
- [testzhang3@station90 ~]$ mkdir -p mail/.imap/INBOX
- [testzhang3@station90 ~]$
复制代码
|
|