歡迎您光臨本站 註冊首頁

postfixadmin maildir 和mailbox差別

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfixadmin maildir 和mailbox差別

May 19 15:23:22 erabay postfix/virtual: 2AB5C94603: to=<kkk@rngift.com>, relay=virtual, delay=0.14, delays=0.07/0.04/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
May 19 15:23:22 erabay postfix/qmgr: 2AB5C94603: removed

我的老出現mailbox



#===========================sasl==============================
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_helo_required = yes
smtpd_delay_reject=no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
inet_interfaces = all


#=====================MySQL==================================
virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_base = /home/vmail/
home_mailbox = Maildir/
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 1002
#transport_maps = mysql:/etc/postfix/mysql/mysql_virtual_transport.cf
virtual_transport = virtual
#virtual_transport = weifeng270
virtual_uid_maps = static:1002
virtual_gid_maps = static:1002




#=====================Quota=====================
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes




我以前沒有做設置的時候是

May 15 15:11:39 erabay postfix/virtual: 4BF73945EB: to=<kk@211.com>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
May 15 15:11:39 erabay postfix/qmgr: 4BF73945EB: removed


但是現在不知道在那裡改回。

我看了三本達魔經還是沒有找到。

找高手指點。
《解決方案》

回復 #1 weifeng270 的帖子

root@erabay:/var/log# id vmail
uid=1002(vmail) gid=1002(vmail) groups=1002(vmail)
root@erabay:/var/log# pwd
/var/log
root@erabay:/var/log#


root@erabay:/etc/postfix/mysql# less mysql_virtual_domains_maps.cf
user = postfix
password = kernel
hosts = 127.0.0.1
dbname = postfix
table = domain
select_field = description
where_field = domain
root@erabay:/etc/postfix/mysql# less mysql_virtual_mailbox_
mysql_virtual_mailbox_limit_maps.cf  mysql_virtual_mailbox_maps.cf        
root@erabay:/etc/postfix/mysql# less mysql_virtual_mailbox_maps.cf
user = postfix
password = kernel
hosts = 127.0.0.1
dbname = postfix
table = mailbox
select_field = password
where_field = username
root@erabay:/etc/postfix/mysql# less mysql_virtual_alias_maps.cf
user = postfix
password = kernel
hosts = 127.0.0.1
dbname = postfix
table = alias
select_field = goto
where_field = address
《解決方案》

還有我說一下我用的是postfixadmin

這是貓咪的文章對我的一點都不起作用。

授人以漁I-Postfix+LDAP做虛擬郵箱伺服器

版權聲明:本文可以任意轉載,轉載時請保持文章的完整性,並以超鏈接形式標明文章原始出處和作者信息及本聲明。

http://geoffl.blog.163.com/

作者: 富貴貓


前陣子開始要做Postfix郵件伺服器,網上搜了好多文章,不過大部分文章只是作者自己安裝步驟的羅列,只能算授人以魚,所以我看了之後還是需要去看Postfix的手冊,還要看很多官方的參考書,看完之後頗有心得,所以就打算寫一個「授人以漁」的系列安裝設置的文章,讓你知其然也知其所以然。

Postfix作郵箱,有4種設置方式,分別是共享域名+系統帳戶、獨立域名+系統帳戶、獨立域名+虛擬帳戶和虛擬域名+特殊格式郵箱。鑒於通常我們不可能給每個用戶設置一個系統帳戶,所以第一第二種就不考慮不介紹了。既然是用Postfix來建立我們自己地郵箱系統,所以也沒必要去兜很多圈子設置特殊格式郵箱,所以第四種也不考慮。剩下只有一種方式,就是獨立域名+虛擬郵箱。

所謂獨立域名,就是即使用戶名是一樣的,但如果域名不同其郵件也將放置在不同的目錄。譬如info@abc.com和info@def.com,這二個e-mail地址都以info為用戶名,但域名不同,如果是共享域名,他們的mail將被放置在同一個目錄下,而獨立域名將放置在不同目錄下。如果你們公司是很大的集團,下面分好幾個公司,分別有獨立的域名,這難免有重名的員工,這種情況下,後者顯然是我們希望看到的。而所謂虛擬帳戶,既然那些郵箱用戶只是使用mail服務,我們當然沒有必要去給每個用戶在Linux下面開設一個個系統帳戶,所以我們就用一些資料庫之類的東西來保存這些帳戶信息,譬如用哈希表、SQL資料庫或者LDAP。我使用的是獨立域名+虛擬LDAP帳戶。

