http://blog.csdn.net/deansrk/article/details/6717911 html
http://blog.csdn.net/deansrk/article/details/6717720 mysql
http://bbs.linuxtone.org/thread-24070-1-1.html linux
http://zhumeng8337797.blog.163.com/blog/static/100768914201143051449952/ web
http://coolerfeng.blog.51cto.com/133059/58075 sql
http://www.extmail.org/forum/thread-4247-1-1.html centos
https://www.centos.bz/2011/10/centos-5-install-extmail-webmail/ dom
http://wiki.extmail.org/extmail_solution_for_linux_centos-5 post
http://www.linuxidc.com/Linux/2014-07/104094.htm ui
http://aceruser.blog.51cto.com/2772529/671816 spa
http://blog.chinaunix.net/uid-23511971-id-320284.html
http://blog.chinaunix.net/uid-23511971-id-320283.html
http://blog.csdn.net/akumas/article/details/2812251
http://hebingkun.blog.51cto.com/6083382/1308155
ssl:
http://waringid.blog.51cto.com/65148/59685/
http://blog.chinaunix.net/uid-16979052-id-3549100.html
http://blog.163.com/qiushuhui1989@126/blog/static/27011089201310892033442/
http://blog.sina.com.cn/s/blog_6da6c1220101di0u.html
http://zhumeng8337797.blog.163.com/blog/static/10076891420101089185376/
http://www.centospub.com/make/postfix_ssl.html
若是發現c這裏延時大,說明dns等操做耗時多,則創建cache dns,若是有改善則說明問題就在那裏;若是b的時間長,則說明qmgr反映速度有問題,則能夠看究竟是隊列到了上限,仍是磁盤I/O速度不夠。
郵件組的限制:
http://www.extmail.org/forum/thread-1797-1-1.html
功能:只容許 test@domain.com 向alls@domain.com 發信,而其它人沒有這個權利,限制了sender僞造
一、smtp認證(這裏再也不說明)
二、認證用戶匹配
smtpd_sender_login_maps = hash:/etc/postfix/sender_login_maps
smtpd_recipient_restrictions =
permit_mynetworks
reject_sender_login_mismatch
三、設置只能test@domain.com 給alls@domain.com 發郵件
smtpd_restriction_classes = local_only
local_only = check_sender_access hash:/etc/postfix/local_sender, reject
smtpd_sender_restrictions = check_recipient_access hash:/etc/postfix/local_recipient
check_sender_access hash:/etc/postfix/sender #(這句是強制本地域認證# set XXX@domain.com to XXXX@domain.com auth)
4個文件內容以下:
#more sender_login_maps
test@domain.com test
#more local_sender
test@domain.com OK
#more local_recipient
alls@domain.com local_only
#more sender
domain.com permit_mynetworks,permit_sasl_authenticated, reject
http://blog.chinaunix.net/uid-12123492-id-3045959.html
需求:
smtpd_restriction_classes = allow_to_all, allow_to_boss
allow_to_all = check_sender_access hash:/etc/postfix/local_sender_all, reject
allow_to_opt = check_sender_access hash:/etc/postfix/local_sender_boss, reject
# vi local_recipient
all@test.net allow_to_all
boss@test.net allow_to_boss
# vi local_sender_all
a@test.net ok
# vi local_sender_boss
b@test.net ok
postmap hash:/etc/postfix/local_sender_all
postmap hash:/etc/postfix/local_sender_boss
postmap hash:/etc/postfix/localrecipient
postfix reload
postfix源碼編譯支持tls須要-DUSE_TLS選項:
make -f Makefile.init makefiles 'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_TLS -DUSE_CYRUS_SASL -DUSE_SASL_AUTH -I/usr/include/sasl -DHAS_LDAP' 'AUXLIBS=-L/usr/lib/mysql -lmysqlclient -lz -lm -L/usr/lib -lssl -lcrypto -lsasl2 -L/usr/lib/openldap -llber -lldap'
make makefiles 'CCARGS=-DUSE_SASL_AUTH -DHAS_MYSQL -DUSE_CYRUS_SASL -I/usr/include/mysql -I/usr/include/sasl' 'AUXLIBS=-L/usr/lib64/mysql -L/usr/lib64/sasl2 -lmysqlclient -lsasl2 -lz -lm'
對同一封郵件的收件人數目限制 經過default_destination_recipient_limit參數來控制postfix的投遞代理(如 smtp進程)能夠將同一封郵件發送給多少個收件人。缺省值爲50。也能夠用明確指出該投遞代理的參數來覆蓋該缺省值。如用smtpd_recipient_limit來指定smtp投遞代理能夠將同一封郵件發送給多少個收件人,該參數的缺省值爲1000。