extmail+outlook

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

http://cache.baiducontent.com/c?m=9f65cb4a8c8507ed4fece76310408b334409d6743ca0804b22818448e4635810013bf4bb50734d5bcec37a6302a44e41eff734743d093da3de95c81cd2ecd479388856672f4f9140629742ee9d5124b137902dfeae69b6e7ac6684afa2c4df5444ca225327d7b19c5a71489729e71440b4ecc20953&p=8d61c64ad4d51cf000bd9b7e0e1196&newp=8a769a479e8206ef08e2947d0a5586231610db2151d3d31e3795d408&user=baidu&fm=sc&query=/etc/amavisd%2Econf%22+does+not+exist&qid=&p1=1

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

Postfix maillog郵件發送各階段延時的日誌記錄

在maillog中有這樣部份內容:delay=0.69, delays=0.19/0/0.12/0.3
格式爲 delay=x,delays=a/b/c/d , 其中x=a+b+c+d,a表示在由queue mgr(隊列管理器)控制前的延時,包括了郵件傳輸的時間;b表示在隊列管理器控制期間的延時;c表示創建鏈接,包括dns/helo和tls等耗費的時間;d表示郵件傳遞的時間。

若是發現c這裏延時大,說明dns等操做耗時多,則創建cache dns,若是有改善則說明問題就在那裏;若是b的時間長,則說明qmgr反映速度有問題,則能夠看究竟是隊列到了上限,仍是磁盤I/O速度不夠。

郵件組的限制:

http://www.extmail.org/forum/thread-1797-1-1.html

功能:只容許 test@domain.comalls@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.comalls@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

需求:

    限制A用戶有權利發送到ALL@ , 可是不能發送到BOSS@
    限制B用戶能發送到BOSS組 ,不能發送到 all組
 
環境是EMOS 1.6
 
實現:
   
  1. smtpd_sender_restrictions =

  2. permit_mynetworks,

  3. reject_sender_login_mismatch,

  4. reject_authenticated_sender_login_mismatch,

  5. reject_unauthenticated_sender_login_mismatch,

  6. check_recipient_access hash:/etc/postfix/local_recipient

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


 

 紅色部分爲新增。
 
理解:
    SMTP先檢測check_recipient_access 裏 local_recipient 收件人容許那些人發送,而後all匹配allow_to_all 這個(postmap -q 'all@test.net'  /etc /postfix/local_recipient便可查到) 而後經過smtpd_restriction_classes 查找 allow_to_all , allow_to_all 由須要查 local_sender_all 表。 local_sender_all 表裏寫明,A用戶能夠發送。(我的字面理解)
 
   B用戶發送到All 會提示Recipient address rejected: Access denied; from=<b @test.net > to=<all @test.net > proto=ESMTP
 
日誌裏提示fatal: restriction class `allow_to_all' needs a definition
 
是由於寫smtpd_restriction_classes = allow_to_all, allow_to_boss
allow_to_all = check_sender_access hash:/etc/postfix/local_sender_all, reject(allow_to_all前面不能有空格)
 

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。

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息