Postfix的安裝我就不說了,非常簡單。不過如果不會也沒關係,後面我會寫一篇關於Postfix+mail quota的,那時候需要下載、補丁和編譯,等於是Postfix的安裝。

LDAP也不說了,要完全掌握LDAP不是這篇能解決的,我只假設你的LDAP伺服器里已經有mail這個欄位。

下面開始說Postfix如何設置。Postfix的配置文件是/etc/postfix/main.cf,這是獨立域名+LDAP的設置

# ===== Basic Setting =====

mail_owner = postfix
myhostname = pop.test.com
inet_interfaces = all
queue_directory = /var/spool/postfix
mynetworks = 127.0.0.0/8

home_mailbox =

# ===== Virtual Mailbox =====
virtual_mailbox_domains = hash:/etc/postfix/v_domains
virtual_mailbox_maps = ldap:/etc/postfix/v_mailbox_maps

virtual_mailbox_base = /var/spool/vhosts/
virtual_minimum_uid = 500
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_transport = virtual

myhostname設置你的郵件伺服器名字

inet_interfaces = all設置你在哪些網卡上監聽

另外有幾個是需要解釋的:我們接受哪些域名的郵件?我們的域名下有哪些用戶?他們的郵件存放在什麼目錄?

我們接受那些域名的郵件,這是由virtual_mailbox_domains來定義的。雖然我們可以直接使用

virtual_mailbox_domains = test.com, test2.com

這樣的格式來定義這些域名,不過我還是建議如我這樣使用一個表來存放,這樣更方便日後的維護,表名是隨意取的,有沒有後綴都沒關係,我用v_domains作為表的名字,在main.cf里定義是

virtual_mailbox_domains = hash:/etc/postfix/v_domains

v_domains的內容如下

test.com OK

test2.com OK

這是個text文件,僅僅包含域名,但為了滿足哈希表的格式,所以在後面添加一個OK。然後我們還要把這個文件變成Postfix的資料庫格式,因此用如下命令轉變其格式

postmap v_domains

之後你會得到一個以db為後綴的文件v_domains.db。注意,每次修改完v_domains你都需要使用一次postmap。



我們有哪些用戶,這是由virtual_mailbox_maps來決定。同樣,你可以用哈希表,不過我還是用LDAP。為了方便你理解,我先說明一下如果用哈希表,它的格式應該是

user1@test.com test.com/user1_mailDirectory/

user2@test.com test.com/user2_mailDirectory/

user1@test2.com test2.com/user1_mailDirectory/

左邊是用戶的e-mail地址,空格之後是該用戶的郵件存放目錄。既然我們說了,獨立域名代表info@abc.com和info@def.com的郵件放置在不同目錄下,所以我們的定義里user1@test.com和user1@test2.com的目錄是不同的。如果換成LDAP,我們要得到相同的結果,即用e-mail地址來搜索,得到其郵件存放目錄

既然講到郵件存放目錄,就一併解釋一下到底這個目錄怎樣定義的。郵件是存放在

virtual_mailbox_base\virtual_mailbox_maps\home_mailbox下,也就是說 virtual_mailbox_base定義的目錄下,postfix會根據virtual_mailbox_maps返回的用戶目錄自動創建該目錄,然後如果home_mailbox也有定義,那麼在用戶目錄下還會創建home_mailbox定義的名字。舉例來說,按照上面的設置,郵件會存放在

/var/spool/vhosts/test.com/user1/下面。

如果home_mailbox不是空白而是Mail/,那麼就會存放在

/var/spool/vhost/test/com/user1/Mail/下面。home_mailbox有什麼用呢?舉個例子,比方你已經有 homeDirectory了,但那是你平時放文件的地方,那麼再在同樣目錄下放郵件就變得很奇怪,所以需要home_mailbox來定義郵件放在你 homeDirectory下的什麼目錄下

