- 论坛徽章:
- 0
|
我的邮件日志如下- Nov 28 14:31:18 mail dovecot: auth: mysql: Connected to localhost (postfix)
- Nov 28 14:31:19 mail dovecot: imap-login: Login: user=<fsl@fsl.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1403, secured
- Nov 28 14:31:19 mail dovecot: imap(fsl@fsl.com): Disconnected: Logged out bytes=148/1475
- Nov 28 14:31:20 mail dovecot: imap-login: Login: user=<fsl@fsl.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1405, secured
- Nov 28 14:31:20 mail dovecot: imap(fsl@fsl.com): Disconnected: Logged out bytes=148/1475
- Nov 28 14:31:24 mail dovecot: pop3-login: Disconnected (auth failed, 1 attempts): method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
- Nov 28 14:31:24 mail postfix/smtpd[1407]: connect from localhost[::1]
- Nov 28 14:31:24 mail postfix/smtpd[1407]: 75EEA22E6C: client=localhost[::1]
- Nov 28 14:31:24 mail postfix/cleanup[1414]: 75EEA22E6C: message-id=<df2f527b2252972418bc89e4eeddf0b1.squirrel@10.0.0.191>
- Nov 28 14:31:24 mail postfix/qmgr[1338]: 75EEA22E6C: from=<fsl@fsl.com>, size=700, nrcpt=1 (queue active)
- Nov 28 14:31:24 mail postfix/smtpd[1407]: disconnect from localhost[::1]
- Nov 28 14:31:24 mail postfix/virtual[1417]: 75EEA22E6C: to=<fsl@fsl.com>, relay=virtual, delay=0.15, delays=0.11/0.03/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
- Nov 28 14:31:24 mail postfix/qmgr[1338]: 75EEA22E6C: removed
- Nov 28 14:31:28 mail dovecot: imap-login: Login: user=<fsl@fsl.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1419, secured
- Nov 28 14:31:28 mail dovecot: imap(fsl@fsl.com): Disconnected: Logged out bytes=611/459
- Nov 28 14:31:28 mail dovecot: imap-login: Login: user=<fsl@fsl.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1421, secured
- Nov 28 14:31:28 mail dovecot: imap(fsl@fsl.com): Disconnected: Logged out bytes=309/3727
- [root@mail ~]#
复制代码 我在这个目录下发现我的邮件,- [root@mail new]# pwd
- /var/vmail/fsl.com/fsl.com/fsl/new
- [root@mail new]# ll
- 总用量 28
- -rw------- 1 vmail vmail 2885 11月 27 17:56 1417082206.Vfd00I22ec4M300308.mail.dktest.com
- -rw------- 1 vmail vmail 735 11月 28 13:42 1417153326.Vfd00I23102M71539.mail.dktest.com
- -rw------- 1 vmail vmail 739 11月 28 14:16 1417155412.Vfd00I2310aM465017.mail.dktest.com
- -rw------- 1 vmail vmail 745 11月 28 14:17 1417155451.Vfd00I23111M393924.mail.dktest.com
- -rw------- 1 vmail vmail 735 11月 28 14:19 1417155587.Vfd00I2310fM761379.mail.dktest.com
- -rw------- 1 vmail vmail 748 11月 28 14:27 1417156069.Vfd00I23113M287552.mail.dktest.com
- -rw------- 1 vmail vmail 750 11月 28 14:31 1417156284.Vfd00I230cbM587211.mail.dktest.com
- [root@mail new]#
复制代码 可是我发现在上级目录也有fsl 这个帐号的目录,可是这个目录下没有邮件,是空的- [root@mail fsl.com]# pwd
- /var/vmail/fsl.com
- [root@mail fsl.com]# ls
- fsl fsl.com
- [root@mail fsl.com]#
- [root@mail fsl.com]# cd fsl/Maildir/new/
- [root@mail new]# ls
- [root@mail new]# ll
- 总用量 0
- [root@mail new]# pwd
- /var/vmail/fsl.com/fsl/Maildir/new
- [root@mail new]# ls
- [root@mail new]#
复制代码 我的main.cf文件配置指明邮件存储的位置在 /var/vmail ,可是现在有了俩个账户目录,我该如何去指定mail的保存位置? 还有就是postfixadmin可以自动创建邮件储存目录吗?
main.cf 配置文件- [root@mail new]# postconf -n
- alias_database = hash:/etc/aliases
- alias_maps = hash:/etc/aliases
- broken_sasl_auth_clients = yes
- command_directory = /usr/sbin
- config_directory = /etc/postfix
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- debug_peer_level = 2
- home_mailbox = /var/vmail
- html_directory = no
- inet_interfaces = all
- inet_protocols = all
- mail_owner = postfix
- mailq_path = /usr/bin/mailq.postfix
- manpage_directory = /usr/share/man
- mydestination = $myhostname, localhost.$mydomain, localhost
- mydomain = dktest.com
- myhostname = mail.dktest.com
- mynetworks = 0.0.0.0/0
- myorigin = $mydomain
- newaliases_path = /usr/bin/newaliases.postfix
- queue_directory = /var/spool/postfix
- readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
- sample_directory = /usr/share/doc/postfix-2.6.6/samples
- sendmail_path = /usr/sbin/sendmail.postfix
- setgid_group = postdrop
- smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
- smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_path = /var/run/dovecot/auth-client
- smtpd_sasl_security_options = noanonymous
- smtpd_sasl_type = dovecot
- unknown_local_recipient_reject_code = 550
- virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
- virtual_gid_maps = static:2000
- virtual_mailbox_base = /var/vmail
- virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
- virtual_transport = virtual
- virtual_uid_maps = static:2000
- [root@mail new]#
复制代码 dovecot 配置文件- [root@mail new]# doveconf -n
- # 2.0.9: /etc/dovecot/dovecot.conf
- # OS: Linux 2.6.32-71.el6.x86_64 x86_64 CentOS Linux release 6.0 (Final) ext4
- auth_mechanisms = plain login cram-md5
- dict {
- expire = sqlite:/etc/dovecot/dovecot-dict-sql.conf.ext
- quota = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext
- }
- disable_plaintext_auth = no
- listen = *
- mail_location = maildir:/var/vmail
- mbox_write_locks = fcntl
- passdb {
- args = /etc/dovecot/dovecot-sql.conf.ext
- driver = sql
- }
- protocols = imap pop3
- service auth {
- unix_listener auth-client {
- group = postfix
- mode = 0600
- user = postfix
- }
- }
- service dict {
- unix_listener dict {
- group = vmail
- mode = 0600
- user = vmail
- }
- }
- ssl = no
- ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
- ssl_key = </etc/pki/dovecot/private/dovecot.pem
- userdb {
- args = /etc/dovecot/dovecot-sql.conf.ext
- driver = sql
- }
- [root@mail new]#
复制代码 现在可以看到这个目录才是真正的邮件目录,我要怎么去改呢,还有就是postfixadmin可以自动创建邮件储存目录文件吗?- [root@mail new]# cd /var/vmail/fsl.com/fsl.com/fsl/new/
- [root@mail new]# ls
- 1417082206.Vfd00I22ec4M300308.mail.dktest.com 1417155587.Vfd00I2310fM761379.mail.dktest.com
- 1417153326.Vfd00I23102M71539.mail.dktest.com 1417156069.Vfd00I23113M287552.mail.dktest.com
- 1417155412.Vfd00I2310aM465017.mail.dktest.com 1417156284.Vfd00I230cbM587211.mail.dktest.com
- 1417155451.Vfd00I23111M393924.mail.dktest.com
复制代码 回复 18# woxizishen
|
|