注意:地址的最後有沒有"/"決定了使用mailbox格式還是maildir格式,沒有"/"表示mailbox,有表示maildir。所以並不象大部分人認為的,home_mailbox定義為MailDir才表示使用maildir格式。再舉幾個例子

/var/spool/vhosts/test.com/user1/  表示使用MailDir格式

/var/spool/vhosts/test.com/user1  表示使用MailBox格式

/var/spool/vhosts/test.com/user1/Mail/  表示使用MailDir格式

/var/spool/vhosts/test.com/user1/MailDir/ 表示使用MailDir格式

/var/spool/vhosts/test.com/user1/MailDir 表示使用MailBox格式,即使home_mailbox是maildir,但沒有最後的"/",只能表示使用MailBox格式。同樣道理

/var/spool/vhosts/test.com/user1/MailBox/ 表示使用MailDir格式,雖然home_mailbox是mailbox,但最後的"/"就說明了是使用MailDir格式。

回到virtual_mailbox_maps的LDAP定義,其格式是

virtual_mailbox_maps = ldap:/etc/postfix/v_mailbox_maps

v_mailbox_maps只是一個連接Postfix和LDAP的配置文件,同樣文件名是隨意取的。v_mailbox_maps的內容是

# LDAP Server的IP地址,我是設在和postfix同一電腦,所以是127.0.0.1

server_host = 127.0.0.1
# 下面這些關於LDAP Search的內容如果你不了解,請學習LDAP

search_base = ou=people,o=test
server_port = 389
bind = yes
bind_dn = cn=root,o=test
bind_pw = <rootpassword>
version = 3

# 下面是關鍵,我會額外解釋
《解決方案》

May 19 18:03:06 erabay postfix/master: daemon started -- version 2.4.5, configuration /etc/postfix
May 19 18:03:33 erabay postfix/smtpd: connect from localhost
May 19 18:03:33 erabay postfix/smtpd: 1C673945F6: client=localhost
May 19 18:03:33 erabay postfix/cleanup: 1C673945F6: message-id=<20080519100333.1C673945F6@mail.erabay.com>
May 19 18:03:33 erabay postfix/qmgr: 1C673945F6: from=<weifeng270@gmail.com>, size=482, nrcpt=1 (queue active)
May 19 18:03:33 erabay postfix/smtpd: disconnect from localhost
May 19 18:03:33 erabay postfix/virtual: 1C673945F6: to=<5@5.com>, relay=virtual, delay=0.08, delays=0.03/0.02/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
May 19 18:03:33 erabay postfix/qmgr: 1C673945F6: removed



又出這個了。
《解決方案》

先把home_mailbox = Maildir/設置成空看看呢?
《解決方案》

回復 #5 富貴貓 的帖子

我換成空的還是不行。



root@erabay:/home/Virtual# vim /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.erabay.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = erabay.com,localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +




#===========================sasl==============================
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_helo_required = yes
smtpd_delay_reject=no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
inet_interfaces = all


#=====================MySQL==================================
#virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_base = /home/Virtual/
home_mailbox =
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 33
#transport_maps = mysql:/etc/postfix/mysql/mysql_virtual_transport.cf
virtual_transport = virtual
#virtual_transport = weifeng270
virtual_uid_maps = static:33
virtual_gid_maps = static:33




#=====================Quota=====================
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes

#virtual_trash_count=yes
#virtual_trash_name=.Trash



root@erabay:/home/Virtual# tail /var/log/mail.log
May 23 06:45:55 erabay postfix/master: reload configuration /etc/postfix
May 23 10:58:21 erabay postfix/master: terminating on signal 15
May 23 10:58:22 erabay postfix/master: daemon started -- version 2.4.5, configuration /etc/postfix
May 23 11:00:32 erabay postfix/smtpd: connect from localhost
May 23 11:00:32 erabay postfix/smtpd: ECDC59460A: client=localhost
May 23 11:00:32 erabay postfix/cleanup: ECDC59460A: message-id=<20080523030032.ECDC59460A@mail.erabay.com>
May 23 11:00:33 erabay postfix/smtpd: disconnect from localhost
May 23 11:00:33 erabay postfix/qmgr: ECDC59460A: from=<weifeng270@gmail.com>, size=493, nrcpt=1 (queue active)
May 23 11:00:33 erabay postfix/virtual: ECDC59460A: to=<3434@3333.com>, relay=virtual, delay=0.16, delays=0.08/0.02/0/0.06, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 11:00:33 erabay postfix/qmgr: ECDC59460A: removed


root@erabay:/home/Virtual# ls -l
total 12
-rw------- 1 www-data www-data 624 2008-05-23 11:00 111
-rw------- 1 www-data www-data 600 2008-05-21 17:26 3
-rw------- 1 www-data www-data 648 2008-05-21 17:29 kkk
root@erabay:/home/Virtual#
《解決方案》

root@erabay:/home/Virtual# tail /var/log/mail.log
May 23 14:27:39 erabay postfix/qmgr: E60669460A: from=<weifeng270@gmail.com>, size=481, nrcpt=1 (queue active)
May 23 14:27:40 erabay postfix/virtual: E60669460A: to=<2@2.com>, relay=virtual, delay=0.08, delays=0.04/0.02/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 14:27:40 erabay postfix/qmgr: E60669460A: removed
May 23 14:28:56 erabay postfix/smtpd: connect from localhost
May 23 14:28:56 erabay postfix/smtpd: 5971E9460A: client=localhost
May 23 14:28:56 erabay postfix/cleanup: 5971E9460A: message-id=<20080523062856.5971E9460A@mail.erabay.com>
May 23 14:28:56 erabay postfix/smtpd: disconnect from localhost
May 23 14:28:56 erabay postfix/qmgr: 5971E9460A: from=<weifeng270@gmail.com>, size=481, nrcpt=1 (queue active)
May 23 14:28:56 erabay postfix/virtual: 5971E9460A: to=<4@2.com>, relay=virtual, delay=0.1, delays=0.09/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 14:28:56 erabay postfix/qmgr: 5971E9460A: removed

[ 本帖最後由 weifeng270 於 2008-5-23 14:29 編輯 ]
《解決方案》

我要崩盤了


May 23 15:42:18 erabay postfix/postsuper: Deleted: 3 messages
May 23 15:42:36 erabay postfix/smtpd: connect from localhost
May 23 15:42:36 erabay postfix/smtpd: BA66794603: client=localhost
May 23 15:42:36 erabay postfix/cleanup: BA66794603: message-id=<20080523074236.BA66794603@mail.erabay.com>
May 23 15:42:36 erabay postfix/qmgr: BA66794603: from=<weifeng270@gmail.com>, size=483, nrcpt=1 (queue active)
May 23 15:42:36 erabay postfix/smtpd: disconnect from localhost
May 23 15:42:36 erabay postfix/virtual: BA66794603: to=<77@1.com>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
May 23 15:42:36 erabay postfix/qmgr: BA66794603: removed
May 23 15:42:49 erabay postfix/smtpd: connect from localhost
May 23 15:42:49 erabay postfix/smtpd: 9273194603: client=localhost
May 23 15:42:49 erabay postfix/cleanup: 9273194603: message-id=<20080523074249.9273194603@mail.erabay.com>
May 23 15:42:49 erabay postfix/qmgr: 9273194603: from=<weifeng270@gmail.com>, size=483, nrcpt=1 (queue active)
May 23 15:42:49 erabay postfix/virtual: 9273194603: to=<99@1.com>, relay=virtual, delay=0.04, delays=0.04/0/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 15:42:49 erabay postfix/smtpd: disconnect from localhost
May 23 15:42:49 erabay postfix/qmgr: 9273194603: removed
May 23 15:43:19 erabay postfix/smtpd: connect from localhost
May 23 15:43:19 erabay postfix/smtpd: 2C95094603: client=localhost
May 23 15:43:19 erabay postfix/cleanup: 2C95094603: message-id=<20080523074319.2C95094603@mail.erabay.com>
May 23 15:43:19 erabay postfix/qmgr: 2C95094603: from=<weifeng270@gmail.com>, size=485, nrcpt=1 (queue active)
May 23 15:43:19 erabay postfix/smtpd: disconnect from localhost
May 23 15:43:19 erabay postfix/virtual: 2C95094603: to=<345@1.com>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 15:43:19 erabay postfix/qmgr: 2C95094603: removed
May 23 15:43:45 erabay postfix/smtpd: connect from localhost
May 23 15:43:45 erabay postfix/smtpd: 660CA94603: client=localhost
May 23 15:43:45 erabay postfix/cleanup: 660CA94603: message-id=<20080523074345.660CA94603@mail.erabay.com>
May 23 15:43:45 erabay postfix/qmgr: 660CA94603: from=<weifeng270@gmail.com>, size=485, nrcpt=1 (queue active)
May 23 15:43:45 erabay postfix/smtpd: disconnect from localhost
May 23 15:43:45 erabay postfix/virtual: 660CA94603: to=<345@2.com>, relay=virtual, delay=0.09, delays=0.06/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
May 23 15:43:45 erabay postfix/qmgr: 660CA94603: removed
《解決方案》

$CONF['encrypt'] = 'md5crypt';
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
#smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
#smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
#smtpd_use_tls=yes
#smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
#smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.erabay.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = erabay.com,localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +




#===========================sasl==============================
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
broken_sasl_auth_clients = yes
smtpd_helo_required = yes
smtpd_delay_reject=no
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
inet_interfaces = all


#=====================MySQL==================================
#virtual_alias_maps = mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_base = /home/Virtual/
home_mailbox = maildir/
virtual_mailbox_limit = 51200000
virtual_minimum_uid = 33
#transport_maps = mysql:/etc/postfix/mysql/mysql_virtual_transport.cf
virtual_transport = virtual
#virtual_transport = weifeng270
virtual_uid_maps = static:33
virtual_gid_maps = static:33




#=====================Quota=====================
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please try again later.
virtual_overquota_bounce = yes

#virtual_trash_count=yes
#virtual_trash_name=.Trash




May 23 16:04:37 erabay postfix/virtual: 2A95F9460A: to=<xxx@weifeng.com>, relay=virtual, delay=0.09, delays=0.06/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 16:04:37 erabay postfix/qmgr: 2A95F9460A: removed
May 23 16:05:25 erabay postfix/smtpd: connect from localhost
May 23 16:05:25 erabay postfix/smtpd: CD1D99460A: client=localhost
May 23 16:05:25 erabay postfix/cleanup: CD1D99460A: message-id=<20080523080525.CD1D99460A@mail.erabay.com>
May 23 16:05:25 erabay postfix/qmgr: CD1D99460A: from=<weifeng270@gmail.com>, size=483, nrcpt=1 (queue active)
May 23 16:05:25 erabay postfix/smtpd: disconnect from localhost
May 23 16:05:25 erabay postfix/virtual: CD1D99460A: to=<22@2.com>, relay=virtual, delay=0.06, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 16:05:25 erabay postfix/qmgr: CD1D99460A: removed
May 23 16:08:18 erabay postfix/master: terminating on signal 15
May 23 16:11:11 erabay postfix/master: daemon started -- version 2.4.5, configuration /etc/postfix
May 23 16:11:15 erabay postfix/master: terminating on signal 15
May 23 16:11:15 erabay postfix/master: daemon started -- version 2.4.5, configuration /etc/postfix
May 23 16:13:51 erabay postfix/smtpd: connect from localhost
May 23 16:13:51 erabay postfix/smtpd: 5FF849460A: client=localhost
May 23 16:13:51 erabay postfix/cleanup: 5FF849460A: message-id=<20080523081351.5FF849460A@mail.erabay.com>
May 23 16:13:51 erabay postfix/qmgr: 5FF849460A: from=<weifeng270@gmail.com>, size=483, nrcpt=1 (queue active)
May 23 16:13:51 erabay postfix/smtpd: disconnect from localhost
May 23 16:13:51 erabay postfix/virtual: 5FF849460A: to=<77@5.com>, relay=virtual, delay=0.1, delays=0.03/0.02/0/0.05, dsn=2.0.0, status=sent (delivered to maildir)
May 23 16:13:51 erabay postfix/qmgr: 5FF849460A: removed
May 23 16:14:18 erabay postfix/smtpd: connect from localhost
May 23 16:14:18 erabay postfix/smtpd: D36B79460A: client=localhost
May 23 16:14:18 erabay postfix/cleanup: D36B79460A: message-id=<20080523081418.D36B79460A@mail.erabay.com>
May 23 16:14:18 erabay postfix/qmgr: D36B79460A: from=<weifeng270@gmail.com>, size=481, nrcpt=1 (queue active)
May 23 16:14:18 erabay postfix/smtpd: disconnect from localhost
May 23 16:14:18 erabay postfix/virtual: D36B79460A: to=<1@1.com>, relay=virtual, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
May 23 16:14:18 erabay postfix/qmgr: D36B79460A: removed
May 23 16:14:30 erabay postfix/smtpd: connect from localhost
May 23 16:14:30 erabay postfix/smtpd: 35BD29460A: client=localhost
May 23 16:14:30 erabay postfix/cleanup: 35BD29460A: message-id=<20080523081430.35BD29460A@mail.erabay.com>
May 23 16:14:30 erabay postfix/qmgr: 35BD29460A: from=<weifeng270@gmail.com>, size=481, nrcpt=1 (queue active)
May 23 16:14:30 erabay postfix/smtpd: disconnect from localhost
May 23 16:14:30 erabay postfix/virtual: 35BD29460A: to=<3@1.com>, relay=virtual, delay=0.09, delays=0.07/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
May 23 16:14:30 erabay postfix/qmgr: 35BD29460A: removed








但是
$CONF['encrypt'] = 'md5crypt';
換成
$CONF['encrypt'] = 'cleartext';

就又出現

May 23 16:04:01 erabay postfix/qmgr: DE1379460A: from=<weifeng270@gmail.com>, size=499, nrcpt=1 (queue active)
May 23 16:04:01 erabay postfix/virtual: DE1379460A: to=<kkkk@weifeng.com>, relay=virtual, delay=0.05, delays=0.04/0/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 16:04:01 erabay postfix/qmgr: DE1379460A: removed
May 23 16:04:01 erabay postfix/smtpd: disconnect from localhost
May 23 16:04:37 erabay postfix/smtpd: connect from localhost
May 23 16:04:37 erabay postfix/smtpd: 2A95F9460A: client=localhost
May 23 16:04:37 erabay postfix/cleanup: 2A95F9460A: message-id=<20080523080437.2A95F9460A@mail.erabay.com>
May 23 16:04:37 erabay postfix/qmgr: 2A95F9460A: from=<weifeng270@gmail.com>, size=497, nrcpt=1 (queue active)
May 23 16:04:37 erabay postfix/smtpd: disconnect from localhost
May 23 16:04:37 erabay postfix/virtual: 2A95F9460A: to=<xxx@weifeng.com>, relay=virtual, delay=0.09, delays=0.06/0.02/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 16:04:37 erabay postfix/qmgr: 2A95F9460A: removed
May 23 16:05:25 erabay postfix/smtpd: connect from localhost
May 23 16:05:25 erabay postfix/smtpd: CD1D99460A: client=localhost
May 23 16:05:25 erabay postfix/cleanup: CD1D99460A: message-id=<20080523080525.CD1D99460A@mail.erabay.com>
May 23 16:05:25 erabay postfix/qmgr: CD1D99460A: from=<weifeng270@gmail.com>, size=483, nrcpt=1 (queue active)
May 23 16:05:25 erabay postfix/smtpd: disconnect from localhost
May 23 16:05:25 erabay postfix/virtual: CD1D99460A: to=<22@2.com>, relay=virtual, delay=0.06, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
May 23 16:05:25 erabay postfix/qmgr: CD1D99460A: removed



但是我需要明文的目錄名。
《解決方案》

是我太粗心了。對不起。問題解決。

[火星人 ] postfixadmin maildir 和mailbox差別已經有653次圍觀

http://coctec.com/docs/service/show-post-29754.html